DaniPopes
6aead74ff2
Remove unnecessary CVarArgs name skipping logic
2023-10-25 17:44:17 +02:00
DaniPopes
2c1dbed4aa
Print variadic argument pattern in HIR pretty printer
2023-10-25 17:36:04 +02:00
Paul Gey
587899e9ca
Preserve unicode escapes in format string literals when pretty-printing AST
2023-10-16 21:20:21 +02:00
Andy Caldwell
8e03371fc3
Rework no_coverage to coverage(off)
2023-09-08 12:46:06 +01:00
Matthias Krüger
0a2562bf4d
Rollup merge of #111042 - Zalathar:no-coverage, r=wesleywiser
...
Add `#[no_coverage]` to the test harness's `fn main`
There are two main motivations for adding `#[no_coverage]` to the test harness's entry point:
- The entry point is trivial compiler-generated code that doesn't correspond to user source, and it always runs, so there's no value in instrumenting it for coverage.
- Because it has dummy spans, it causes the instrumentor implementation to emit invalid coverage mappings that confuse `llvm-cov` and result in strange coverage reports.
Fixes #110749 .
2023-05-01 17:10:24 +02:00
Zalathar
77af67ab64
Add #[no_coverage]
to the test harness's fn main
2023-05-01 11:01:12 +10:00
Nilstrieb
0dbea7ad54
Close parentheses for offset_of
in AST pretty printing
...
HIR pretty printing already handles it correctly.
2023-04-30 23:29:40 +02:00
bors
9d0eac4d02
Auto merge of #108148 - parthopdas:master, r=oli-obk
...
Implementing "<test_binary> --list --format json" for use by IDE test explorers / runners
Fixes #107307
PR 1 of 2 - wiring up just the new information + implement the command line changes i.e. --format json + tests
upcoming:
PR 2 of 2 - clean up "#[cfg(not(bootstrap))]" from PR 1
As per the discussions on
- MCP: https://rust-lang.zulipchat.com/#narrow/stream/233931-t-compiler.2Fmajor-changes/topic/Implementing.20.22.3Ctest_binary.3E.20--list.20--form.E2.80.A6.20compiler-team.23592/near/328747548
- preRFC: https://internals.rust-lang.org/t/pre-rfc-implementing-test-binary-list-format-json-for-use-by-ide-test-explorers-runners/18308
- FYI on Discord: https://discord.com/channels/442252698964721669/459149169546887178/1075581549409484820
2023-03-20 03:24:27 +00:00
Mara Bos
1d59081bfd
Bless pretty tests.
2023-03-16 11:21:50 +01:00
Partha P. Das
3720753632
Implementing "<test_binary> --list --format json" #107307 #49359
2023-03-15 14:20:20 -04:00
clubby789
dd7df04e16
Remove uses of box_syntax
in rustc and tools
2023-03-12 13:19:46 +00:00
Mara Bos
47adb652d3
Update tests.
2023-01-29 20:19:26 +01:00
Mara Bos
7a3d5fe842
Bless pretty tests.
2023-01-12 00:25:46 +01:00
Albert Larsan
40ba0e84d5
Change src/test
to tests
in source files, fix tidy and tests
2023-01-11 09:32:13 +00:00
Albert Larsan
cf2dff2b1e
Move /src/test to /tests
2023-01-11 09:32:08 +00:00