Refactored ast_map and friends, mainly to have Paths without storing them.
This commit is contained in:
parent
22c34f3c4c
commit
a02b10a062
92 changed files with 1987 additions and 2573 deletions
|
|
@ -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`
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue