diff options
| author | bors <bors@rust-lang.org> | 2019-08-30 03:09:39 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-08-30 03:09:39 +0000 |
| commit | c7d4df0fcfc3ed3ee98a430e451c6776e90d65ae (patch) | |
| tree | a8c0a086a2829c37fca162af80cb2caef3ae0e0e /src/libcore | |
| parent | 72b2abfd65ba024e12d7fe51852a309419f494d8 (diff) | |
| parent | 6978b9482b976d991dac1dc55a6effe1f697cd1f (diff) | |
| download | rust-c7d4df0fcfc3ed3ee98a430e451c6776e90d65ae.tar.gz rust-c7d4df0fcfc3ed3ee98a430e451c6776e90d65ae.zip | |
Auto merge of #60966 - oli-obk:diagnostic_items, r=eddyb
Add a "diagnostic item" scheme for lints referring to libstd items fixes https://github.com/rust-lang/rust/issues/39131 r? @Manishearth @rust-lang/wg-diagnostics
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/fmt/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libcore/fmt/mod.rs b/src/libcore/fmt/mod.rs index bd31d25dd03..7e35188bc10 100644 --- a/src/libcore/fmt/mod.rs +++ b/src/libcore/fmt/mod.rs @@ -518,7 +518,8 @@ impl Display for Arguments<'_> { label="`{Self}` cannot be formatted using `{{:?}}` because it doesn't implement `{Debug}`", )] #[doc(alias = "{:?}")] -#[lang = "debug_trait"] +#[cfg_attr(boostrap_stdarch_ignore_this, lang = "debug_trait")] +#[cfg_attr(not(boostrap_stdarch_ignore_this), rustc_diagnostic_item = "debug_trait")] pub trait Debug { /// Formats the value using the given formatter. /// |
