Skip to content

Commit

Permalink
Auto merge of #123819 - joboet:fmt_usize_marker, r=Mark-Simulacrum
Browse files Browse the repository at this point in the history
Get rid of `USIZE_MARKER` in formatting infrastructure

An alternative to #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`
  • Loading branch information
bors committed Apr 14, 2024
2 parents 1e13c31 + 0cd5252 commit 8e1c7a8
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 8e1c7a8

Please sign in to comment.