Skip to content

Commit 1652c7d

Browse files
michaelwoeristerpietroalbini
authored andcommitted
Fix typo bug in DepGraph::try_mark_green().
1 parent 676ade5 commit 1652c7d

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

src/librustc/dep_graph/graph.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ impl DepGraph {
600600
DepKind::Hir |
601601
DepKind::HirBody |
602602
DepKind::CrateMetadata => {
603-
if dep_node.extract_def_id(tcx).is_none() {
603+
if dep_dep_node.extract_def_id(tcx).is_none() {
604604
// If the node does not exist anymore, we
605605
// just fail to mark green.
606606
return None
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
2+
// revisions:rpass1 rpass2 rpass3
3+
4+
// See issue #57692.
5+
6+
#![allow(warnings)]
7+
8+
fn main() {
9+
#[cfg(rpass1)]
10+
{
11+
static map: u64 = 0;
12+
}
13+
#[cfg(not(rpass1))]
14+
{
15+
static MAP: u64 = 0;
16+
}
17+
}

0 commit comments

Comments
 (0)