about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-07-19 11:38:56 +0530
committerGitHub <noreply@github.com>2022-07-19 11:38:56 +0530
commit43dbf054b107d00661bf9cddaa36fbb458bb3f36 (patch)
tree91f40b148fb1b5660397c3b536690e04814e94d0 /compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp
parentbf1366b4d3934c6174e56f4a5226ccbecedf66ce (diff)
parent38f090b5e9bdf765eaeab80d5feaa1cd28021a3c (diff)
downloadrust-43dbf054b107d00661bf9cddaa36fbb458bb3f36.tar.gz
rust-43dbf054b107d00661bf9cddaa36fbb458bb3f36.zip
Rollup merge of #99404 - jmqd:master, r=compiler-errors
Use span_bug for unexpected field projection type

Improves the compiler error backtrace information, as shown in #99363,
by using `span_bug` instead of `bug`.

New output:

```
build/aarch64-apple-darwin/stage1/bin/rustc /tmp/test.rs --edition=2021
error: internal compiler error: compiler/rustc_middle/src/ty/closure.rs:185:25: Unexpected type Opaque(DefId(0:5 ~ test[db0f]::main::T::{opaque#0}), []) for `Field` projection
  --> /tmp/test.rs:11:27
   |
11 |         let Foo((a, b)) = foo;
   |                           ^^^

thread 'rustc' panicked at 'Box<dyn Any>', /Users/jmq/src/forked/rust/compiler/rustc_errors/src/lib.rs:1331:9
stack backtrace:
```

(Remainder of output truncated.)
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp')
0 files changed, 0 insertions, 0 deletions