rust/compiler/rustc_builtin_macros/src
bors 3740ba2a7d Auto merge of #84863 - ABouttefeux:libtest, r=m-ou-se
Show test type during prints

Test output can sometimes be confusing. For example doctest with the no_run argument are displayed the same way than test that are run.

During #83857 I got the feedback that test output can be confusing.

For the moment test output is
```
test $DIR/test-type.rs - f (line 12) ... ignored
test $DIR/test-type.rs - f (line 15) ... ok
test $DIR/test-type.rs - f (line 21) ... ok
test $DIR/test-type.rs - f (line 6) ... ok
```

I propose to change output by indicating the test type as
```
test $DIR/test-type.rs - f (line 12) ... ignored
test $DIR/test-type.rs - f (line 15) - compile ... ok
test $DIR/test-type.rs - f (line 21) - compile fail ... ok
test $DIR/test-type.rs - f (line 6) ... ok
```
by indicating the test type after the test name (and in the case of doctest after the function name and line) and before the "...".

------------

Note: this is a proof of concept, the implementation is probably not optimal as the properties added in `TestDesc` are only use in the display and does not represent actual change of behavior, maybe `TestType::DocTest` could have fields
2021-06-06 09:13:59 +00:00
..
deriving Disallows #![feature(no_coverage)] on stable and beta 2021-05-05 07:52:26 -07:00
format_foreign mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
asm.rs Add support for const operands and options to global_asm! 2021-05-13 22:31:57 +01:00
assert.rs Fix bug with assert!() calling the wrong edition of panic!(). 2021-02-01 23:23:27 +01:00
cfg_accessible.rs expand: Tell built-in macros whether we are currently in forced expansion mode 2020-11-19 19:25:20 +03:00
cfg_eval.rs Implement token-based handling of attributes during expansion 2021-04-11 01:31:36 -04:00
cfg.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
cmdline_attrs.rs Unconditionally capture tokens for attributes. 2020-10-21 18:57:29 -04:00
compile_error.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
concat_idents.rs expand: Stop un-interpolating NtIdents before passing them to built-in macros 2020-09-28 23:10:44 +03:00
concat.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
derive.rs resolve/expand: Cache intermediate results of #[derive] expansion 2021-04-04 17:51:41 +03:00
env.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
format_foreign.rs avoid full-slicing slices 2021-02-16 00:31:11 +01:00
format.rs avoid full-slicing slices 2021-02-16 00:31:11 +01:00
global_allocator.rs Don't ICE when using #[global_alloc] on a non-item statement 2021-03-25 15:41:31 -04:00
lib.rs remove cfg(bootstrap) 2021-05-24 11:07:48 -04:00
llvm_asm.rs Rollup merge of #80495 - jyn514:rename-empty, r=petrochenkov 2020-12-30 20:56:58 +00:00
log_syntax.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
panic.rs Implement new panic!() behaviour for Rust 2021. 2021-01-25 13:48:11 +01:00
proc_macro_harness.rs ast: Stop using Mod in Crate 2021-02-18 13:07:49 +03:00
source_util.rs Use local and remapped paths where appropriate 2021-05-05 15:31:28 +01:00
standard_library_imports.rs Rollup merge of #82217 - m-ou-se:edition-prelude, r=nikomatsakis 2021-03-10 17:55:38 +01:00
test_harness.rs Remove #[main] attribute. 2021-04-16 13:04:02 +08:00
test.rs proof of concept add test type on prints 2021-05-03 15:22:19 +02:00
trace_macros.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
util.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00