rust/compiler/rustc_interface/src
bors 11ebe6512b Auto merge of #103217 - mejrs:track, r=eholk
Track where diagnostics were created.

This implements the `-Ztrack-diagnostics` flag, which uses `#[track_caller]` to track where diagnostics are created. It is meant as a debugging tool much like `-Ztreat-err-as-bug`.

For example, the following code...

```rust
struct A;
struct B;

fn main(){
    let _: A = B;
}
```
...now emits the following error message:

```
error[E0308]: mismatched types
 --> src\main.rs:5:16
  |
5 |     let _: A = B;
  |            -   ^ expected struct `A`, found struct `B`
  |            |
  |            expected due to this
-Ztrack-diagnostics: created at compiler\rustc_infer\src\infer\error_reporting\mod.rs:2275:31
```
2022-11-01 21:09:45 +00:00
..
callbacks.rs typo 2022-05-23 22:51:34 +02:00
errors.rs Migrate all diagnostics 2022-10-23 10:09:44 +02:00
interface.rs Add a comment to Compiler. 2022-10-19 17:37:50 +11:00
lib.rs remove cfg(bootstrap) 2022-09-26 10:14:45 +02:00
passes.rs privacy: Rename "accessibility levels" to "effective visibilities" 2022-10-26 16:34:53 +04:00
proc_macro_decls.rs Rename some OwnerId fields. 2022-10-29 20:28:38 +11:00
queries.rs Fix typo 2022-09-30 21:02:53 +02:00
tests.rs Auto merge of #103217 - mejrs:track, r=eholk 2022-11-01 21:09:45 +00:00
util.rs Clarify run_in_thread_pool_with_globals. 2022-10-19 17:37:48 +11:00