about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorLeón Orell Valerian Liehr <me@fmease.dev>2024-04-16 01:12:38 +0200
committerGitHub <noreply@github.com>2024-04-16 01:12:38 +0200
commitac174ae8d2c5e663fcada4862baf9f77c0c47c46 (patch)
tree7fc90cff31d53349b7c059fc47ebcfbb86568f02 /compiler/rustc_codegen_llvm/src
parentb3a82d8f9ea24453733776073f4a917b3cc578b8 (diff)
parent1703109ba0e48505e50273c4309b97fd2dc8c86e (diff)
downloadrust-ac174ae8d2c5e663fcada4862baf9f77c0c47c46.tar.gz
rust-ac174ae8d2c5e663fcada4862baf9f77c0c47c46.zip
Rollup merge of #123926 - compiler-errors:no-ann, r=estebank
Fix pretty HIR for anon consts in diagnostics

This removes the `NoAnn` printer which skips over nested bodies altogether, which is confusing, and requires users of `{ty|qpath|pat}_to_string` to pass in `&tcx` which now impleemnts `hir_pretty::PpAnn`.

There's one case where this "regresses" by actually printing out the body of the anon const -- we could suppress that, but I don't expect people to actually get anon consts like that unless they're fuzzing, tbh.

r? estebank
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions