Generalized base::coerce_unsized_into

This commit is contained in:
Denis Merigoux
2018-09-14 17:48:57 +02:00
committed by Eduard-Mihai Burtescu
parent 78dd95f4c7
commit cbe31a4229
15 changed files with 184 additions and 145 deletions

View File

@@ -10,12 +10,13 @@
use rustc::ty::layout::{HasTyCtxt, LayoutOf, TyLayout};
use rustc::ty::Ty;
use std::fmt::Debug;
use super::CodegenObject;
pub trait BackendTypes {
type Value: Debug + PartialEq + Copy;
type Value: CodegenObject;
type BasicBlock;
type Type: Debug + PartialEq + Copy;
type Type: CodegenObject;
type Context;
}