write more tests for reset/reuse

This commit is contained in:
Folkert 2020-07-28 01:13:49 +02:00
parent 95365959f2
commit eb793b2b44
5 changed files with 362 additions and 1 deletions

View file

@ -146,6 +146,17 @@ impl fmt::Debug for Symbol {
}
}
impl fmt::Display for Symbol {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
let module_id = self.module_id();
let ident_id = self.ident_id();
match ident_id {
IdentId(value) => write!(f, "{:?}.{:?}", module_id, value),
}
}
}
fn fallback_debug_fmt(symbol: Symbol, f: &mut fmt::Formatter) -> fmt::Result {
let module_id = symbol.module_id();
let ident_id = symbol.ident_id();