Skip to content

Commit

Permalink
Rustfmt on cg_ssa/traits
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 committed Nov 29, 2018
1 parent 15a5009 commit 66c3195
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/librustc_codegen_ssa/traits/backend.rs
Expand Up @@ -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;
Expand Down
4 changes: 3 additions & 1 deletion src/librustc_codegen_ssa/traits/intrinsic.rs
Expand Up @@ -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> {
Expand Down
3 changes: 2 additions & 1 deletion src/librustc_codegen_ssa/traits/mod.rs
Expand Up @@ -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>
Expand Down

0 comments on commit 66c3195

Please sign in to comment.