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
Commit 72ccf9b
Browse filesBrowse the repository at this point in the historyBrowse files
Rollup merge of #163106 - Albab-Hasan:const-pattern-note-raw-idents, r=oli-obk
emit the constant pattern note for raw identifier bindings
`is_const_pat_that_looks_like_binding` matched the pattern snippet against a plain identifier so the `#` in `let r#x = 0` rejected it and the binding lost both the label pointing at `const x` and the `introduce a variable instead` suggestion. strip a leading `r#` before the check and render the const name with `to_ident_string` in the label so a keyword name prints as `r#fn`.
fixes#162949
r? @oli-obk
0 commit comments