rust/library/core/src
bors dab2ae0404 Auto merge of #75037 - richkadel:llvm-coverage-map-gen-5.2, r=wesleywiser
Completes support for coverage in external crates

Follow-up to #74959 :

The prior PR corrected for errors encountered when trying to generate
the coverage map on source code inlined from external crates (including
macros and generics) by avoiding adding external DefIds to the coverage
map.

This made it possible to generate a coverage report including external
crates, but the external crate coverage was incomplete (did not include
coverage for the DefIds that were eliminated.

The root issue was that the coverage map was converting Span locations
to source file and locations, using the SourceMap for the current crate,
and this would not work for spans from external crates (compliled with a
different SourceMap).

The solution was to convert the Spans to filename and location during
MIR generation instead, so precompiled external crates would already
have the correct source code locations embedded in their MIR, when
imported into another crate.

@wesleywiser FYI
r? @tmandry
2020-08-05 05:08:19 +00:00
..
alloc Revert missing "memory block" 2020-08-04 19:24:08 +02:00
array mv std libs to library/ 2020-07-27 19:51:13 -05:00
char mv std libs to library/ 2020-07-27 19:51:13 -05:00
convert mv std libs to library/ 2020-07-27 19:51:13 -05:00
fmt mv std libs to library/ 2020-07-27 19:51:13 -05:00
future mv std libs to library/ 2020-07-27 19:51:13 -05:00
hash mv std libs to library/ 2020-07-27 19:51:13 -05:00
iter mv std libs to library/ 2020-07-27 19:51:13 -05:00
macros mv std libs to library/ 2020-07-27 19:51:13 -05:00
mem Rollup merge of #74602 - poliorcetics:maybe-uninit-zeroed-doc-clarification, r=jyn514 2020-08-01 17:42:11 -07:00
num add unsigned_abs to signed integers 2020-07-29 10:38:58 -05:00
ops mv std libs to library/ 2020-07-27 19:51:13 -05:00
prelude mv std libs to library/ 2020-07-27 19:51:13 -05:00
ptr mv std libs to library/ 2020-07-27 19:51:13 -05:00
slice add tracking issue 2020-08-01 07:49:24 +02:00
str Add str::[r]split_once 2020-07-28 09:58:20 +02:00
sync fence docs: fix example Mutex 2020-07-29 15:45:42 +02:00
task Add #[inline] to RawWaker::new 2020-07-28 06:14:52 +02:00
unicode mv std libs to library/ 2020-07-27 19:51:13 -05:00
any.rs bump const type id stabilization to 1.46.0 2020-07-28 13:30:29 +10:00
ascii.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
bool.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
borrow.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
cell.rs add track_caller to RefCell::{borrow, borrow_mut} 2020-07-28 15:45:25 -04:00
clone.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
cmp.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
default.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
ffi.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
hint.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
internal_macros.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
intrinsics.rs Completes support for coverage in external crates 2020-08-04 11:06:54 -07:00
lazy.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
lib.rs Auto merge of #74956 - ecstatic-morse:const-option-unwrap, r=oli-obk 2020-07-31 08:26:33 +00:00
marker.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
option.rs Make Option::unwrap unstably const 2020-07-30 12:30:58 -07:00
panic.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
panicking.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
pin.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
primitive.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
raw.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
result.rs Stabilize as_deref and as_deref on Result 2020-07-31 02:42:24 +00:00
time.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
tuple.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
unit.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00