rust/compiler/rustc_macros/src
Nilstrieb 5830ca216d Add internal_features lint
It lints against features that are inteded to be internal to the
compiler and standard library. Implements MCP #596.

We allow `internal_features` in the standard library and compiler as those
use many features and this _is_ the standard library from the "internal to the compiler and
standard library" after all.

Marking some features as internal wasn't exactly the most scientific approach, I just marked some
mostly obvious features. While there is a categorization in the macro,
it's not very well upheld (should probably be fixed in another PR).

We always pass `-Ainternal_features` in the testsuite
About 400 UI tests and several other tests use internal features.
Instead of throwing the attribute on each one, just always allow them.
There's nothing wrong with testing internal features^^
2023-08-03 14:50:50 +02:00
..
diagnostics Re-format let-else per rustfmt update 2023-07-12 21:49:27 -04:00
symbols Simplify some iterator combinators 2023-01-04 00:48:07 +00:00
hash_stable.rs migrate rustc_macros to syn 2.0 2023-04-06 04:55:58 +00:00
lib.rs Add internal_features lint 2023-08-03 14:50:50 +02:00
lift.rs
newtype.rs Re-format let-else per rustfmt update 2023-07-12 21:49:27 -04:00
query.rs Merge query property modules into one 2023-05-18 09:45:12 +02:00
serialize.rs inline format!() args up to and including rustc_middle 2023-07-30 13:18:33 +02:00
symbols.rs Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
type_foldable.rs migrate rustc_macros to syn 2.0 2023-04-06 04:55:58 +00:00
type_visitable.rs migrate rustc_macros to syn 2.0 2023-04-06 04:55:58 +00:00