hir: Remove the generic type parameter from MaybeOwned
It's only ever used with a reference to `OwnerInfo` as an argument.
This commit is contained in:
parent
bf3c6c5bed
commit
c5eca333fc
5 changed files with 17 additions and 32 deletions
|
@ -185,8 +185,8 @@ impl EraseType for Option<ty::EarlyBinder<Ty<'_>>> {
|
|||
type Result = [u8; size_of::<Option<ty::EarlyBinder<Ty<'static>>>>()];
|
||||
}
|
||||
|
||||
impl<T> EraseType for rustc_hir::MaybeOwner<&'_ T> {
|
||||
type Result = [u8; size_of::<rustc_hir::MaybeOwner<&'static ()>>()];
|
||||
impl EraseType for rustc_hir::MaybeOwner<'_> {
|
||||
type Result = [u8; size_of::<rustc_hir::MaybeOwner<'static>>()];
|
||||
}
|
||||
|
||||
impl<T: EraseType> EraseType for ty::EarlyBinder<T> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue