We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 997ec49 commit 17d4124Copy full SHA for 17d4124
library/core/src/fmt/rt.rs
@@ -72,7 +72,6 @@ macro_rules! argument_new {
72
// a `fn(&T, ...)`, so the invariant is maintained.
73
ty: ArgumentType::Placeholder {
74
value: NonNull::<$t>::from_ref($x).cast(),
75
- // SAFETY: function pointers always have the same layout.
76
formatter: |ptr: NonNull<()>, fmt: &mut Formatter<'_>| {
77
let func = $f;
78
// SAFETY: This is the same type as the `value` field.
0 commit comments