rust/library/test/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
..
formatters match on chars instead of &strs for .split() or .strip_prefix() 2023-07-23 10:13:41 +02:00
helpers Add IsTerminal trait to determine if a descriptor or handle is a terminal 2022-10-15 00:35:38 +01:00
stats mv std libs to library/ 2020-07-27 19:51:13 -05:00
term Remove various double spaces in source comments. 2023-01-14 17:22:04 +01:00
bench.rs Do not panic when a test function returns Result::Err. 2022-09-16 14:36:00 +00:00
cli.rs libtest: Improve error when missing -Zunstable-options 2023-05-24 11:18:20 -05:00
console.rs add StaticBenchAsTestFn and DynBenchAsTestFn to convert benches to tests 2023-05-26 14:57:38 +02:00
event.rs Do fewer passes and generally be more efficient when filtering tests 2022-10-27 21:34:56 -04:00
lib.rs Add internal_features lint 2023-08-03 14:50:50 +02:00
options.rs derive Default trait for compiletest::common::Config 2023-05-20 14:40:46 +03:00
stats.rs Fix naming format of IEEE 754 standard 2022-09-11 04:13:33 +02:00
term.rs WinConsole::new is not actually fallible 2022-10-21 12:18:33 +02:00
test_result.rs Fix a few clippy lints in libtest 2023-01-03 18:55:03 +00:00
tests.rs ignore core, alloc and test tests that require unwinding on panic=abort 2023-06-13 15:53:24 +02:00
time.rs Fix uninlined_format_args in libtest 2022-12-19 08:58:40 +01:00
types.rs remove repetitive words 2023-07-31 16:13:02 +08:00