mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-30 04:56:25 +03:00
70bc26d0e7
store the segment name when resolution fails Fixes #112672 The `find_cfg_stripped` does indeed get executed within `smart_resolve_report_errors`. However, this error is not reported as it is subsequently overridden by `parent_err`. (See: https://github.com/rust-lang/rust/blob/master/compiler/rustc_resolve/src/late.rs#L3760) This PR changes `last_segment` to `segment`, which stores the name of the failed resolution, and ensures that the result of `find_cfg_stripped` is also included in `parent_err`. r? ```@Nilstrieb```