about summary refs log tree commit diff
path: root/compiler/rustc_errors/src/lib.rs
AgeCommit message (Collapse)AuthorLines
2021-03-17Remove unnecessary `forward_inner_docs` hackJoshua Nelson-0/+1
and replace it with `extended_key_value_attributes` feature.
2021-03-06Change x64 size checks to not apply to x32.Harald van Dijk-1/+1
Rust contains various size checks conditional on target_arch = "x86_64", but these checks were never intended to apply to x86_64-unknown-linux-gnux32. Add target_pointer_width = "64" to the conditions.
2021-02-18nhwn: make treat_err_as_bug Option<NonZeroUsize>Nathan Nguyen-6/+7
2021-02-07Implement Encoder for Diagnostic manuallyJeremy Fitzhardinge-0/+4
...so we can skip serializing `tool_metadata` if it hasn't been set. This makes the output a bit cleaner, and avoiding having to update a bunch of unrelated tests.
2021-02-07Add `--extern-loc` to augment unused crate dependency diagnosticsJeremy Fitzhardinge-1/+34
This allows a build system to indicate a location in its own dependency specification files (eg Cargo's `Cargo.toml`) which can be reported along side any unused crate dependency. This supports several types of location: - 'json' - provide some json-structured data, which is included in the json diagnostics in a `tool_metadata` field - 'raw' - emit the provided string into the output. This also appears as a json string in `tool_metadata`. If no `--extern-location` is explicitly provided then a default json entry of the form `"tool_metadata":{"name":<cratename>,"path":<cratepath>}` is emitted.
2021-02-03Make panic/assert calls in rustc compatible with Rust 2021.Mara Bos-2/+2
2021-01-14Use Option::map_or instead of `.map(..).unwrap_or(..)`LingMan-2/+2
2020-10-30Implement rustc side of report-future-incompatAaron Hill-29/+82
2020-10-30Fix even more clippy warningsJoshua Nelson-8/+2
2020-09-23/nightly/nightly-rustcErik Hofmayer-1/+1
2020-09-23Updated html_root_url for compiler cratesErik Hofmayer-1/+1
2020-09-18Simplify panic_if_treat_err_as_bug avoiding allocationsJuan Aguilar Santillana-7/+5
2020-09-02rustc_{errors,session}: add `delay_good_path_bug`Dan Aloni-7/+48
The first use case of this detection of regression for trimmed paths computation, that is in the case of rustc, which should be computed only in case of errors or warnings. Our current user of this method is deeply nested, being a side effect from `Display` formatting on lots of rustc types. So taking only the caller to the error message is not enough - we should collect the traceback instead.
2020-08-30mv compiler to compiler/mark-0/+1021