Add optional span to require_lang_item
for diagnostics with more context
#63954
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-lang-item
Area: Language items
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
fn require_lang_item(LangItem)
should also take an optionalSpan
to avoid output without context.The text was updated successfully, but these errors were encountered: