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_resolve | |
| parent | f43e549b88698568581a9d329c7582e3708ac187 (diff) | |
| download | rust-115b3b03b09cf71aca67c974ea0d4888c86b3012.tar.gz rust-115b3b03b09cf71aca67c974ea0d4888c86b3012.zip | |
Change span field accesses to method calls
Diffstat (limited to 'compiler/rustc_resolve')
| -rw-r--r-- | compiler/rustc_resolve/src/diagnostics.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_resolve/src/diagnostics.rs b/compiler/rustc_resolve/src/diagnostics.rs index 5db6f83f3ee..55db336d85f 100644 --- a/compiler/rustc_resolve/src/diagnostics.rs +++ b/compiler/rustc_resolve/src/diagnostics.rs @@ -1806,7 +1806,7 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> { && !def_id.is_local() && let Some(attr) = self.tcx.get_attr(def_id, sym::non_exhaustive) { - non_exhaustive = Some(attr.span); + non_exhaustive = Some(attr.span()); } else if let Some(span) = ctor_fields_span { let label = errors::ConstructorPrivateIfAnyFieldPrivate { span }; err.subdiagnostic(label); |
