Skip to content

Commit 128f38d

Browse files
committed
Remove a now-useless PhantomData
1 parent 0313d30 commit 128f38d

File tree

1 file changed

+0
-4
lines changed
  • compiler/rustc_query_system/src/dep_graph

1 file changed

+0
-4
lines changed

compiler/rustc_query_system/src/dep_graph/graph.rs

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
use std::assert_matches::assert_matches;
22
use std::fmt::Debug;
33
use std::hash::Hash;
4-
use std::marker::PhantomData;
54
use std::sync::Arc;
65
use std::sync::atomic::{AtomicU32, Ordering};
76

@@ -362,7 +361,6 @@ impl<D: Deps> DepGraphData<D> {
362361
node: Some(key),
363362
reads: EdgesVec::new(),
364363
read_set: Default::default(),
365-
phantom_data: PhantomData,
366364
});
367365
(with_deps(TaskDepsRef::Allow(&task_deps)), task_deps.into_inner().reads)
368366
};
@@ -1327,7 +1325,6 @@ pub struct TaskDeps {
13271325
node: Option<DepNode>,
13281326
reads: EdgesVec,
13291327
read_set: FxHashSet<DepNodeIndex>,
1330-
phantom_data: PhantomData<DepNode>,
13311328
}
13321329

13331330
impl Default for TaskDeps {
@@ -1337,7 +1334,6 @@ impl Default for TaskDeps {
13371334
node: None,
13381335
reads: EdgesVec::new(),
13391336
read_set: FxHashSet::with_capacity_and_hasher(128, Default::default()),
1340-
phantom_data: PhantomData,
13411337
}
13421338
}
13431339
}

0 commit comments

Comments
 (0)