1
Fork 0

rustc_resolve: use the visitor model more, remove redundant repeated lookups.

This commit is contained in:
Eduard Burtescu 2015-02-05 09:19:07 +02:00
parent ffb8092ccf
commit 5809f8ae74
26 changed files with 334 additions and 721 deletions

View file

@ -454,9 +454,6 @@ fn tybounds(w: &mut fmt::Formatter,
impl fmt::Display for clean::Type {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
match *self {
clean::TyParamBinder(id) => {
f.write_str(&cache().typarams[ast_util::local_def(id)])
}
clean::Generic(ref name) => {
f.write_str(name)
}