diff options
| author | asquared31415 <34665709+asquared31415@users.noreply.github.com> | 2021-06-09 23:11:35 -0400 |
|---|---|---|
| committer | asquared31415 <34665709+asquared31415@users.noreply.github.com> | 2021-06-09 23:14:02 -0400 |
| commit | 9b2ba6d1a19fb75b66db64ce6ebedc595e894107 (patch) | |
| tree | f46e5486e322895685056c499d8b54567fd81b56 /compiler/rustc_middle/src | |
| parent | 1639a16ebfaad2aa74fd535c778fd1614475b53d (diff) | |
| download | rust-9b2ba6d1a19fb75b66db64ce6ebedc595e894107.tar.gz rust-9b2ba6d1a19fb75b66db64ce6ebedc595e894107.zip | |
Fix ICE when `main` is declared in an `extern` block
Diffstat (limited to 'compiler/rustc_middle/src')
| -rw-r--r-- | compiler/rustc_middle/src/ty/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/ty/mod.rs b/compiler/rustc_middle/src/ty/mod.rs index 227aa8dc284..c8811771283 100644 --- a/compiler/rustc_middle/src/ty/mod.rs +++ b/compiler/rustc_middle/src/ty/mod.rs @@ -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, |
