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 }}
Repository navigation
Out-of-range \x escapes should suggest alternatives #148917
error: out of range hex escape
--> src/main.rs:2:11
|
2 | dbg!('\xFF');| ^^^^ must be a character in the range [\x00-\x7f]
Desired output
error: out of range hex escape
--> src/main.rs:2:11
|
2 | dbg!('\xFF');| ^^^^ must be a character in the range [\x00-\x7f]
|| hint: Perhaps you want `b'\xFF'`for a single byte with that value or `'\u{FF}'`for that Unicode character.
Rationale and extra context
No response
Other cases
Rust Version
Build using the Nightly version: 1.93.0-nightly
(2025-11-12 01867557cd7dbe256a03)
Activity
Rollup merge of rust-lang#149201 - chenyukang:fix-str-format, r=Kivooeo
Unrolled build for #149201
Rollup merge of #149201 - chenyukang:fix-str-format, r=Kivooeo