We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aac8aed commit f7995c6Copy full SHA for f7995c6
library/alloc/tests/fmt.rs
@@ -1,6 +1,7 @@
1
#![deny(warnings)]
2
// FIXME(static_mut_refs): Do not allow `static_mut_refs` lint
3
-#![allow(static_mut_refs, redundant_transmutation)]
+#![allow(static_mut_refs)]
4
+#![cfg_attr(not(bootstrap), allow(redundant_transmutation))]
5
6
use std::cell::RefCell;
7
use std::fmt::{self, Write};
library/core/src/intrinsics/mod.rs
@@ -1354,6 +1354,7 @@ pub const fn forget<T: ?Sized>(_: T);
1354
/// Turning raw bytes (`[u8; SZ]`) into `u32`, `f64`, etc.:
1355
///
1356
/// ```
1357
+/// # #![cfg_attr(not(bootstrap), allow(redundant_transmutation))]
1358
/// let raw_bytes = [0x78, 0x56, 0x34, 0x12];
1359
1360
/// let num = unsafe {
0 commit comments