Rollup merge of #89344 - jackh726:maybe-bound-eror, r=cjgillot

Cleanup lower_generics_mut and make span be the bound itself

Closes #86298 (supersedes those changes)

r? `@cjgillot` since you reviewed the other PR

(Used wrong branch for #89338)
This commit is contained in:
Manish Goregaokar
2021-09-30 23:41:09 -07:00
committed by GitHub
4 changed files with 50 additions and 37 deletions

View File

@@ -1152,7 +1152,7 @@ impl ResolverAstLowering for Resolver<'_> {
self.legacy_const_generic_args(expr)
}
fn get_partial_res(&mut self, id: NodeId) -> Option<PartialRes> {
fn get_partial_res(&self, id: NodeId) -> Option<PartialRes> {
self.partial_res_map.get(&id).cloned()
}