Skip to content

Commit 8b69357

Browse files
committed
Rustfmt
1 parent 20600f1 commit 8b69357

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/intrinsics/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ mod simd;
88
pub(crate) use cpuid::codegen_cpuid_call;
99
pub(crate) use llvm::codegen_llvm_intrinsic_call;
1010

11-
use rustc_span::symbol::{sym, kw};
1211
use rustc_middle::ty::print::with_no_trimmed_paths;
12+
use rustc_span::symbol::{kw, sym};
1313

1414
use crate::prelude::*;
1515
use cranelift_codegen::ir::AtomicRmwOp;

src/lib.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,21 +279,23 @@ fn build_isa(sess: &Session, backend_config: &BackendConfig) -> Box<dyn isa::Tar
279279
builder
280280
}
281281
Some(value) => {
282-
let mut builder = cranelift_codegen::isa::lookup_variant(target_triple, variant).unwrap();
282+
let mut builder =
283+
cranelift_codegen::isa::lookup_variant(target_triple, variant).unwrap();
283284
if let Err(_) = builder.enable(value) {
284285
sess.fatal("The specified target cpu isn't currently supported by Cranelift.");
285286
}
286287
builder
287288
}
288289
None => {
289-
let mut builder = cranelift_codegen::isa::lookup_variant(target_triple, variant).unwrap();
290+
let mut builder =
291+
cranelift_codegen::isa::lookup_variant(target_triple, variant).unwrap();
290292
// Don't use "haswell" as the default, as it implies `has_lzcnt`.
291293
// macOS CI is still at Ivy Bridge EP, so `lzcnt` is interpreted as `bsr`.
292294
builder.enable("nehalem").unwrap();
293295
builder
294296
}
295297
};
296-
298+
297299
isa_builder.finish(flags)
298300
}
299301

0 commit comments

Comments
 (0)