rust/compiler/rustc_feature/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
..
accepted.rs Swap out CURRENT_RUSTC_VERSION to 1.71.0 2023-05-30 07:54:29 -04:00
active.rs Add internal_features lint 2023-08-03 14:50:50 +02:00
builtin_attrs.rs Add infrastructure #[rustc_confusables] attribute to allow targeted 2023-07-16 19:22:03 +08:00
lib.rs Use is_some_and/is_ok_and in less obvious spots 2023-05-24 14:33:43 +00:00
removed.rs Remove const eval limit and implement an exponential backoff lint instead 2023-05-31 10:24:17 +00:00
tests.rs tidy: Re-enable check for inline unit tests 2020-12-12 19:18:44 +03:00