about summary refs log tree commit diff
path: root/tests/codegen/integer-overflow.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-01-13 22:35:08 +0100
committerGitHub <noreply@github.com>2024-01-13 22:35:08 +0100
commit70bc26d0e7268e12b7e487ee8ec9d5953b5c6aac (patch)
tree8bc6b342ed036693f4c1c53184bdc132871b97b7 /tests/codegen/integer-overflow.rs
parent0bbc88809df4f8d707ba76ee78870dd8ffd9b6e1 (diff)
parentc288cb1f7437ab052613409f34b03afbdf30eeff (diff)
downloadrust-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 'tests/codegen/integer-overflow.rs')
0 files changed, 0 insertions, 0 deletions