rust/compiler/rustc_index/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
..
bit_set Fix cloning from a BitSet with a different domain size 2022-07-08 11:41:36 +02:00
interval correct the test if IntervalSet 2022-06-08 22:44:26 +08:00
vec A few small cleanups for newtype_index 2022-12-18 21:47:28 +01:00
bit_set.rs Re-format let-else per rustfmt update 2023-07-12 21:49:27 -04:00
idx.rs Split {Idx, IndexVec, IndexSlice} into their own modules 2023-04-24 13:53:35 +00:00
interval.rs Auto merge of #111925 - Manishearth:rollup-z6z6l2v, r=Manishearth 2023-05-25 00:33:43 +00:00
lib.rs Add internal_features lint 2023-08-03 14:50:50 +02:00
slice.rs const-ify some {IndexVec, IndexSlice} methods 2023-04-24 13:53:37 +00:00
vec.rs Decorative changes to IndexVec 2023-04-24 13:53:37 +00:00