diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-01-16 16:27:02 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-01-23 08:09:05 +1100 |
| commit | e164cf30f8f96551cedece4ed199d7ecb5832648 (patch) | |
| tree | 0dd488e397afda47649c87f00686a58a96e06122 /compiler/rustc_lint/src/expect.rs | |
| parent | 82ca070c1680004da7d25abcc1d3d793d00abf06 (diff) | |
| download | rust-e164cf30f8f96551cedece4ed199d7ecb5832648.tar.gz rust-e164cf30f8f96551cedece4ed199d7ecb5832648.zip | |
Rename `TyCtxt::emit_spanned_lint` as `TyCtxt::emit_node_span_lint`.
Diffstat (limited to 'compiler/rustc_lint/src/expect.rs')
| -rw-r--r-- | compiler/rustc_lint/src/expect.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/expect.rs b/compiler/rustc_lint/src/expect.rs index 2b6290e8a00..40db765da53 100644 --- a/compiler/rustc_lint/src/expect.rs +++ b/compiler/rustc_lint/src/expect.rs @@ -29,7 +29,7 @@ fn check_expectations(tcx: TyCtxt<'_>, tool_filter: Option<Symbol>) { { let rationale = expectation.reason.map(|rationale| ExpectationNote { rationale }); let note = expectation.is_unfulfilled_lint_expectations.then_some(()); - tcx.emit_spanned_lint( + tcx.emit_node_span_lint( UNFULFILLED_LINT_EXPECTATIONS, *hir_id, expectation.emission_span, |
