Rustfmt on cg_ssa/traits

This commit is contained in:
bjorn3 2018-11-24 16:15:26 +01:00
parent 15a5009af0
commit 66c3195c4c
3 changed files with 7 additions and 3 deletions

View File

@ -38,7 +38,8 @@ pub trait Backend<'tcx>:
impl<'tcx, T> Backend<'tcx> for T where
Self: BackendTypes + HasTyCtxt<'tcx> + LayoutOf<Ty = Ty<'tcx>, TyLayout = TyLayout<'tcx>>
{}
{
}
pub trait ExtraBackendMethods: CodegenBackend + WriteBackendMethods + Sized + Send {
fn new_metadata(&self, sess: &Session, mod_name: &str) -> Self::Module;

View File

@ -16,7 +16,9 @@ use syntax_pos::Span;
#[derive(Copy, Clone)]
pub enum OverflowOp {
Add, Sub, Mul
Add,
Sub,
Mul,
}
pub trait IntrinsicCallMethods<'tcx>: HasCodegen<'tcx> {

View File

@ -82,7 +82,8 @@ impl<'tcx, T> CodegenMethods<'tcx> for T where
+ DeclareMethods<'tcx>
+ AsmMethods<'tcx>
+ PreDefineMethods<'tcx>
{}
{
}
pub trait HasCodegen<'tcx>: Backend<'tcx> {
type CodegenCx: CodegenMethods<'tcx>