Skip to content

Commit 99dedb0

Browse files
committed
Fix TypingEnv formatting to match rustfmt requirements
1 parent dd1537c commit 99dedb0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_const_eval/src/util/alignment.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ fn get_element_alignment<'tcx>(tcx: TyCtxt<'tcx>, ty: ty::Ty<'tcx>) -> Option<Al
7676
ty::Array(element_ty, _) => {
7777
// For arrays, the alignment is the same as the element type
7878
let param_env = ty::ParamEnv::empty();
79-
let typing_env =
79+
let typing_env =
8080
ty::TypingEnv { typing_mode: ty::TypingMode::non_body_analysis(), param_env };
8181
match tcx.layout_of(typing_env.as_query_input(*element_ty)) {
8282
Ok(layout) => Some(layout.align.abi),
@@ -86,7 +86,7 @@ fn get_element_alignment<'tcx>(tcx: TyCtxt<'tcx>, ty: ty::Ty<'tcx>) -> Option<Al
8686
ty::Slice(element_ty) => {
8787
// For slices, the alignment is the same as the element type
8888
let param_env = ty::ParamEnv::empty();
89-
let typing_env =
89+
let typing_env =
9090
ty::TypingEnv { typing_mode: ty::TypingMode::non_body_analysis(), param_env };
9191
match tcx.layout_of(typing_env.as_query_input(*element_ty)) {
9292
Ok(layout) => Some(layout.align.abi),

0 commit comments

Comments
 (0)