about summary refs log tree commit diff
path: root/compiler/rustc_middle/src/traits/mod.rs
diff options
context:
space:
mode:
authorTaylor Cramer <cramertj@google.com>2025-01-02 14:46:36 -0800
committerTaylor Cramer <cramertj@google.com>2025-01-02 14:46:36 -0800
commit9281be94b56f1e894a2d82a5a8fc8a601163b232 (patch)
tree69c3f9c8e98245138f7c1f295c6c3abcc2d44bd3 /compiler/rustc_middle/src/traits/mod.rs
parent4363f9b6f6d3656d94adbcabba6348a485ef9a56 (diff)
downloadrust-9281be94b56f1e894a2d82a5a8fc8a601163b232.tar.gz
rust-9281be94b56f1e894a2d82a5a8fc8a601163b232.zip
Remove unused fields from RepeatElementCopy obligation
Diffstat (limited to 'compiler/rustc_middle/src/traits/mod.rs')
-rw-r--r--compiler/rustc_middle/src/traits/mod.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/rustc_middle/src/traits/mod.rs b/compiler/rustc_middle/src/traits/mod.rs
index b34a1782581..99211c1f924 100644
--- a/compiler/rustc_middle/src/traits/mod.rs
+++ b/compiler/rustc_middle/src/traits/mod.rs
@@ -247,11 +247,11 @@ pub enum ObligationCauseCode<'tcx> {
         /// If element is a `const fn` or const ctor we display a help message suggesting
         /// to move it to a new `const` item while saying that `T` doesn't implement `Copy`.
         is_constable: IsConstable,
-        elt_type: Ty<'tcx>,
+
+        /// Span of the repeat element.
+        ///
+        /// This is used to suggest wrapping it in a `const { ... }` block.
         elt_span: Span,
-        /// Span of the statement/item in which the repeat expression occurs. We can use this to
-        /// place a `const` declaration before it
-        elt_stmt_span: Span,
     },
 
     /// Types of fields (other than the last, except for packed structs) in a struct must be sized.