Skip to content

Commit 2c5c2a6

Browse files
committed
removed experiments for cleaner github PR
1 parent 088037a commit 2c5c2a6

28 files changed

+9
-2340
lines changed

src/libcore/intrinsics.rs

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1943,16 +1943,17 @@ extern "rust-intrinsic" {
19431943
pub fn miri_start_panic(payload: *mut u8) -> !;
19441944
}
19451945

1946-
// Since `count_code_region` is lang_item, it must have a function body that the compiler can use
1947-
// to register its DefId with the lang_item entry. This function body is never actually called
1948-
// (and is therefore implemented as an aborting stub) because it is replaced with the
1949-
// LLVM intrinsic `llvm.instrprof.increment` by
1950-
// `rustc_codegen_llvm::intrinsic::IntrinsicCallMethods::codegen_intrinsic_call()`.
1951-
#[doc(hidden)]
1946+
/// Defines the `count_code_region` intrinsic as a `LangItem`. `LangItem`s require a function body
1947+
/// to register its DefId with the LangItem entry. The function body is never actually called (and
1948+
/// is therefore implemented as an aborting stub) because it is replaced with the LLVM intrinsic
1949+
/// `llvm.instrprof.increment` by
1950+
/// `rustc_codegen_llvm::intrinsic::IntrinsicCallMethods::codegen_intrinsic_call()`.
19521951
#[cfg(not(bootstrap))]
19531952
#[cfg_attr(not(bootstrap), lang = "count_code_region")]
1954-
pub fn count_code_region(_index: u32) {
1955-
#[cfg_attr(not(bootstrap), allow(unused_unsafe))] // remove `unsafe` on bootstrap bump
1953+
fn count_code_region(_index: u32) {
1954+
// remove `unsafe` (and safety comment) on bootstrap bump
1955+
#[cfg_attr(not(bootstrap), allow(unused_unsafe))]
1956+
// SAFETY: the `abort` intrinsic has no requirements to be called.
19561957
unsafe {
19571958
abort()
19581959
}

src/test/codegen/coverage-experiments/Cargo.lock

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/test/codegen/coverage-experiments/Cargo.toml

Lines changed: 0 additions & 103 deletions
This file was deleted.

src/test/codegen/coverage-experiments/README-THIS-IS-TEMPORARY.md

Lines changed: 0 additions & 157 deletions
This file was deleted.

0 commit comments

Comments
 (0)