rust/compiler/rustc_codegen_llvm/src
Rich Kadel 888d0b4c96 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).

While testing, I also noticed two other issues:

* spanview debug file output ICEd on a function with no body. The
workaround for this is included in this PR.
* `assert_*!()` macro coverage can appear covered if followed by another
`assert_*!()` macro. Normally they appear uncovered. I submitted a new
Issue #84561, and added a coverage test to demonstrate this issue.
2021-04-27 11:11:56 -07:00
..
back Rollup merge of #82483 - tmiasko:option-from-str, r=matthewjasper 2021-04-05 13:03:37 +02:00
coverageinfo Derived Eq no longer shows uncovered 2021-04-27 11:11:56 -07:00
debuginfo Rollup merge of #80525 - devsnek:wasm64, r=nagisa 2021-04-05 00:24:23 +02:00
llvm Don't set fast(-math) for certain simd ops 2021-04-17 23:33:10 +03:00
abi.rs Enable mutable noalias by default for LLVM 12 2021-03-21 20:10:54 +01:00
allocator.rs Remove redundant to_string calls 2021-02-17 11:25:55 +01:00
asm.rs Allow clobbering unsupported registers in asm! 2021-04-04 10:42:32 +01:00
attributes.rs rustc: Add a new wasm ABI 2021-04-08 08:03:18 -07:00
base.rs Move SanitizerSet to rustc_target 2021-04-03 00:37:49 +03:00
builder.rs Disable LLVM's new fptoint intrinsics on riscv64 2021-04-23 07:45:23 -07:00
callee.rs Manually set dso_local when its valid to do so 2021-04-03 00:00:29 +03:00
common.rs Update and improve rustc_codegen_{llvm,ssa} docs 2020-12-22 19:42:23 -08:00
consts.rs Replace const_cstr with cstr crate 2021-02-14 09:45:35 +11:00
context.rs rustc: Use LLVM's new saturating float-to-int intrinsics 2021-04-21 07:15:53 -07:00
declare.rs Make declare_cfn more flexible 2021-01-23 17:19:49 -05:00
intrinsic.rs Don't set fast(-math) for certain simd ops 2021-04-17 23:33:10 +03:00
lib.rs Use iter::zip in compiler/ 2021-03-26 09:32:31 -07:00
llvm_util.rs Categorize and explain target features support 2021-04-09 10:16:04 -05:00
metadata.rs fix review 2021-02-25 04:21:12 +03:00
mono_item.rs Manually set dso_local when its valid to do so 2021-04-03 00:00:29 +03:00
type_.rs Use ty::{IntTy,UintTy,FloatTy} in rustc 2021-01-18 21:09:30 +01:00
type_of.rs Revert "cg_llvm: fewer_names in uncached_llvm_type" 2020-12-17 16:40:47 +00:00
va_arg.rs Add big-endian support for AArch64 va_arg 2021-01-27 22:47:56 +00:00
value.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00