mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
Clean up
This commit is contained in:
parent
de074fe636
commit
6c366ade00
4 changed files with 4 additions and 9 deletions
|
@ -881,8 +881,6 @@ impl<'a> TyLoweringContext<'a> {
|
|||
cov_mark::hit!(lower_rpit);
|
||||
let self_ty =
|
||||
TyKind::BoundVar(BoundVar::new(DebruijnIndex::INNERMOST, 0)).intern(&Interner);
|
||||
// XXX(iDawer): Can shifting mess with unsized_types? For now I better reinsure.
|
||||
let outer_unsized_types = self.unsized_types.replace(Default::default());
|
||||
let predicates = self.with_shifted_in(DebruijnIndex::ONE, |ctx| {
|
||||
let mut predicates: Vec<_> = bounds
|
||||
.iter()
|
||||
|
@ -907,7 +905,6 @@ impl<'a> TyLoweringContext<'a> {
|
|||
}
|
||||
predicates
|
||||
});
|
||||
self.unsized_types.replace(outer_unsized_types);
|
||||
|
||||
ReturnTypeImplTrait { bounds: crate::make_only_type_binders(1, predicates) }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue