Skip to content

Commit c7686b7

Browse files
authored
Rollup merge of #57698 - michaelwoerister:issue57692, r=Zoxc
Fix typo bug in DepGraph::try_mark_green(). r? @Zoxc Fixes #57692.
2 parents 83921c3 + 3884cc8 commit c7686b7

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
@@ -638,7 +638,7 @@ impl DepGraph {
638638
DepKind::Hir |
639639
DepKind::HirBody |
640640
DepKind::CrateMetadata => {
641-
if dep_node.extract_def_id(tcx).is_none() {
641+
if dep_dep_node.extract_def_id(tcx).is_none() {
642642
// If the node does not exist anymore, we
643643
// just fail to mark green.
644644
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)