rust/compiler/rustc_metadata/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
..
rmeta Auto merge of #103496 - petrochenkov:effvisdoc2, r=lqd 2022-11-01 15:05:14 +00:00
creader.rs Rewrite implementation of #[alloc_error_handler] 2022-10-31 16:32:57 +00:00
dependency_format.rs Rollup merge of #100928 - CleanCut:rustc_metadata_diagnostics, r=davidtwco 2022-09-03 10:33:05 +05:30
errors.rs Auto merge of #103217 - mejrs:track, r=eholk 2022-11-01 21:09:45 +00:00
foreign_modules.rs Rename some OwnerId fields. 2022-10-29 20:28:38 +11:00
fs.rs respond to review feedback: mainly eliminate as many conversions as possible... 2022-08-31 10:56:42 -06:00
lib.rs remove cfg(bootstrap) 2022-09-26 10:14:45 +02:00
locator.rs Rollup merge of #100928 - CleanCut:rustc_metadata_diagnostics, r=davidtwco 2022-09-03 10:33:05 +05:30
native_libs.rs Rename some OwnerId fields. 2022-10-29 20:28:38 +11:00