We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 83921c3 + 3884cc8 commit c7686b7Copy full SHA for c7686b7
src/librustc/dep_graph/graph.rs
@@ -638,7 +638,7 @@ impl DepGraph {
638
DepKind::Hir |
639
DepKind::HirBody |
640
DepKind::CrateMetadata => {
641
- if dep_node.extract_def_id(tcx).is_none() {
+ if dep_dep_node.extract_def_id(tcx).is_none() {
642
// If the node does not exist anymore, we
643
// just fail to mark green.
644
return None
src/test/incremental/change_name_of_static_in_fn.rs
@@ -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