From a02b10a0621adfe36eb3cc2e46f45fc7ccdb7ea2 Mon Sep 17 00:00:00 2001 From: Eduard Burtescu Date: Fri, 14 Feb 2014 07:07:09 +0200 Subject: Refactored ast_map and friends, mainly to have Paths without storing them. --- src/test/compile-fail/ambig_impl_2_exe.rs | 4 ++-- src/test/compile-fail/ambig_impl_unify.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/test') diff --git a/src/test/compile-fail/ambig_impl_2_exe.rs b/src/test/compile-fail/ambig_impl_2_exe.rs index c77d46363b6..ca1e0293f8e 100644 --- a/src/test/compile-fail/ambig_impl_2_exe.rs +++ b/src/test/compile-fail/ambig_impl_2_exe.rs @@ -15,6 +15,6 @@ use ambig_impl_2_lib::me; trait me { fn me(&self) -> uint; } -impl me for uint { fn me(&self) -> uint { *self } } //~ NOTE is `me$uint::me` +impl me for uint { fn me(&self) -> uint { *self } } //~ NOTE is `uint.me::me` fn main() { 1u.me(); } //~ ERROR multiple applicable methods in scope -//~^ NOTE is `ambig_impl_2_lib::me$uint::me` +//~^ NOTE is `ambig_impl_2_lib::uint.me::me` diff --git a/src/test/compile-fail/ambig_impl_unify.rs b/src/test/compile-fail/ambig_impl_unify.rs index c758a173f38..1327f69630b 100644 --- a/src/test/compile-fail/ambig_impl_unify.rs +++ b/src/test/compile-fail/ambig_impl_unify.rs @@ -13,11 +13,11 @@ trait foo { } impl foo for ~[uint] { - fn foo(&self) -> int {1} //~ NOTE candidate #1 is `foo$$UP$$VEC$uint::foo` + fn foo(&self) -> int {1} //~ NOTE candidate #1 is `~[uint].foo::foo` } impl foo for ~[int] { - fn foo(&self) -> int {2} //~ NOTE candidate #2 is `foo$$UP$$VEC$int::foo` + fn foo(&self) -> int {2} //~ NOTE candidate #2 is `~[int].foo::foo` } fn main() { -- cgit 1.4.1-3-g733a5