diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-01-13 22:35:08 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-13 22:35:08 +0100 |
| commit | 70bc26d0e7268e12b7e487ee8ec9d5953b5c6aac (patch) | |
| tree | 8bc6b342ed036693f4c1c53184bdc132871b97b7 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 0bbc88809df4f8d707ba76ee78870dd8ffd9b6e1 (diff) | |
| parent | c288cb1f7437ab052613409f34b03afbdf30eeff (diff) | |
| download | rust-70bc26d0e7268e12b7e487ee8ec9d5953b5c6aac.tar.gz rust-70bc26d0e7268e12b7e487ee8ec9d5953b5c6aac.zip | |
Rollup merge of #119925 - bvanjoi:fix-112672, r=Nilstrieb
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```
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
