Skip to content

Commit 436eff5

Browse files
committed
Make ConstMethods and StaticMethods require BackendTypes instead of Backend
1 parent b3b6e4d commit 436eff5

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/librustc_codegen_llvm/consts.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ pub fn ptrcast(val: &'ll Value, ty: &'ll Type) -> &'ll Value {
171171
}
172172
}
173173

174-
impl StaticMethods<'tcx> for CodegenCx<'ll, 'tcx> {
174+
impl StaticMethods for CodegenCx<'ll, 'tcx> {
175175

176176
fn static_ptrcast(&self, val: &'ll Value, ty: &'ll Type) -> &'ll Value {
177177
ptrcast(val, ty)

src/librustc_codegen_ssa/traits/consts.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
use super::Backend;
11+
use super::BackendTypes;
1212
use mir::place::PlaceRef;
1313
use rustc::mir::interpret::Allocation;
1414
use rustc::mir::interpret::Scalar;
1515
use rustc::ty::layout;
1616
use syntax::symbol::LocalInternedString;
1717

18-
pub trait ConstMethods<'tcx>: Backend<'tcx> {
18+
pub trait ConstMethods<'tcx>: BackendTypes {
1919
// Constant constructors
2020

2121
fn const_null(&self, t: Self::Type) -> Self::Value;

src/librustc_codegen_ssa/traits/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ pub trait CodegenMethods<'tcx>:
6262
+ TypeMethods<'tcx>
6363
+ MiscMethods<'tcx>
6464
+ ConstMethods<'tcx>
65-
+ StaticMethods<'tcx>
65+
+ StaticMethods
6666
+ DebugInfoMethods<'tcx>
6767
+ AbiMethods<'tcx>
6868
+ IntrinsicDeclarationMethods<'tcx>
@@ -77,7 +77,7 @@ impl<'tcx, T> CodegenMethods<'tcx> for T where
7777
+ TypeMethods<'tcx>
7878
+ MiscMethods<'tcx>
7979
+ ConstMethods<'tcx>
80-
+ StaticMethods<'tcx>
80+
+ StaticMethods
8181
+ DebugInfoMethods<'tcx>
8282
+ AbiMethods<'tcx>
8383
+ IntrinsicDeclarationMethods<'tcx>

src/librustc_codegen_ssa/traits/statics.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
use super::Backend;
11+
use super::BackendTypes;
1212
use rustc::hir::def_id::DefId;
1313
use rustc::ty::layout::Align;
1414

15-
pub trait StaticMethods<'tcx>: Backend<'tcx> {
15+
pub trait StaticMethods: BackendTypes {
1616
fn static_ptrcast(&self, val: Self::Value, ty: Self::Type) -> Self::Value;
1717
fn static_bitcast(&self, val: Self::Value, ty: Self::Type) -> Self::Value;
1818
fn static_addr_of_mut(&self, cv: Self::Value, align: Align, kind: Option<&str>) -> Self::Value;

0 commit comments

Comments
 (0)