Rollup merge of #57698 - michaelwoerister:issue57692, r=Zoxc

Fix typo bug in DepGraph::try_mark_green().

r? @Zoxc

Fixes #57692.
This commit is contained in:
Mazdak Farrokhzad 2019-01-19 09:03:33 +01:00 committed by GitHub
commit c7686b787f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 1 deletions

View File

@ -638,7 +638,7 @@ impl DepGraph {
DepKind::Hir |
DepKind::HirBody |
DepKind::CrateMetadata => {
if dep_node.extract_def_id(tcx).is_none() {
if dep_dep_node.extract_def_id(tcx).is_none() {
// If the node does not exist anymore, we
// just fail to mark green.
return None

View File

@ -0,0 +1,17 @@
// revisions:rpass1 rpass2 rpass3
// See issue #57692.
#![allow(warnings)]
fn main() {
#[cfg(rpass1)]
{
static map: u64 = 0;
}
#[cfg(not(rpass1))]
{
static MAP: u64 = 0;
}
}