diff options
| author | Jana Dönszelmann <jana@donsz.nl> | 2025-02-09 22:49:28 +0100 |
|---|---|---|
| committer | Jana Dönszelmann <jana@donsz.nl> | 2025-02-24 14:22:31 +0100 |
| commit | 115b3b03b09cf71aca67c974ea0d4888c86b3012 (patch) | |
| tree | 13c8b6244f1c22de9c030241cab2658a5a393855 /compiler/rustc_lint/src/builtin.rs | |
| parent | f43e549b88698568581a9d329c7582e3708ac187 (diff) | |
| download | rust-115b3b03b09cf71aca67c974ea0d4888c86b3012.tar.gz rust-115b3b03b09cf71aca67c974ea0d4888c86b3012.zip | |
Change span field accesses to method calls
Diffstat (limited to 'compiler/rustc_lint/src/builtin.rs')
| -rw-r--r-- | compiler/rustc_lint/src/builtin.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_lint/src/builtin.rs b/compiler/rustc_lint/src/builtin.rs index 5e44583b297..f7be37dc4a2 100644 --- a/compiler/rustc_lint/src/builtin.rs +++ b/compiler/rustc_lint/src/builtin.rs @@ -1011,7 +1011,7 @@ impl<'tcx> LateLintPass<'tcx> for InvalidNoMangleItems { cx.emit_span_lint( NO_MANGLE_GENERIC_ITEMS, span, - BuiltinNoMangleGeneric { suggestion: no_mangle_attr.span }, + BuiltinNoMangleGeneric { suggestion: no_mangle_attr.span() }, ); break; } @@ -1226,7 +1226,7 @@ impl<'tcx> LateLintPass<'tcx> for UngatedAsyncFnTrackCaller { { cx.emit_span_lint( UNGATED_ASYNC_FN_TRACK_CALLER, - attr.span, + attr.span(), BuiltinUngatedAsyncFnTrackCaller { label: span, session: &cx.tcx.sess }, ); } |
