Jordan McQueen
38f090b5e9
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.)
2022-07-18 16:24:08 +09:00
..
2022-07-16 20:17:58 -03:00
2022-07-16 20:17:58 -03:00
2022-07-18 08:40:00 +09:00
2022-07-12 16:25:16 +04:00
2022-07-16 20:17:58 -03:00
2022-07-16 20:17:58 -03:00
2022-07-16 20:17:58 -03:00
2022-07-17 19:28:01 +00:00
2022-07-13 17:47:06 -05:00
2022-07-16 20:17:58 -03:00
2022-07-17 19:28:01 +00:00
2022-07-17 19:28:01 +00:00
2022-07-14 21:50:14 +00:00
2022-07-13 17:47:06 -05:00
2022-07-16 20:17:58 -03:00
2022-07-16 22:30:56 +02:00
2022-07-16 20:17:58 -03:00
2022-07-16 20:17:58 -03:00
2022-07-15 15:53:38 +05:30
2022-07-17 04:58:38 +00:00
2022-07-13 17:47:06 -05:00
2022-07-16 20:17:58 -03:00
2022-07-14 21:50:14 +00:00
2022-07-16 20:17:58 -03:00
2022-07-15 17:32:34 +00:00
2022-07-16 00:18:54 +00:00
2022-07-15 16:13:49 +01:00
2022-07-16 20:17:58 -03:00
2022-07-18 16:24:08 +09:00
2022-07-16 20:17:58 -03:00
2022-07-16 22:30:47 +02:00
2022-07-16 20:17:58 -03:00
2022-07-13 17:47:06 -05:00
2022-07-16 20:17:58 -03:00
2022-07-16 20:17:58 -03:00
2022-07-15 16:13:47 +01:00
2022-07-14 22:55:17 +01:00
2022-07-13 17:47:06 -05:00
2022-07-16 20:17:58 -03:00
2022-07-14 14:14:21 +05:30
2022-07-18 08:40:00 +09:00
2022-07-15 15:53:38 +05:30
2022-07-17 19:28:01 +00:00
2022-07-18 03:07:26 +00:00
2022-07-14 19:24:04 +05:30
2022-07-18 08:39:59 +09:00