Skip to content

Commit

Permalink
Rollup merge of rust-lang#57698 - michaelwoerister:issue57692, r=Zoxc
Browse files Browse the repository at this point in the history
Fix typo bug in DepGraph::try_mark_green().

r? @Zoxc

Fixes rust-lang#57692.
  • Loading branch information
Centril authored Jan 19, 2019
2 parents 83921c3 + 3884cc8 commit c7686b7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc/dep_graph/graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
17 changes: 17 additions & 0 deletions src/test/incremental/change_name_of_static_in_fn.rs
Original file line number Diff line number Diff line change
@@ -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;
}
}

0 comments on commit c7686b7

Please sign in to comment.