

Check node kind to avoid ICE in `check_expr_return()` by FabianWolff · Pull Requ...
source link: https://github.com/rust-lang/rust/pull/86728
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

This PR fixes #86721. The ICE described there is apparently due to a misunderstanding:
Intuitively, one would think that calling expect_item()
after get_parent_item()
should succeed, but as it turns out, get_parent_item()
can also return foreign, trait, and impl items as well as crates, whereas expect_item()
specifically expects a Node::Item
. I have therefore added an extra check to prevent this ICE.
Recommend
-
10
New issue Account for if (let pat = expr) {} #82854
-
7
Copy link Contributor FabianWolff commented
-
11
Copy link Contributor Fab...
-
12
Copy link Contributor FabianWolff ...
-
6
Copy link Contributor FabianWolff c...
-
10
AdobeReader 7.0.9 on CentOS 5 expr problem I like Evince to read pdf documents on CentOS 5 , but i wanted also to use the Adobe Reader to do it ... but each time i wanted to launch it, i had a "expr: syntax error" error while launchi...
-
16
Member
-
5
Contributor ...
-
10
Conversation During writeback, we do fix_{scalar,index}_builtin_expr so that during MIR build we generate built-in MIR instruc...
-
9
Conversation Contributor...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK