summaryrefslogtreecommitdiff
path: root/tests/rustdoc-js-std/parser-errors.js
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-01-18 06:59:20 +0100
committerGitHub <noreply@github.com>2023-01-18 06:59:20 +0100
commit9e46c24a9094636d1e6e03f156a93ecb8443d8f1 (patch)
tree78b63e09db063d78b4fb7e4592e28bf5cef17049 /tests/rustdoc-js-std/parser-errors.js
parentd26e07b91a48047c0acd1e5527f49e57902eb6e7 (diff)
parent1171fe5c455e63a1617d56f7dba2b7901182a1eb (diff)
downloadrust-9e46c24a9094636d1e6e03f156a93ecb8443d8f1.tar.gz
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 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions