Skip to content

Commit

Permalink
fix lib tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bend-n committed Mar 8, 2025
1 parent aac8aed commit f7995c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion library/alloc/tests/fmt.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#![deny(warnings)]
// FIXME(static_mut_refs): Do not allow `static_mut_refs` lint
#![allow(static_mut_refs, redundant_transmutation)]
#![allow(static_mut_refs)]
#![cfg_attr(not(bootstrap), allow(redundant_transmutation))]

use std::cell::RefCell;
use std::fmt::{self, Write};
Expand Down
1 change: 1 addition & 0 deletions library/core/src/intrinsics/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1354,6 +1354,7 @@ pub const fn forget<T: ?Sized>(_: T);
/// Turning raw bytes (`[u8; SZ]`) into `u32`, `f64`, etc.:
///
/// ```
/// # #![cfg_attr(not(bootstrap), allow(redundant_transmutation))]
/// let raw_bytes = [0x78, 0x56, 0x34, 0x12];
///
/// let num = unsafe {
Expand Down

0 comments on commit f7995c6

Please sign in to comment.