We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d0ade34 + 3884cc8 commit 63d2588Copy full SHA for 63d2588
src/librustc/dep_graph/graph.rs
@@ -600,7 +600,7 @@ impl DepGraph {
600
DepKind::Hir |
601
DepKind::HirBody |
602
DepKind::CrateMetadata => {
603
- if dep_node.extract_def_id(tcx).is_none() {
+ if dep_dep_node.extract_def_id(tcx).is_none() {
604
// If the node does not exist anymore, we
605
// just fail to mark green.
606
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