Skip to content

Commit 6c125fd

Browse files
committed
Maybe required for Kani
1 parent 56b6ae8 commit 6c125fd

File tree

4 files changed

+1
-5
lines changed

4 files changed

+1
-5
lines changed

library/core/src/contracts.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//! Unstable module containing the unstable contracts lang items and attribute macros.
2-
#![cfg(not(bootstrap))]
32
43
pub use crate::macros::builtin::{contracts_ensures as ensures, contracts_requires as requires};
54

library/core/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,6 @@ pub mod autodiff {
252252
pub use crate::macros::builtin::autodiff;
253253
}
254254

255-
#[cfg(not(bootstrap))]
256255
#[unstable(feature = "contracts", issue = "128044")]
257256
pub mod contracts;
258257

library/core/src/macros/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1692,7 +1692,6 @@ pub(crate) mod builtin {
16921692
/// The attribute carries an argument token-tree which is
16931693
/// eventually parsed as a unary closure expression that is
16941694
/// invoked on a reference to the return value.
1695-
#[cfg(not(bootstrap))]
16961695
#[unstable(feature = "contracts", issue = "128044")]
16971696
#[allow_internal_unstable(contracts_internals)]
16981697
#[rustc_builtin_macro]
@@ -1705,7 +1704,6 @@ pub(crate) mod builtin {
17051704
/// The attribute carries an argument token-tree which is
17061705
/// eventually parsed as an boolean expression with access to the
17071706
/// function's formal parameters
1708-
#[cfg(not(bootstrap))]
17091707
#[unstable(feature = "contracts", issue = "128044")]
17101708
#[allow_internal_unstable(contracts_internals)]
17111709
#[rustc_builtin_macro]

library/core/src/panicking.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ fn panic_misaligned_pointer_dereference(required: usize, found: usize) -> ! {
294294
#[cfg_attr(not(feature = "panic_immediate_abort"), inline(never), cold, optimize(size))]
295295
#[cfg_attr(feature = "panic_immediate_abort", inline)]
296296
#[track_caller]
297-
#[cfg_attr(not(bootstrap), lang = "panic_null_pointer_dereference")] // needed by codegen for panic on null pointer deref
297+
#[lang = "panic_null_pointer_dereference"] // needed by codegen for panic on null pointer deref
298298
#[rustc_nounwind] // `CheckNull` MIR pass requires this function to never unwind
299299
fn panic_null_pointer_dereference() -> ! {
300300
if cfg!(feature = "panic_immediate_abort") {

0 commit comments

Comments
 (0)