1
Fork 0

Fix ICE when main is declared in an extern block

This commit is contained in:
asquared31415 2021-06-09 23:11:35 -04:00
parent 1639a16ebf
commit 9b2ba6d1a1
5 changed files with 32 additions and 2 deletions

View file

@ -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,