1
Fork 0
rust/compiler/rustc_lint/src
Aaron Hill f190bc4f47
Introduce proc_macro_back_compat lint, and emit for time-macros-impl
Now that future-incompat-report support has landed in nightly Cargo, we
can start to make progress towards removing the various proc-macro
back-compat hacks that have accumulated in the compiler.

This PR introduces a new lint `proc_macro_back_compat`, which results in
a future-incompat-report entry being generated. All proc-macro
back-compat warnings will be grouped under this lint. Note that this
lint will never actually become a hard error - instead, we will remove
the special cases for various macros, which will cause older versions of
those crates to emit some other error.

I've added code to fire this lint for the `time-macros-impl` case. This
is the easiest case out of all of our current back-compat hacks - the
crate was renamed to `time-macros`, so seeing a filename with
`time-macros-impl` guarantees that an older version of the parent `time`
crate is in use.

When Cargo's future-incompat-report feature gets stabilized, affected
users will start to see future-incompat warnings when they build their
crates.
2021-03-14 21:31:46 -04:00
..
nonstandard_style mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
array_into_iter.rs Implement rustc side of report-future-incompat 2020-10-30 20:02:14 -04:00
builtin.rs Remove hir::Item::attrs. 2021-03-09 19:27:50 +01:00
context.rs Introduce proc_macro_back_compat lint, and emit for time-macros-impl 2021-03-14 21:31:46 -04:00
early.rs Combine HasAttrs and HasTokens into AstLike 2021-02-27 00:14:13 -05:00
internal.rs Remove hir::Item::attrs. 2021-03-09 19:27:50 +01:00
late.rs Track HirId when visiting attributes. 2021-03-09 19:27:59 +01:00
levels.rs Remove hir::Crate::attrs. 2021-03-09 19:22:55 +01:00
lib.rs Rollup merge of #82798 - jyn514:rustdoc-group, r=Manishearth,GuillaumeGomez 2021-03-14 13:07:32 +09:00
methods.rs Fix doctest 2020-10-26 18:19:49 -04:00
non_ascii_idents.rs Auto merge of #76541 - matthiaskrgr:unstable_sort, r=davidtwco 2020-09-14 21:43:17 +00:00
non_fmt_panic.rs Rollup merge of #82456 - klensy:or-else, r=estebank 2021-02-26 15:52:31 +01:00
nonstandard_style.rs Remove hir::Item::attrs. 2021-03-09 19:27:50 +01:00
noop_method_call.rs Warn in doc test 2021-03-03 11:23:33 +01:00
passes.rs ast: Stop using Mod in Crate 2021-02-18 13:07:49 +03:00
redundant_semicolon.rs Lint on redundant trailing semicolon after item 2020-12-29 16:30:02 -05:00
traits.rs Only store a LocalDefId in hir::Item. 2021-02-15 19:32:10 +01:00
types.rs Handle negative literals in cast overflow warning 2021-03-06 17:33:21 +09:00
unused.rs Visit attributes in one go. 2021-03-09 19:09:34 +01:00