Skip to content

Commit e9abafb

Browse files
committed
Remove a now-useless PhantomData
1 parent 3ab4e67 commit e9abafb

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

Lines changed: 0 additions & 4 deletions
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

@@ -354,7 +353,6 @@ impl<D: Deps> DepGraphData<D> {
354353
node: Some(key),
355354
reads: EdgesVec::new(),
356355
read_set: Default::default(),
357-
phantom_data: PhantomData,
358356
});
359357
(with_deps(TaskDepsRef::Allow(&task_deps)), task_deps.into_inner().reads)
360358
};
@@ -1301,7 +1299,6 @@ pub struct TaskDeps {
13011299
node: Option<DepNode>,
13021300
reads: EdgesVec,
13031301
read_set: FxHashSet<DepNodeIndex>,
1304-
phantom_data: PhantomData<DepNode>,
13051302
}
13061303

13071304
impl Default for TaskDeps {
@@ -1311,7 +1308,6 @@ impl Default for TaskDeps {
13111308
node: None,
13121309
reads: EdgesVec::new(),
13131310
read_set: FxHashSet::with_capacity_and_hasher(128, Default::default()),
1314-
phantom_data: PhantomData,
13151311
}
13161312
}
13171313
}

0 commit comments

Comments
 (0)