rustc_resolve: use the visitor model more, remove redundant repeated lookups.
This commit is contained in:
parent
ffb8092ccf
commit
5809f8ae74
26 changed files with 334 additions and 721 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue