Skip to content

Commit 1ab8306

Browse files
committed
Update to 85fd37f87 2014-08-16 21:11:08 +0000.
1 parent c9e0458 commit 1ab8306

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
target
1+
target
2+
Cargo.lock

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ name = "copypasteck"
33
version = "0.1.0"
44
authors = [ "Huon Wilson <dbau.pp@gmail.com>" ]
55

6-
[[lib]]
6+
[lib]
77
name = "copypasteck"
88
plugin = true

src/hasher.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,8 @@ impl<'a> Visitor<E> for StrictVersionHashVisitor<'a> {
300300
SawLifetimeRef(content(l.name)).hash(self.st);
301301
}
302302

303-
fn visit_lifetime_decl(&mut self, l: &Lifetime, _: E) {
304-
SawLifetimeDecl(content(l.name)).hash(self.st);
303+
fn visit_lifetime_decl(&mut self, l: &LifetimeDef, _: E) {
304+
SawLifetimeDecl(content(l.lifetime.name)).hash(self.st);
305305
}
306306

307307
// We do recursively walk the bodies of functions/methods
@@ -370,8 +370,8 @@ impl<'a> Visitor<E> for StrictVersionHashVisitor<'a> {
370370
SawTyMethod.hash(self.st); visit::walk_ty_method(self, t, e)
371371
}
372372

373-
fn visit_trait_method(&mut self, t: &TraitMethod, e: E) {
374-
SawTraitMethod.hash(self.st); visit::walk_trait_method(self, t, e)
373+
fn visit_trait_item(&mut self, t: &TraitItem, e: E) {
374+
SawTraitMethod.hash(self.st); visit::walk_trait_item(self, t, e)
375375
}
376376

377377
fn visit_struct_field(&mut self, s: &StructField, e: E) {

0 commit comments

Comments
 (0)