Open dtolnay opened 6 years ago
This would be particularly useful for futures, where all await functions actually get listed as std::future::from_generator::GenFuture<T>::poll()
.
(might be useful to others) Rustc has a flag under -Z to print every item from monomorphization collection: -Z print-mono-items=lazy
I think RUSTC_BOOTSTRAP=1 RUSTFLAGS="-Zsymbol-mangling-version=v0" cargo llvm-lines
does this, learned from the one who knows everything.
Since Rust 1.59 the above is now RUSTFLAGS="-Csymbol-mangling-version=v0" cargo llvm-lines
.
Basically this. For example the instantiations of HashMap::insert could be: