1
Fork 0

Cleanup lower_generics_mut and make span be the bound itself, not the type

This commit is contained in:
jackh726 2021-09-28 17:15:28 -04:00
parent 2c7bc5e33c
commit e1a9ecca26
4 changed files with 50 additions and 37 deletions

View file

@ -172,7 +172,7 @@ pub trait ResolverAstLowering {
fn legacy_const_generic_args(&mut self, expr: &Expr) -> Option<Vec<usize>>;
/// Obtains resolution for a `NodeId` with a single resolution.
fn get_partial_res(&mut self, id: NodeId) -> Option<PartialRes>;
fn get_partial_res(&self, id: NodeId) -> Option<PartialRes>;
/// Obtains per-namespace resolutions for `use` statement with the given `NodeId`.
fn get_import_res(&mut self, id: NodeId) -> PerNS<Option<Res<NodeId>>>;