mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-02 14:07:10 +00:00
Improve invalid UTF-8 lint by finding the expression initializer This PR introduce a small mechanism to walk up the HIR through bindings, if/else, consts, ... when trying lint on invalid UTF-8. Fixes https://github.com/rust-lang/rust/issues/115208