Skip to content

Commit 3e89575

Browse files
committed
remove leftovers
1 parent e3ba2d2 commit 3e89575

File tree

2 files changed

+0
-50
lines changed

2 files changed

+0
-50
lines changed

compiler/rustc_ast/src/expand/autodiff_attrs.rs

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ use rustc_data_structures::stable_hasher::{HashStable, StableHasher};//, StableO
22
use crate::HashStableContext;
33
use crate::expand::typetree::TypeTree;
44
use thin_vec::ThinVec;
5-
//use rustc_expand::base::{Annotatable, ExtCtxt};
65
use std::str::FromStr;
76

87
use crate::NestedMetaItem;
@@ -130,14 +129,6 @@ impl AutoDiffAttrs{
130129
}
131130
}
132131

133-
//impl<CTX: HashStableContext> HashStable<CTX> for AutoDiffAttrs {
134-
// fn hash_stable(&self, hcx: &mut CTX, hasher: &mut StableHasher) {
135-
// self.mode.hash_stable(hcx, hasher);
136-
// self.ret_activity.hash_stable(hcx, hasher);
137-
// self.input_activity.hash_stable(hcx, hasher);
138-
// }
139-
//}
140-
141132
impl AutoDiffAttrs {
142133
pub fn inactive() -> Self {
143134
AutoDiffAttrs {
@@ -202,16 +193,3 @@ pub struct AutoDiffItem {
202193
pub inputs: Vec<TypeTree>,
203194
pub output: TypeTree,
204195
}
205-
206-
//impl<CTX: HashStableContext> HashStable<CTX> for AutoDiffItem {
207-
// fn hash_stable(&self, hcx: &mut CTX, hasher: &mut StableHasher) {
208-
// self.source.hash_stable(hcx, hasher);
209-
// self.target.hash_stable(hcx, hasher);
210-
// self.attrs.hash_stable(hcx, hasher);
211-
// for tt in &self.inputs {
212-
// tt.0.hash_stable(hcx, hasher);
213-
// }
214-
// //self.inputs.hash_stable(hcx, hasher);
215-
// self.output.0.hash_stable(hcx, hasher);
216-
// }
217-
//}

compiler/rustc_ast/src/expand/typetree.rs

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
use std::fmt;
2-
//use rustc_data_structures::stable_hasher::{HashStable};//, StableHasher};
3-
//use crate::HashStableContext;
4-
52

63
#[derive(Clone, Eq, PartialEq, Encodable, Decodable, Debug, HashStable_Generic)]
74
pub enum Kind {
@@ -13,22 +10,6 @@ pub enum Kind {
1310
Double,
1411
Unknown,
1512
}
16-
//impl<CTX: HashStableContext> HashStable<CTX> for Kind {
17-
// fn hash_stable(&self, hcx: &mut CTX, hasher: &mut StableHasher) {
18-
// clause_kind_discriminant(self).hash_stable(hcx, hasher);
19-
// }
20-
//}
21-
//fn clause_kind_discriminant(value: &Kind) -> usize {
22-
// match value {
23-
// Kind::Anything => 0,
24-
// Kind::Integer => 1,
25-
// Kind::Pointer => 2,
26-
// Kind::Half => 3,
27-
// Kind::Float => 4,
28-
// Kind::Double => 5,
29-
// Kind::Unknown => 6,
30-
// }
31-
//}
3213

3314
#[derive(Clone, Eq, PartialEq, Encodable, Decodable, Debug, HashStable_Generic)]
3415
pub struct TypeTree(pub Vec<Type>);
@@ -41,15 +22,6 @@ pub struct Type {
4122
pub child: TypeTree,
4223
}
4324

44-
//impl<CTX: HashStableContext> HashStable<CTX> for Type {
45-
// fn hash_stable(&self, hcx: &mut CTX, hasher: &mut StableHasher) {
46-
// self.offset.hash_stable(hcx, hasher);
47-
// self.size.hash_stable(hcx, hasher);
48-
// self.kind.hash_stable(hcx, hasher);
49-
// self.child.0.hash_stable(hcx, hasher);
50-
// }
51-
//}
52-
5325
impl Type {
5426
pub fn add_offset(self, add: isize) -> Self {
5527
let offset = match self.offset {

0 commit comments

Comments
 (0)