mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-14 17:59:56 +00:00
Cleanup TypeRef lowering
By removing interior mutability from it.
This commit is contained in:
parent
cf8f950baa
commit
41658de227
12 changed files with 151 additions and 170 deletions
|
|
@ -465,13 +465,13 @@ impl<'a> TyLoweringContext<'a> {
|
|||
let (mut types_map, mut types_source_map) =
|
||||
(TypesMap::default(), TypesSourceMap::default());
|
||||
|
||||
let ctx = expander.ctx(
|
||||
let mut ctx = expander.ctx(
|
||||
self.db.upcast(),
|
||||
&mut types_map,
|
||||
&mut types_source_map,
|
||||
);
|
||||
// FIXME: Report syntax errors in expansion here
|
||||
let type_ref = TypeRef::from_ast(&ctx, expanded.tree());
|
||||
let type_ref = TypeRef::from_ast(&mut ctx, expanded.tree());
|
||||
|
||||
drop(expander);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue