Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Fix an ICE with trans of calls to foreign fns. Refactoring #17036

Closed

Conversation

pczarn
Copy link
Contributor

@pczarn pczarn commented Sep 6, 2014

A match in callee.rs was recognizing some foreign fns as named tuple constructors. A reproducible test case for this is nearly impossible since it depends on the way NodeIds happen to be assigned in different crates.

Fixes #15913

@pczarn pczarn force-pushed the issue-15913-ICE-with-call-trans branch 2 times, most recently from ea924d3 to 67fa7ff Compare September 6, 2014 00:58
@pczarn pczarn changed the title Fix trans of calls to foreign fns. Refactoring Fix an ICE with trans of calls to foreign fns. Refactoring Sep 6, 2014
@huonw
Copy link
Member

huonw commented Sep 6, 2014

Can this have a test?

@pczarn
Copy link
Contributor Author

pczarn commented Sep 6, 2014

@huonw, I'm not sure how to test for this ICE. It's almost a heisenbug. It happens when some foreign NodeId has the same number as a local one of a certain kind.

@pczarn pczarn force-pushed the issue-15913-ICE-with-call-trans branch from 67fa7ff to 808e039 Compare September 6, 2014 11:31
bors added a commit that referenced this pull request Sep 8, 2014
…=alexcrichton

A match in callee.rs was recognizing some foreign fns as named tuple constructors. A reproducible test case for this is nearly impossible since it depends on the way NodeIds happen to be assigned in different crates.

Fixes #15913
@bors bors closed this Sep 8, 2014
@pczarn pczarn deleted the issue-15913-ICE-with-call-trans branch January 14, 2015 16:56
lnicola pushed a commit to lnicola/rust that referenced this pull request Apr 20, 2024
Revert "fix: set the right postfix snippets competion source range"

This reverts commit c5686c8.

Fix rust-lang#17036. See rust-lang/rust-analyzer#17036 (comment)
lnicola pushed a commit to lnicola/rust that referenced this pull request Apr 20, 2024
Revert "fix: set the right postfix snippets competion source range"

This reverts commit c5686c8.

Fix rust-lang#17036. See rust-lang/rust-analyzer#17036 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ICE: adt::represent_type called on non-ADT type
4 participants