mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-23 04:57:37 +00:00
Use full path for core::mem::transmute
Suggested-by: Tamir Duberstein <tamird@gmail.com> Signed-off-by: Alice Ryhl <aliceryhl@google.com>
This commit is contained in:
parent
2009ca6d88
commit
1cbdfab75d
@ -7,7 +7,7 @@ use crate::char::{EscapeDebugExtArgs, MAX_LEN_UTF8};
|
||||
use crate::marker::PhantomData;
|
||||
use crate::num::fmt as numfmt;
|
||||
use crate::ops::Deref;
|
||||
use crate::{iter, mem, result, str};
|
||||
use crate::{iter, result, str};
|
||||
|
||||
mod builders;
|
||||
#[cfg(not(no_fp_fmt_parse))]
|
||||
|
@ -76,7 +76,7 @@ macro_rules! argument_new {
|
||||
formatter: {
|
||||
let f: fn(&$t, &mut Formatter<'_>) -> Result = $f;
|
||||
// SAFETY: This is only called with `value`, which has the right type.
|
||||
unsafe { mem::transmute(f) }
|
||||
unsafe { core::mem::transmute(f) }
|
||||
},
|
||||
#[cfg(any(sanitize = "cfi", sanitize = "kcfi"))]
|
||||
formatter: |ptr: NonNull<()>, fmt: &mut Formatter<'_>| {
|
||||
|
Loading…
Reference in New Issue
Block a user