Rich Kadel
a6f8b8a211
Generating the coverage map
...
rustc now generates the coverage map and can support (limited)
coverage report generation, at the function level.
Example:
$ BUILD=$HOME/rust/build/x86_64-unknown-linux-gnu
$ $BUILD/stage1/bin/rustc -Zinstrument-coverage \
$HOME/rust/src/test/run-make-fulldeps/instrument-coverage/main.rs
$ LLVM_PROFILE_FILE="main.profraw" ./main
called
$ $BUILD/llvm/bin/llvm-profdata merge -sparse main.profraw -o main.profdata
$ $BUILD/llvm/bin/llvm-cov show --instr-profile=main.profdata main
1| 1|pub fn will_be_called() {
2| 1| println!("called");
3| 1|}
4| |
5| 0|pub fn will_not_be_called() {
6| 0| println!("should not have been called");
7| 0|}
8| |
9| 1|fn main() {
10| 1| let less = 1;
11| 1| let more = 100;
12| 1|
13| 1| if less < more {
14| 1| will_be_called();
15| 1| } else {
16| 1| will_not_be_called();
17| 1| }
18| 1|}
2020-07-17 11:49:35 -07:00
Mark Rousskov
647d9b525f
apply bootstrap cfgs
2020-07-16 19:36:49 -04:00
Dylan MacKenzie
48ebd2cdb8
Remove const_if_match
feature gate from libraries
2020-06-28 10:08:09 -07:00
Ralf Jung
c82103cb21
use min_specialization for some rustc crates where it requires no changes
2020-05-10 11:25:00 +02:00
Mazdak Farrokhzad
b3866a5c93
move rustc_hir::print -> rustc_hir_pretty
2020-03-24 06:25:03 +01:00
Mazdak Farrokhzad
b60d732efe
rustc_hir: nix rustc_errors dep
2020-03-24 06:22:27 +01:00
Mazdak Farrokhzad
14f89ded2c
{rustc::hir::map -> rustc_hir}::definitions
2020-03-21 22:20:24 +01:00
Mazdak Farrokhzad
0f68ab03c3
separate out an arena for HIR
2020-03-21 22:18:57 +01:00
Dylan MacKenzie
cc4a5770fa
Add requisite feature gates for const assert
2020-03-17 11:15:40 -07:00
Santiago Pastorino
b3b32b74bc
rust-lang.github.io/rustc-dev-guide -> rustc-dev-guide.rust-lang.org
2020-03-10 17:08:18 -03:00
Santiago Pastorino
9d4fdba8be
Rename rustc guide to rustc dev guide
2020-03-10 17:08:16 -03:00
Santiago Pastorino
0037f4e37c
Rename rustc-guide to rustc-dev-guide
2020-03-10 17:08:10 -03:00
Camille GILLOT
d3b2385d40
Move it all into rustc_hir.
2020-02-11 23:14:07 +01:00
Aaron Hill
619051e4f0
Move librustc_hir/def_id.rs to librustc_span/def_id.rs
...
For noww, librustc_hir re-exports the `def_id` module from
librustc_span, so the rest of rustc can continue to reference
rustc_hir::def_id
2020-02-08 16:48:01 -05:00
Dylan MacKenzie
09b5c854de
Remove unnecessary const_fn
feature gates
...
This flag opts out of the min-const-fn checks entirely, which is usually
not what we want. The few cases where the flag is still necessary have
been annotated.
2020-01-10 18:51:12 -08:00
Mazdak Farrokhzad
37d76dc2f7
{rustc::hir -> rustc_hir}::intravisit
2020-01-08 22:01:07 +01:00
Mazdak Farrokhzad
cdf32e1a0f
pacify the parallel compiler
2020-01-04 19:03:27 +01:00
Mazdak Farrokhzad
ef08662613
hir::{hir,def,itemlikevisit,pat_util,print} -> rustc_hir
...
Also fix fallout wrt. HashStable.
2020-01-04 19:03:27 +01:00
Mazdak Farrokhzad
72241ad348
move HirId
to librustc_hir::hir_id
2020-01-04 19:01:42 +01:00
Mazdak Farrokhzad
7a14073875
move def_id to new rustc_hir crate
2020-01-04 19:01:42 +01:00