diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-01-18 06:59:20 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-18 06:59:20 +0100 |
| commit | 9e46c24a9094636d1e6e03f156a93ecb8443d8f1 (patch) | |
| tree | 78b63e09db063d78b4fb7e4592e28bf5cef17049 /library/std/src/sys/unix/stack_overflow.rs | |
| parent | d26e07b91a48047c0acd1e5527f49e57902eb6e7 (diff) | |
| parent | 1171fe5c455e63a1617d56f7dba2b7901182a1eb (diff) | |
| download | rust-9e46c24a9094636d1e6e03f156a93ecb8443d8f1.tar.gz rust-9e46c24a9094636d1e6e03f156a93ecb8443d8f1.zip | |
Rollup merge of #106873 - BoxyUwU:ty_const_formatting, r=compiler-errors
dont randomly use `_` to print out const generic arguments const generics seem to get printed out as `_` for no reason a lot of the time, as someone who spends a lot of time with const generics this has gotten :sparkles: very annoying :sparkles:. Latest example would be #106423 where the ICE messaged formatted a `ty::Const` containing no infer vars, as `_`. For some reason printing of the const argument on arrays was custom instead of using the existing logic for printing `ty::Const`. Additionally the existing logic for printing `ty::Const` would print out `_` for anon consts that are in a separate crate leading to weird diagnostics (see second commit). There ought to be less cases of consts randomly getting printed as `_` hiding valuable info now.
Diffstat (limited to 'library/std/src/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
