Skip to content

Commit 65ad805

Browse files
committed
Fix whitespace in lift macros.
This has been bugging me for some time.
1 parent 3b8262c commit 65ad805

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

compiler/rustc_middle/src/ty/context.rs

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2243,21 +2243,23 @@ macro_rules! nop_list_lift {
22432243
};
22442244
}
22452245

2246-
nop_lift! {type_; Ty<'a> => Ty<'tcx>}
2247-
nop_lift! {region; Region<'a> => Region<'tcx>}
2248-
nop_lift! {const_; Const<'a> => Const<'tcx>}
2249-
nop_lift! {pat; Pattern<'a> => Pattern<'tcx>}
2250-
nop_lift! {const_allocation; ConstAllocation<'a> => ConstAllocation<'tcx>}
2251-
nop_lift! {predicate; Predicate<'a> => Predicate<'tcx>}
2252-
nop_lift! {predicate; Clause<'a> => Clause<'tcx>}
2253-
nop_lift! {layout; Layout<'a> => Layout<'tcx>}
2254-
2255-
nop_list_lift! {type_lists; Ty<'a> => Ty<'tcx>}
2256-
nop_list_lift! {poly_existential_predicates; PolyExistentialPredicate<'a> => PolyExistentialPredicate<'tcx>}
2257-
nop_list_lift! {bound_variable_kinds; ty::BoundVariableKind => ty::BoundVariableKind}
2246+
nop_lift! { type_; Ty<'a> => Ty<'tcx> }
2247+
nop_lift! { region; Region<'a> => Region<'tcx> }
2248+
nop_lift! { const_; Const<'a> => Const<'tcx> }
2249+
nop_lift! { pat; Pattern<'a> => Pattern<'tcx> }
2250+
nop_lift! { const_allocation; ConstAllocation<'a> => ConstAllocation<'tcx> }
2251+
nop_lift! { predicate; Predicate<'a> => Predicate<'tcx> }
2252+
nop_lift! { predicate; Clause<'a> => Clause<'tcx> }
2253+
nop_lift! { layout; Layout<'a> => Layout<'tcx> }
2254+
2255+
nop_list_lift! { type_lists; Ty<'a> => Ty<'tcx> }
2256+
nop_list_lift! {
2257+
poly_existential_predicates; PolyExistentialPredicate<'a> => PolyExistentialPredicate<'tcx>
2258+
}
2259+
nop_list_lift! { bound_variable_kinds; ty::BoundVariableKind => ty::BoundVariableKind }
22582260

22592261
// This is the impl for `&'a GenericArgs<'a>`.
2260-
nop_list_lift! {args; GenericArg<'a> => GenericArg<'tcx>}
2262+
nop_list_lift! { args; GenericArg<'a> => GenericArg<'tcx> }
22612263

22622264
macro_rules! nop_slice_lift {
22632265
($ty:ty => $lifted:ty) => {
@@ -2277,7 +2279,7 @@ macro_rules! nop_slice_lift {
22772279
};
22782280
}
22792281

2280-
nop_slice_lift! {ty::ValTree<'a> => ty::ValTree<'tcx>}
2282+
nop_slice_lift! { ty::ValTree<'a> => ty::ValTree<'tcx> }
22812283

22822284
macro_rules! sty_debug_print {
22832285
($fmt: expr, $ctxt: expr, $($variant: ident),*) => {{

0 commit comments

Comments
 (0)