rust/compiler/rustc_middle/src
Dylan DPC 43dbf054b1
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.)
2022-07-19 11:38:56 +05:30
..
dep_graph Use a dedicated DepKind for the forever-red node. 2022-07-06 23:20:12 +02:00
hir Auto merge of #98203 - kckeiks:gather-body-owners-in-hir-item-queries, r=cjgillot 2022-07-15 01:03:55 +00:00
infer Use LocalDefId in OpaqueTypeKey 2022-07-19 02:08:49 +00:00
middle Auto merge of #95956 - yaahc:stable-in-unstable, r=cjgillot 2022-07-14 13:42:09 +00:00
mir Use LocalDefId in OpaqueTypeKey 2022-07-19 02:08:49 +00:00
query Use constant eval to do strict validity checks 2022-07-14 22:55:17 +01:00
thir Rollup merge of #99000 - JulianKnodt:allow_resolve_no_substs, r=lcnr 2022-07-14 19:24:04 +05:30
traits Rollup merge of #99290 - compiler-errors:revert-98794, r=lcnr 2022-07-16 22:30:52 +02:00
ty Rollup merge of #99404 - jmqd:master, r=compiler-errors 2022-07-19 11:38:56 +05:30
util span: move MultiSpan 2022-04-05 07:01:00 +01:00
arena.rs arena > Rc for query results 2022-07-12 15:27:24 +02:00
lib.rs Stabilize let_chains 2022-07-16 20:17:58 -03:00
lint.rs Rename debugging_opts to unstable_opts 2022-07-13 17:47:06 -05:00
macros.rs impl TypeVisitable in type traversal macros 2022-07-05 22:25:33 +01:00
metadata.rs resolve/metadata: Stop encoding macros as reexports 2022-02-24 22:55:40 +03:00
tests.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
thir.rs Rollup merge of #99000 - JulianKnodt:allow_resolve_no_substs, r=lcnr 2022-07-14 19:24:04 +05:30