diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2018-11-24 16:30:29 +0100 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2018-11-29 18:19:42 +0100 |
| commit | 187c4cf2572f2bf43a2ee8cee9e459d9ecbc429a (patch) | |
| tree | c08644d19691b5161cfae54a39f097789cfdd68f /src/librustc_codegen_ssa/traits/misc.rs | |
| parent | 66c3195c4cdce988a195d386496dffe55257cfc6 (diff) | |
| download | rust-187c4cf2572f2bf43a2ee8cee9e459d9ecbc429a.tar.gz rust-187c4cf2572f2bf43a2ee8cee9e459d9ecbc429a.zip | |
Use BackendTypes instead of Backend or HasCodegen in a few places
Diffstat (limited to 'src/librustc_codegen_ssa/traits/misc.rs')
| -rw-r--r-- | src/librustc_codegen_ssa/traits/misc.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_codegen_ssa/traits/misc.rs b/src/librustc_codegen_ssa/traits/misc.rs index ab4f2f724cd..d8871dd3a58 100644 --- a/src/librustc_codegen_ssa/traits/misc.rs +++ b/src/librustc_codegen_ssa/traits/misc.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -use super::Backend; +use super::BackendTypes; use libc::c_uint; use rustc::mir::mono::Stats; use rustc::session::Session; @@ -18,7 +18,7 @@ use rustc_mir::monomorphize::partitioning::CodegenUnit; use std::cell::RefCell; use std::sync::Arc; -pub trait MiscMethods<'tcx>: Backend<'tcx> { +pub trait MiscMethods<'tcx>: BackendTypes { fn vtables( &self, ) -> &RefCell<FxHashMap<(Ty<'tcx>, ty::PolyExistentialTraitRef<'tcx>), Self::Value>>; |
