Skip to content

Conversation

@chenyukang
Copy link
Member

@chenyukang chenyukang commented Nov 22, 2025

Fixes #148917

seems add two notes seems better.

r? @scottmcm

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Nov 22, 2025
@scottmcm
Copy link
Member

The two-notes approach looks reasonable to me in the same error, but I really don't know anything about this part of the compiler so I'm going to reroll, sorry.
r? diagnostics

@rustbot rustbot assigned davidtwco and unassigned scottmcm Nov 22, 2025
@Kivooeo Kivooeo assigned Kivooeo and unassigned davidtwco Nov 22, 2025
@Kivooeo
Copy link
Member

Kivooeo commented Nov 23, 2025

I'm not 100% sure about note here, it feels to me that help would be better, because we are trying to help user to fix their incorrect code but I can be wrong about when to use each so correct me here

@chenyukang
Copy link
Member Author

I'm not 100% sure about note here, it feels to me that help would be better, because we are trying to help user to fix their incorrect code but I can be wrong about when to use each so correct me here

I'm neutral for note or help in this case, anyway, I changed it into help.

@Kivooeo
Copy link
Member

Kivooeo commented Nov 24, 2025

r=me when ci green

@chenyukang
Copy link
Member Author

@bors r=Kivooeo

@bors
Copy link
Collaborator

bors commented Nov 24, 2025

📌 Commit 4d4f315 has been approved by Kivooeo

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Nov 24, 2025
bors added a commit that referenced this pull request Nov 24, 2025
Rollup of 6 pull requests

Successful merges:

 - #148234 (rustdoc: make mergeable crate info more usable)
 - #149201 (Add suggest alternatives for Out-of-range \x escapes)
 - #149208 ([rustdoc] Make more functions return `fmt::Result` and reduce number of `.unwrap()` calls)
 - #149252 (miri: use `tikv-jemalloc-sys` from sysroot)
 - #149255 (Use `let...else` consistently in user-facing diagnostics)
 - #149275 (Fix missing double-quote in `std::env::consts::OS` values)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit ade1581 into rust-lang:main Nov 24, 2025
11 checks passed
@rustbot rustbot added this to the 1.93.0 milestone Nov 24, 2025
rust-timer added a commit that referenced this pull request Nov 24, 2025
Rollup merge of #149201 - chenyukang:fix-str-format, r=Kivooeo

Add suggest alternatives for Out-of-range \x escapes

Fixes #148917

seems add two notes seems better.

r? `@scottmcm`
github-actions bot pushed a commit to rust-lang/miri that referenced this pull request Nov 25, 2025
Rollup of 6 pull requests

Successful merges:

 - rust-lang/rust#148234 (rustdoc: make mergeable crate info more usable)
 - rust-lang/rust#149201 (Add suggest alternatives for Out-of-range \x escapes)
 - rust-lang/rust#149208 ([rustdoc] Make more functions return `fmt::Result` and reduce number of `.unwrap()` calls)
 - rust-lang/rust#149252 (miri: use `tikv-jemalloc-sys` from sysroot)
 - rust-lang/rust#149255 (Use `let...else` consistently in user-facing diagnostics)
 - rust-lang/rust#149275 (Fix missing double-quote in `std::env::consts::OS` values)

r? `@ghost`
`@rustbot` modify labels: rollup
github-actions bot pushed a commit to rust-lang/rust-analyzer that referenced this pull request Nov 27, 2025
Rollup of 6 pull requests

Successful merges:

 - rust-lang/rust#148234 (rustdoc: make mergeable crate info more usable)
 - rust-lang/rust#149201 (Add suggest alternatives for Out-of-range \x escapes)
 - rust-lang/rust#149208 ([rustdoc] Make more functions return `fmt::Result` and reduce number of `.unwrap()` calls)
 - rust-lang/rust#149252 (miri: use `tikv-jemalloc-sys` from sysroot)
 - rust-lang/rust#149255 (Use `let...else` consistently in user-facing diagnostics)
 - rust-lang/rust#149275 (Fix missing double-quote in `std::env::consts::OS` values)

r? `@ghost`
`@rustbot` modify labels: rollup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Out-of-range \x escapes should suggest alternatives

6 participants