rust/compiler/rustc_resolve/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 Implement the unused_macro_rules lint 2022-05-05 19:13:00 +02:00
late inline format!() args up to and including rustc_codegen_llvm 2023-07-30 14:22:50 +02:00
build_reduced_graph.rs inline format!() args up to and including rustc_codegen_llvm 2023-07-30 14:22:50 +02:00
check_unused.rs inline format!() args up to and including rustc_codegen_llvm 2023-07-30 14:22:50 +02:00
def_collector.rs Remove the NodeId of ast::ExprKind::Async 2023-03-19 19:01:31 +01:00
diagnostics.rs inline format!() args up to and including rustc_codegen_llvm 2023-07-30 14:22:50 +02:00
effective_visibilities.rs resolve: Use Interned for NameBinding 2023-07-05 13:47:36 +03:00
errors.rs Add translatable diagnostic for import resolution strings 2023-06-25 08:29:28 +01:00
ident.rs inline format!() args up to and including rustc_codegen_llvm 2023-07-30 14:22:50 +02:00
imports.rs Rollup merge of #113920 - bvanjoi:fix-81413, r=petrochenkov 2023-07-31 22:49:50 +02:00
late.rs inline format!() args up to and including rustc_codegen_llvm 2023-07-30 14:22:50 +02:00
lib.rs Add internal_features lint 2023-08-03 14:50:50 +02:00
macros.rs inline format!() args up to and including rustc_codegen_llvm 2023-07-30 14:22:50 +02:00
rustdoc.rs rustdoc: fix ICE from rustc_resolve and librustdoc parse divergence 2023-04-18 12:22:13 -07:00