Fix ICE when main
is declared in an extern
block
This commit is contained in:
parent
1639a16ebf
commit
9b2ba6d1a1
5 changed files with 32 additions and 2 deletions
|
@ -126,7 +126,7 @@ pub struct ResolverOutputs {
|
|||
pub main_def: Option<MainDefinition>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy)]
|
||||
#[derive(Clone, Copy, Debug)]
|
||||
pub struct MainDefinition {
|
||||
pub res: Res<ast::NodeId>,
|
||||
pub is_import: bool,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue