Skip to content

Commit 47830ed

Browse files
committed
Adjust supertrait of ArgAbiMethods.
It only needs `Self::Value` and `Self::Type`, so it can be a subtrait of `BackendTypes`. That is a smaller and simpler trait than `HasCodegen` (which includes `BackendTypes` and a lot more).
1 parent 6daf40e commit 47830ed

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_codegen_ssa/src/traits

1 file changed

+2
-2
lines changed

compiler/rustc_codegen_ssa/src/traits/type_.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use rustc_target::abi::call::{ArgAbi, CastTarget, FnAbi, Reg};
55
use rustc_target::abi::{AddressSpace, Float, Integer};
66

77
use super::misc::MiscMethods;
8-
use super::{Backend, HasCodegen};
8+
use super::{Backend, BackendTypes};
99
use crate::common::TypeKind;
1010
use crate::mir::place::PlaceRef;
1111

@@ -156,7 +156,7 @@ pub trait TypeMembershipMethods<'tcx>: Backend<'tcx> {
156156
fn set_kcfi_type_metadata(&self, _function: Self::Function, _typeid: u32) {}
157157
}
158158

159-
pub trait ArgAbiMethods<'tcx>: HasCodegen<'tcx> {
159+
pub trait ArgAbiMethods<'tcx>: BackendTypes {
160160
fn store_fn_arg(
161161
&mut self,
162162
arg_abi: &ArgAbi<'tcx, Ty<'tcx>>,

0 commit comments

Comments
 (0)