Skip to content

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

Closed
pczarn wants to merge 2 commits into
rust-lang:masterfrom
pczarn:issue-15913-ICE-with-call-trans
Closed

Fix an ICE with trans of calls to foreign fns. Refactoring#17036
pczarn wants to merge 2 commits into
rust-lang:masterfrom
pczarn:issue-15913-ICE-with-call-trans

Conversation

@pczarn

Copy link
Copy Markdown
Contributor

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
pczarnforce-pushed the issue-15913-ICE-with-call-trans branch 2 times, most recently from ea924d3 to 67fa7ffCompareSeptember 6, 2014 00:58
@pczarnpczarn changed the title Fix trans of calls to foreign fns. RefactoringFix an ICE with trans of calls to foreign fns. RefactoringSep 6, 2014
@huonw

huonw commented Sep 6, 2014

Copy link
Copy Markdown
Contributor

Can this have a test?

@pczarn

Copy link
Copy Markdown
ContributorAuthor

@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
pczarnforce-pushed the issue-15913-ICE-with-call-trans branch from 67fa7ff to 808e039CompareSeptember 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
@borsbors 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.
Fixrust-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.
Fixrust-lang#17036. See rust-lang/rust-analyzer#17036 (comment)
flip1995 pushed a commit to flip1995/rust that referenced this pull request May 28, 2026
…ws (rust-lang#17036)
changelog: [`useless_borrows_in_formatting`]: If `&mut` references, or
mixed `&`/`&mut` references get passed to formatting, the error now
acknowledges that instead of only mentioning `&`s
Sign up for freeto 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

@pczarn@huonw@alexcrichton@bors