Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

add test for #23189 #54991

Merged
merged 1 commit into from
Oct 15, 2018
Merged

add test for #23189 #54991

merged 1 commit into from
Oct 15, 2018

Conversation

euclio
Copy link
Contributor

@euclio euclio commented Oct 11, 2018

Fixes #23189

@rust-highfive
Copy link
Collaborator

r? @aturon

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 11, 2018
}

fn main() {
let _ = module { x: 0 }; //~ERROR cannot find struct
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After looking at the original issue, I'm wondering if the ICE only triggered when the name module was in scope. Putting it under auxiliary would change that.

Did you manage to reproduce the original ICE with this test?

@tmandry
Copy link
Member

tmandry commented Oct 11, 2018

Thanks for your PR!

I did some checking, and I think you need a use auxiliary::module; line in your main file to trigger the original ICE.

Note that you can pull the compiler from the original issue with rustup: rustup toolchain install nightly-2015-03-08

@tmandry
Copy link
Member

tmandry commented Oct 11, 2018

r? @tmandry

@rust-highfive rust-highfive assigned tmandry and unassigned aturon Oct 11, 2018
@tmandry tmandry added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 12, 2018
@euclio
Copy link
Contributor Author

euclio commented Oct 12, 2018

Thanks for the review. I found that the auxiliary module isn't actually necessary at all, so I pushed a simplified test case.

@tmandry
Copy link
Member

tmandry commented Oct 12, 2018

Nice, even better!

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Oct 12, 2018

📌 Commit 3855af5 has been approved by tmandry

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Oct 12, 2018
Manishearth added a commit to Manishearth/rust that referenced this pull request Oct 15, 2018
bors added a commit that referenced this pull request Oct 15, 2018
Rollup of 11 pull requests

Successful merges:

 - #54820 (Closes #54538: `unused_patterns` lint)
 - #54963 (Cleanup rustc/session)
 - #54991 (add test for #23189)
 - #55025 (Add missing lifetime fragment specifier to error message.)
 - #55047 (doc: make core::fmt::Error example more simple)
 - #55048 (Don't collect to vectors where unnecessary)
 - #55060 (clarify pointer add/sub function safety concerns)
 - #55062 (Make EvalContext::step public again)
 - #55066 (Fix incorrect link in println! documentation)
 - #55081 (Deduplicate tests)
 - #55088 (Update rustc documentation link)

Failed merges:

r? @ghost
@bors bors merged commit 3855af5 into rust-lang:master Oct 15, 2018
@euclio euclio deleted the issue-23189 branch February 7, 2019 18:37
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants