Skip to content

Commit db042e1

Browse files
committed
---
yaml --- r: 89870 b: refs/heads/master c: ab9e3a6 h: refs/heads/master v: v3
1 parent 9aa6a2f commit db042e1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 51bdec18b085b338a18256ae06692e2d200abdf3
2+
refs/heads/master: ab9e3a6652a03d6e7d4b6b9c02228174cc5ddab0
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a6d3e57dca68fde4effdda3e4ae2887aa535fcd6
55
refs/heads/try: b160761e35efcd1207112b3b782c06633cf441a8

trunk/src/librustc/middle/typeck/check/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,7 @@ pub fn compare_impl_method(tcx: ty::ctxt,
864864
tcx.sess.span_err(
865865
impl_m_span,
866866
format!("method `{}` has {} parameter{} \
867-
but the trait method `{}` has {}",
867+
but the declaration in trait `{}` has {}",
868868
tcx.sess.str_of(trait_m.ident),
869869
impl_m.fty.sig.inputs.len(),
870870
if impl_m.fty.sig.inputs.len() == 1 { "" } else { "s" },

trunk/src/test/compile-fail/trait-impl-different-num-params.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ trait foo {
1313
}
1414
impl foo for int {
1515
fn bar(&self) -> int {
16-
//~^ ERROR method `bar` has 0 parameters but the trait method `foo::bar` has 1
16+
//~^ ERROR method `bar` has 0 parameters but the declaration in trait `foo::bar` has 1
1717
*self
1818
}
1919
}

0 commit comments

Comments
 (0)