rust/compiler/rustc_mir/src
bors 20040fa332 Auto merge of #84562 - richkadel:issue-83601, r=tmandry
Adds feature-gated `#[no_coverage]` function attribute, to fix derived Eq `0` coverage issue #83601

Derived Eq no longer shows uncovered

The Eq trait has a special hidden function. MIR `InstrumentCoverage`
would add this function to the coverage map, but it is never called, so
the `Eq` trait would always appear uncovered.

Fixes: #83601

The fix required creating a new function attribute `no_coverage` to mark
functions that should be ignored by `InstrumentCoverage` and the
coverage `mapgen` (during codegen).

Adding a `no_coverage` feature gate with tracking issue #84605.

r? `@tmandry`
cc: `@wesleywiser`
2021-04-28 13:05:16 +00:00
..
borrow_check Auto merge of #83401 - fee1-dead:master, r=davidtwco 2021-04-28 10:46:02 +00:00
const_eval remove now-unused 'is_min_const_fn' 2021-04-25 12:54:34 +02:00
dataflow fix few typos 2021-04-19 15:57:08 +03:00
interpret fix few typos 2021-04-19 15:57:08 +03:00
monomorphize Add an attribute to be able to configure the limit 2021-04-20 09:30:28 -04:00
transform Auto merge of #84562 - richkadel:issue-83601, r=tmandry 2021-04-28 13:05:16 +00:00
util fix few typos 2021-04-19 15:57:08 +03:00
lib.rs fix feature use in rustc libs 2021-04-18 22:05:45 +02:00
shim.rs Prepare mir::Constant for ty::Const only supporting valtrees 2021-03-12 12:43:54 +00:00