rust/compiler/rustc_session/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
..
config Change process spawning to inherit the parent's signal mask by default 2022-10-20 14:53:38 -07:00
cgu_reuse_tracker.rs Remove useless borrows and derefs 2022-12-01 17:34:43 +00:00
code_stats.rs fix couple of clippy findings: 2023-07-23 10:50:14 +02:00
config.rs inline format!() args up to and including rustc_middle 2023-07-30 13:18:33 +02:00
cstore.rs Do not fetch HIR in native_libs. 2023-07-17 07:37:03 +00:00
errors.rs Add help for crate arg when crate name is invalid 2023-07-26 00:05:00 +08:00
filesearch.rs bump windows crate 0.46 -> 0.48 in workspace 2023-05-09 18:20:13 +03:00
lib.rs Add internal_features lint 2023-08-03 14:50:50 +02:00
options.rs Fix a comment. 2023-07-31 16:21:02 +10:00
output.rs Add help for crate arg when crate name is invalid 2023-07-26 00:05:00 +08:00
parse.rs Use a builder instead of boolean/option arguments 2023-07-25 13:51:15 +00:00
search_paths.rs Provide more context for rustc +nightly -Zunstable-options on stable 2023-06-27 23:23:33 +08:00
session.rs Use a builder instead of boolean/option arguments 2023-07-25 13:51:15 +00:00
utils.rs Add missing documentation for Session::time 2023-07-24 16:50:25 +02:00