diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-07-23 20:34:17 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-07-28 18:46:24 +0300 |
| commit | 434152157f9d73ad1899fb8da3a61aed6f8a46d6 (patch) | |
| tree | fd0dd6654839751b494670ba2da674246dc37cfb /src/libsyntax | |
| parent | 0cfb2f7fbda1d27e12913d21d1c8e56a4133dbe1 (diff) | |
| download | rust-434152157f9d73ad1899fb8da3a61aed6f8a46d6.tar.gz rust-434152157f9d73ad1899fb8da3a61aed6f8a46d6.zip | |
Remove lint annotations in specific crates that are already enforced by rustbuild
Remove some random unnecessary lint `allow`s
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/diagnostics/plugin.rs | 3 | ||||
| -rw-r--r-- | src/libsyntax/error_codes.rs | 2 | ||||
| -rw-r--r-- | src/libsyntax/json.rs | 1 | ||||
| -rw-r--r-- | src/libsyntax/lib.rs | 1 |
4 files changed, 1 insertions, 6 deletions
diff --git a/src/libsyntax/diagnostics/plugin.rs b/src/libsyntax/diagnostics/plugin.rs index ee640a1603a..e5e55a6444a 100644 --- a/src/libsyntax/diagnostics/plugin.rs +++ b/src/libsyntax/diagnostics/plugin.rs @@ -123,7 +123,6 @@ pub fn expand_register_diagnostic<'cx>(ecx: &'cx mut ExtCtxt<'_>, MacEager::items(smallvec![]) } -#[allow(deprecated)] pub fn expand_build_diagnostic_array<'cx>(ecx: &'cx mut ExtCtxt<'_>, span: Span, token_tree: &[TokenTree]) @@ -149,7 +148,7 @@ pub fn expand_build_diagnostic_array<'cx>(ecx: &'cx mut ExtCtxt<'_>, ecx.span_bug(span, &format!( "error writing metadata for triple `{}` and crate `{}`, error: {}, \ cause: {:?}", - target_triple, crate_name, e.description(), e.cause() + target_triple, crate_name, e.description(), e.source() )); } }); diff --git a/src/libsyntax/error_codes.rs b/src/libsyntax/error_codes.rs index 029ce73498c..1ba29011f75 100644 --- a/src/libsyntax/error_codes.rs +++ b/src/libsyntax/error_codes.rs @@ -1,5 +1,3 @@ -#![allow(non_snake_case)] - // Error messages for EXXXX errors. // Each message should start and end with a new line, and be wrapped to 80 characters. // In vim you can `:set tw=80` and use `gq` to wrap paragraphs. Use `:set tw=0` to disable. diff --git a/src/libsyntax/json.rs b/src/libsyntax/json.rs index ec0222d90eb..83c9c692bd3 100644 --- a/src/libsyntax/json.rs +++ b/src/libsyntax/json.rs @@ -122,7 +122,6 @@ struct Diagnostic { } #[derive(RustcEncodable)] -#[allow(unused_attributes)] struct DiagnosticSpan { file_name: String, byte_start: u32, diff --git a/src/libsyntax/lib.rs b/src/libsyntax/lib.rs index bb6a8dfb141..5ef80518b40 100644 --- a/src/libsyntax/lib.rs +++ b/src/libsyntax/lib.rs @@ -7,7 +7,6 @@ #![doc(html_root_url = "https://doc.rust-lang.org/nightly/", test(attr(deny(warnings))))] -#![deny(rust_2018_idioms)] #![deny(unused_lifetimes)] #![feature(bind_by_move_pattern_guards)] |
