@@ -109,8 +109,6 @@ note: inside `from_ptr_range::<'_, ()>`
109109 --> $SRC_DIR/core/src/slice/raw.rs:LL:COL
110110note: inside `std::ptr::const_ptr::<impl *const ()>::offset_from_unsigned`
111111 --> $SRC_DIR/core/src/ptr/const_ptr.rs:LL:COL
112- |
113- = note: the failure occurred here
114112 = note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)
115113
116114error[E0080]: could not evaluate static initializer
@@ -121,8 +119,6 @@ LL | from_ptr_range(ptr..ptr.add(2)) // errors inside libcore
121119 |
122120note: inside `std::ptr::const_ptr::<impl *const u32>::add`
123121 --> $SRC_DIR/core/src/ptr/const_ptr.rs:LL:COL
124- |
125- = note: the failure occurred here
126122
127123error[E0080]: it is undefined behavior to use this value
128124 --> $DIR/forbidden_slices.rs:57:1
@@ -178,8 +174,6 @@ LL | from_ptr_range(ptr..ptr.add(1))
178174 |
179175note: inside `std::ptr::const_ptr::<impl *const u64>::add`
180176 --> $SRC_DIR/core/src/ptr/const_ptr.rs:LL:COL
181- |
182- = note: the failure occurred here
183177
184178error[E0080]: could not evaluate static initializer
185179 --> $DIR/forbidden_slices.rs:85:34
@@ -191,8 +185,6 @@ note: inside `from_ptr_range::<'_, u32>`
191185 --> $SRC_DIR/core/src/slice/raw.rs:LL:COL
192186note: inside `std::ptr::const_ptr::<impl *const u32>::offset_from_unsigned`
193187 --> $SRC_DIR/core/src/ptr/const_ptr.rs:LL:COL
194- |
195- = note: the failure occurred here
196188
197189error[E0080]: could not evaluate static initializer
198190 --> $DIR/forbidden_slices.rs:87:35
@@ -204,8 +196,6 @@ note: inside `from_ptr_range::<'_, u32>`
204196 --> $SRC_DIR/core/src/slice/raw.rs:LL:COL
205197note: inside `std::ptr::const_ptr::<impl *const u32>::offset_from_unsigned`
206198 --> $SRC_DIR/core/src/ptr/const_ptr.rs:LL:COL
207- |
208- = note: the failure occurred here
209199
210200error: aborting due to 18 previous errors
211201
0 commit comments