More test fixes
This commit is contained in:
parent
24ccb34266
commit
a64000820f
64 changed files with 227 additions and 187 deletions
|
@ -103,26 +103,26 @@ impl Ident {
|
|||
//NOTE(stage0): remove after snapshot
|
||||
impl fmt::Show for Ident {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
fmt::String::fmt(self, f)
|
||||
write!(f, "{}#{}", self.name, self.ctxt)
|
||||
}
|
||||
}
|
||||
|
||||
impl fmt::String for Ident {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
write!(f, "{}#{}", self.name, self.ctxt)
|
||||
fmt::String::fmt(&self.name, f)
|
||||
}
|
||||
}
|
||||
|
||||
impl fmt::Show for Name {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
fmt::String::fmt(self, f)
|
||||
let Name(nm) = *self;
|
||||
write!(f, "{:?}({})", token::get_name(*self).get(), nm)
|
||||
}
|
||||
}
|
||||
|
||||
impl fmt::String for Name {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
let Name(nm) = *self;
|
||||
write!(f, "\"{}\"({})", token::get_name(*self).get(), nm)
|
||||
fmt::String::fmt(token::get_name(*self).get(), f)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue