Merge pull request #1300 from rtfeldman/specialize-lowlevel

Polyvariant defunctionalization
This commit is contained in:
Richard Feldman 2021-05-24 19:54:17 -04:00 committed by GitHub
commit 75ec2ecc7b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
34 changed files with 4465 additions and 2696 deletions

View file

@ -165,6 +165,12 @@ impl fmt::Display for Symbol {
}
}
impl From<Symbol> for u64 {
fn from(symbol: Symbol) -> Self {
symbol.0
}
}
fn fallback_debug_fmt(symbol: Symbol, f: &mut fmt::Formatter) -> fmt::Result {
let module_id = symbol.module_id();
let ident_id = symbol.ident_id();