mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 11:20:54 +00:00
Shift vars when mapping Dyn
This commit is contained in:
parent
65d12c4bab
commit
fb53fdc1e4
@ -1147,6 +1147,9 @@ pub(crate) fn convert_ty_for_result<'db>(interner: DbInterner<'db>, ty: Ty<'db>)
|
||||
}
|
||||
}),
|
||||
);
|
||||
|
||||
let p = shift_vars(interner, p, 1);
|
||||
|
||||
let where_clause = match p.skip_binder() {
|
||||
rustc_type_ir::ExistentialPredicate::Trait(trait_ref) => {
|
||||
let trait_ref = TraitRef::new(
|
||||
|
Loading…
x
Reference in New Issue
Block a user