We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bd14e0 commit 624ee23Copy full SHA for 624ee23
crates/hir_def/src/generics.rs
@@ -299,7 +299,7 @@ impl GenericParams {
299
let macro_call = mc.to_node(db.upcast());
300
match expander.enter_expand::<ast::Type>(db, macro_call) {
301
Ok(ExpandResult { value: Some((mark, expanded)), .. }) => {
302
- let ctx = LowerCtx::new(db, mc.file_id);
+ let ctx = LowerCtx::new(db, expander.current_file_id());
303
let type_ref = TypeRef::from_ast(&ctx, expanded);
304
self.fill_implicit_impl_trait_args(db, expander, &type_ref);
305
expander.exit(db, mark);
0 commit comments