<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/tests/ui/limits/issue-55878.stderr, branch perf-tmp</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=perf-tmp</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=perf-tmp'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-06-07T11:42:30+00:00</updated>
<entry>
<title>const-eval error: always say in which item the error occurred</title>
<updated>2025-06-07T11:42:30+00:00</updated>
<author>
<name>Ralf Jung</name>
<email>post@ralfj.de</email>
</author>
<published>2025-06-07T09:32:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=17946c22b1d7abd2dd990bf6998c8491b534fe62'/>
<id>urn:sha1:17946c22b1d7abd2dd990bf6998c8491b534fe62</id>
<content type='text'>
also adjust the wording a little so that we don't say "the error occurred here" for two different spans
</content>
</entry>
<entry>
<title>Clarify why we are talking about a failed const eval at a random place</title>
<updated>2025-06-02T15:37:15+00:00</updated>
<author>
<name>Oli Scherer</name>
<email>github333195615777966@oli-obk.de</email>
</author>
<published>2025-05-30T14:06:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=020216c31c1e4f1f56a689df8f04580504354613'/>
<id>urn:sha1:020216c31c1e4f1f56a689df8f04580504354613</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use the informative error as the main const eval error message</title>
<updated>2025-06-02T15:37:15+00:00</updated>
<author>
<name>Oli Scherer</name>
<email>github333195615777966@oli-obk.de</email>
</author>
<published>2025-05-28T10:29:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b331b8b96d86a6433df957a3cc49ed51f3656135'/>
<id>urn:sha1:b331b8b96d86a6433df957a3cc49ed51f3656135</id>
<content type='text'>
</content>
</entry>
<entry>
<title>compiletest: Require `//~` annotations even if `error-pattern` is specified</title>
<updated>2025-04-03T08:08:55+00:00</updated>
<author>
<name>Vadim Petrochenkov</name>
<email>vadim.petrochenkov@gmail.com</email>
</author>
<published>2025-03-28T23:41:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=4d649906900cd833b0680f53b8c197b087711a4a'/>
<id>urn:sha1:4d649906900cd833b0680f53b8c197b087711a4a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Shorten span of panic failures in const context</title>
<updated>2025-02-28T16:28:41+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2025-02-03T18:43:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=7d4d09eeeb7de6afae90b6cdbabed257eb77727f'/>
<id>urn:sha1:7d4d09eeeb7de6afae90b6cdbabed257eb77727f</id>
<content type='text'>
Previously, we included a redundant prefix on the panic message and a postfix of the location of the panic. The prefix didn't carry any additional information beyond "something failed", and the location of the panic is redundant with the diagnostic's span, which gets printed out even if its code is not shown.

```
error[E0080]: evaluation of constant value failed
  --&gt; $DIR/assert-type-intrinsics.rs:11:9
   |
LL |         MaybeUninit::&lt;!&gt;::uninit().assume_init();
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation panicked: aborted execution: attempted to instantiate uninhabited type `!`
```

```
error[E0080]: evaluation of `Fail::&lt;i32&gt;::C` failed
  --&gt; $DIR/collect-in-dead-closure.rs:9:19
   |
LL |     const C: () = panic!();
   |                   ^^^^^^^^ evaluation panicked: explicit panic
   |
   = note: this error originates in the macro
`$crate::panic::panic_2015` which comes from the expansion of the macro
`panic` (in Nightly builds, run with -Z macro-backtrace for more info)
```

```
error[E0080]: evaluation of constant value failed
  --&gt; $DIR/uninhabited.rs:41:9
   |
LL |         assert!(false);
   |         ^^^^^^^^^^^^^^ evaluation panicked: assertion failed: false
   |
   = note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)
```

---

When the primary span for a const error is the same as the first frame in the const error report, skip it.

```
error[E0080]: evaluation of constant value failed
  --&gt; $DIR/issue-88434-removal-index-should-be-less.rs:3:24
   |
LL | const _CONST: &amp;[u8] = &amp;f(&amp;[], |_| {});
   |                        ^^^^^^^^^^^^^^ evaluation panicked: explicit panic
   |
note: inside `f::&lt;{closure@$DIR/issue-88434-removal-index-should-be-less.rs:3:31: 3:34}&gt;`
  --&gt; $DIR/issue-88434-removal-index-should-be-less.rs:10:5
   |
LL |     panic!()
   |     ^^^^^^^^ the failure occurred here
   = note: this error originates in the macro `$crate::panic::panic_2015` which comes from the expansion of the macro `panic` (in Nightly builds, run with -Z macro-backtrace for more info)
```
instead of
```
error[E0080]: evaluation of constant value failed
  --&gt; $DIR/issue-88434-removal-index-should-be-less.rs:10:5
   |
LL |     panic!()
   |     ^^^^^^^^ explicit panic
   |
note: inside `f::&lt;{closure@$DIR/issue-88434-removal-index-should-be-less.rs:3:31: 3:34}&gt;`
  --&gt; $DIR/issue-88434-removal-index-should-be-less.rs:10:5
   |
LL |     panic!()
   |     ^^^^^^^^
note: inside `_CONST`
  --&gt; $DIR/issue-88434-removal-index-should-be-less.rs:3:24
   |
LL | const _CONST: &amp;[u8] = &amp;f(&amp;[], |_| {});
   |                        ^^^^^^^^^^^^^^
   = note: this error originates in the macro `$crate::panic::panic_2015` which comes from the expansion of the macro `panic` (in Nightly builds, run with -Z macro-backtrace for more info)
```

---

Revert order of constant evaluation errors

Point at the code the user wrote first and std functions last.

```
error[E0080]: evaluation of constant value failed
  --&gt; $DIR/const-errs-dont-conflict-103369.rs:5:25
   |
LL | impl ConstGenericTrait&lt;{my_fn(1)}&gt; for () {}
   |                         ^^^^^^^^ evaluation panicked: Some error occurred
   |
note: called from `my_fn`
  --&gt; $DIR/const-errs-dont-conflict-103369.rs:10:5
   |
LL |     panic!("Some error occurred");
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: this error originates in the macro `$crate::panic::panic_2015` which comes from the expansion of the macro `panic` (in Nightly builds, run with -Z macro-backtrace for more info)
```
instead of
```
error[E0080]: evaluation of constant value failed
  --&gt; $DIR/const-errs-dont-conflict-103369.rs:10:5
   |
LL |     panic!("Some error occurred");
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Some error occurred
   |
note: called from `&lt;() as ConstGenericTrait&lt;{my_fn(1)}&gt;&gt;::{constant#0}`
  --&gt; $DIR/const-errs-dont-conflict-103369.rs:5:25
   |
LL | impl ConstGenericTrait&lt;{my_fn(1)}&gt; for () {}
   |                         ^^^^^^^^
   = note: this error originates in the macro `$crate::panic::panic_2015` which comes from the expansion of the macro `panic` (in Nightly builds, run with -Z macro-backtrace for more info)
```
</content>
</entry>
<entry>
<title>Simplify or delete normalize directives that don't care about bit-width</title>
<updated>2024-12-27T01:42:07+00:00</updated>
<author>
<name>Zalathar</name>
<email>Zalathar@users.noreply.github.com</email>
</author>
<published>2024-12-25T07:52:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d997bc998e6522e86d04b210cef88e0e78b77ef6'/>
<id>urn:sha1:d997bc998e6522e86d04b210cef88e0e78b77ef6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix ICE when promoted has layout size overflow</title>
<updated>2024-12-01T18:52:27+00:00</updated>
<author>
<name>Ralf Jung</name>
<email>post@ralfj.de</email>
</author>
<published>2024-12-01T13:47:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a17294dc0fe106f0a8f12f8bc61ab17eacf251ef'/>
<id>urn:sha1:a17294dc0fe106f0a8f12f8bc61ab17eacf251ef</id>
<content type='text'>
</content>
</entry>
<entry>
<title>TL note: current means target</title>
<updated>2024-09-20T17:02:14+00:00</updated>
<author>
<name>Jubilee Young</name>
<email>workingjubilee@gmail.com</email>
</author>
<published>2024-09-20T07:39:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=325af25c9441ecffd0fc2fb7d5f324fe6224fe7c'/>
<id>urn:sha1:325af25c9441ecffd0fc2fb7d5f324fe6224fe7c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Show number in error message even for one error</title>
<updated>2023-11-24T18:15:52+00:00</updated>
<author>
<name>Nilstrieb</name>
<email>48135649+Nilstrieb@users.noreply.github.com</email>
</author>
<published>2023-11-21T15:44:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=41e8d152dc5abb5a706999ada8b059d3420af8f3'/>
<id>urn:sha1:41e8d152dc5abb5a706999ada8b059d3420af8f3</id>
<content type='text'>
Co-authored-by: Adrian &lt;adrian.iosdev@gmail.com&gt;
</content>
</entry>
<entry>
<title>Add a note to duplicate diagnostics</title>
<updated>2023-10-05T01:04:41+00:00</updated>
<author>
<name>Alex Macleod</name>
<email>alex@macleod.io</email>
</author>
<published>2023-10-04T18:34:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5453a9f34d21bdd1031d58b68fcd6a92adc82108'/>
<id>urn:sha1:5453a9f34d21bdd1031d58b68fcd6a92adc82108</id>
<content type='text'>
</content>
</entry>
</feed>
