Skip to content

Commit f7995c6

Browse files
committed
fix lib tests
1 parent aac8aed commit f7995c6

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

library/alloc/tests/fmt.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#![deny(warnings)]
22
// FIXME(static_mut_refs): Do not allow `static_mut_refs` lint
3-
#![allow(static_mut_refs, redundant_transmutation)]
3+
#![allow(static_mut_refs)]
4+
#![cfg_attr(not(bootstrap), allow(redundant_transmutation))]
45

56
use std::cell::RefCell;
67
use std::fmt::{self, Write};

library/core/src/intrinsics/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1354,6 +1354,7 @@ pub const fn forget<T: ?Sized>(_: T);
13541354
/// Turning raw bytes (`[u8; SZ]`) into `u32`, `f64`, etc.:
13551355
///
13561356
/// ```
1357+
/// # #![cfg_attr(not(bootstrap), allow(redundant_transmutation))]
13571358
/// let raw_bytes = [0x78, 0x56, 0x34, 0x12];
13581359
///
13591360
/// let num = unsafe {

0 commit comments

Comments
 (0)