Skip to content

Commit ae370de

Browse files
format code
1 parent 075116e commit ae370de

File tree

4 files changed

+9
-13
lines changed

4 files changed

+9
-13
lines changed

src/builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ use rustc_middle::ty::layout::{
2525
FnAbiError, FnAbiOfHelpers, FnAbiRequest, HasParamEnv, HasTyCtxt, LayoutError, LayoutOfHelpers,
2626
TyAndLayout,
2727
};
28-
use rustc_middle::ty::{ParamEnv, Ty, TyCtxt, Instance};
28+
use rustc_middle::ty::{Instance, ParamEnv, Ty, TyCtxt};
2929
use rustc_span::def_id::DefId;
3030
use rustc_span::Span;
3131
use rustc_target::abi::{

src/context.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ pub struct CodegenCx<'gcc, 'tcx> {
110110
local_gen_sym_counter: Cell<usize>,
111111

112112
eh_personality: Cell<Option<RValue<'gcc>>>,
113-
#[cfg(feature="master")]
113+
#[cfg(feature = "master")]
114114
pub rust_try_fn: Cell<Option<(Type<'gcc>, Function<'gcc>)>>,
115115

116116
pub pointee_infos: RefCell<FxHashMap<(Ty<'tcx>, Size), Option<PointeeInfo>>>,
@@ -122,7 +122,7 @@ pub struct CodegenCx<'gcc, 'tcx> {
122122
/// FIXME(antoyo): fix the rustc API to avoid having this hack.
123123
pub structs_as_pointer: RefCell<FxHashSet<RValue<'gcc>>>,
124124

125-
#[cfg(feature="master")]
125+
#[cfg(feature = "master")]
126126
pub cleanup_blocks: RefCell<FxHashSet<Block<'gcc>>>,
127127
}
128128

@@ -327,11 +327,11 @@ impl<'gcc, 'tcx> CodegenCx<'gcc, 'tcx> {
327327
struct_types: Default::default(),
328328
local_gen_sym_counter: Cell::new(0),
329329
eh_personality: Cell::new(None),
330-
#[cfg(feature="master")]
330+
#[cfg(feature = "master")]
331331
rust_try_fn: Cell::new(None),
332332
pointee_infos: Default::default(),
333333
structs_as_pointer: Default::default(),
334-
#[cfg(feature="master")]
334+
#[cfg(feature = "master")]
335335
cleanup_blocks: Default::default(),
336336
};
337337
// TODO(antoyo): instead of doing this, add SsizeT to libgccjit.

src/intrinsic/simd.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,9 @@ pub fn generic_simd_intrinsic<'a, 'gcc, 'tcx>(
812812
let (_, element_ty0) = arg_tys[0].simd_size_and_type(bx.tcx());
813813
let (_, element_ty1) = arg_tys[1].simd_size_and_type(bx.tcx());
814814
let (pointer_count, underlying_ty) = match *element_ty1.kind() {
815-
ty::RawPtr(p_ty, _) if p_ty == in_elem => (ptr_count(element_ty1), non_ptr(element_ty1)),
815+
ty::RawPtr(p_ty, _) if p_ty == in_elem => {
816+
(ptr_count(element_ty1), non_ptr(element_ty1))
817+
}
816818
_ => {
817819
require!(
818820
false,

src/lib.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,7 @@
1616
#![allow(internal_features)]
1717
#![doc(rust_logo)]
1818
#![feature(rustdoc_internals)]
19-
#![feature(
20-
rustc_private,
21-
decl_macro,
22-
never_type,
23-
trusted_len,
24-
hash_raw_entry
25-
)]
19+
#![feature(rustc_private, decl_macro, never_type, trusted_len, hash_raw_entry)]
2620
#![cfg_attr(bootstrap, feature(associated_type_bounds))]
2721
#![allow(broken_intra_doc_links)]
2822
#![recursion_limit = "256"]

0 commit comments

Comments
 (0)