diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-08-03 20:29:45 +0200 |
|---|---|---|
| committer | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-11-06 11:10:37 +0100 |
| commit | 8e27c4f3122c2ccb529ee3911a9d7e956f2462cd (patch) | |
| tree | 8d51377ecf41d24ce2ebacd78a77cfa286ea83df /src/librustc/lint | |
| parent | b54c5781b8252189f04a58247f644bcf2bd9dd68 (diff) | |
| download | rust-8e27c4f3122c2ccb529ee3911a9d7e956f2462cd.tar.gz rust-8e27c4f3122c2ccb529ee3911a9d7e956f2462cd.zip | |
duplicate_macro_exports -> error
Diffstat (limited to 'src/librustc/lint')
| -rw-r--r-- | src/librustc/lint/builtin.rs | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/librustc/lint/builtin.rs b/src/librustc/lint/builtin.rs index c9dd60827ff..2e7db404747 100644 --- a/src/librustc/lint/builtin.rs +++ b/src/librustc/lint/builtin.rs @@ -332,16 +332,6 @@ declare_lint! { } declare_lint! { - pub DUPLICATE_MACRO_EXPORTS, - Deny, - "detects duplicate macro exports", - @future_incompatible = FutureIncompatibleInfo { - reference: "issue #35896 <https://github.com/rust-lang/rust/issues/35896>", - edition: Some(Edition::Edition2018), - }; -} - -declare_lint! { pub INTRA_DOC_LINK_RESOLUTION_FAILURE, Warn, "failures in resolving intra-doc link targets" @@ -533,7 +523,6 @@ declare_lint_pass! { ABSOLUTE_PATHS_NOT_STARTING_WITH_CRATE, UNSTABLE_NAME_COLLISIONS, IRREFUTABLE_LET_PATTERNS, - DUPLICATE_MACRO_EXPORTS, INTRA_DOC_LINK_RESOLUTION_FAILURE, MISSING_DOC_CODE_EXAMPLES, PRIVATE_DOC_TESTS, @@ -559,7 +548,6 @@ pub enum BuiltinLintDiagnostics { Normal, BareTraitObject(Span, /* is_global */ bool), AbsPathWithModule(Span), - DuplicatedMacroExports(ast::Ident, Span, Span), ProcMacroDeriveResolutionFallback(Span), MacroExpandedMacroExportsAccessedByAbsolutePaths(Span), ElidedLifetimesInPaths(usize, Span, bool, Span, String), @@ -642,10 +630,6 @@ impl BuiltinLintDiagnostics { }; db.span_suggestion(span, "use `crate`", sugg, app); } - BuiltinLintDiagnostics::DuplicatedMacroExports(ident, earlier_span, later_span) => { - db.span_label(later_span, format!("`{}` already exported", ident)); - db.span_note(earlier_span, "previous macro export is now shadowed"); - } BuiltinLintDiagnostics::ProcMacroDeriveResolutionFallback(span) => { db.span_label(span, "names from parent modules are not \ accessible without an explicit import"); |
