You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 28, 2025. It is now read-only.
Auto merge of rust-lang#123819 - joboet:fmt_usize_marker, r=Mark-Simulacrum
Get rid of `USIZE_MARKER` in formatting infrastructure
An alternative to rust-lang#123780.
The `USIZE_MARKER` function used to differentiate between placeholder and count arguments is never called anyway, so we can just replace the function-pointer-comparison hack with an `enum` and an `unreachable_unchecked`, hopefully without causing a regression.
CC `@RalfJung`
= help: within `[core::fmt::rt::Argument<'_>]`, the trait `Sync` is not implemented for `core::fmt::rt::Opaque`, which is required by `Arguments<'_>: Send`
10
10
= note: required because it appears within the type `&core::fmt::rt::Opaque`
11
+
note: required because it appears within the type `core::fmt::rt::ArgumentType<'_>`
12
+
--> $SRC_DIR/core/src/fmt/rt.rs:LL:COL
11
13
note: required because it appears within the type `core::fmt::rt::Argument<'_>`
12
14
--> $SRC_DIR/core/src/fmt/rt.rs:LL:COL
13
15
= note: required because it appears within the type `[core::fmt::rt::Argument<'_>]`
0 commit comments