about summary refs log tree commit diff
path: root/compiler/rustc_resolve
diff options
context:
space:
mode:
authorJana Dönszelmann <jana@donsz.nl>2025-02-09 22:49:28 +0100
committerJana Dönszelmann <jana@donsz.nl>2025-02-24 14:22:31 +0100
commit115b3b03b09cf71aca67c974ea0d4888c86b3012 (patch)
tree13c8b6244f1c22de9c030241cab2658a5a393855 /compiler/rustc_resolve
parentf43e549b88698568581a9d329c7582e3708ac187 (diff)
downloadrust-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.rs2
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);