rust/library
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
..
alloc Add internal_features lint 2023-08-03 14:50:50 +02:00
backtrace@e1c49fbd61 Update std to backtrace 0.3.68 2023-07-02 17:02:45 -07:00
core Add internal_features lint 2023-08-03 14:50:50 +02:00
panic_abort Add internal_features lint 2023-08-03 14:50:50 +02:00
panic_unwind Add internal_features lint 2023-08-03 14:50:50 +02:00
portable-simd remove repetitive words 2023-07-31 16:13:02 +08:00
proc_macro Add internal_features lint 2023-08-03 14:50:50 +02:00
profiler_builtins Add internal_features lint 2023-08-03 14:50:50 +02:00
rtstartup
rustc-std-workspace-alloc
rustc-std-workspace-core
rustc-std-workspace-std
std Add internal_features lint 2023-08-03 14:50:50 +02:00
stdarch@d77878b729
sysroot Expose compiler-builtins-weak-intrinsics feature for -Zbuild-std 2023-06-23 11:15:34 +01:00
test Add internal_features lint 2023-08-03 14:50:50 +02:00
unwind Add internal_features lint 2023-08-03 14:50:50 +02:00