mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-29 20:20:59 +03:00
50018abcdb
diagnostics: avoid ICE in confusable_method_name for associated functions Avoid unconditionally slicing `inputs()[1..]`, which assumes a `self` parameter. Use `is_method()` to conditionally skip the receiver, preventing out-of-bounds access and fixing suggestions for associated functions.