Skip to content

Commit a5b3dfe

Browse files
committed
Run x.py fmt
1 parent 070bf94 commit a5b3dfe

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

compiler/rustc_middle/src/mir/pretty.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,9 @@ pub struct RenderAllocation<'a, 'tcx, Tag, Extra> {
775775
alloc: &'a Allocation<Tag, Extra>,
776776
}
777777

778-
impl<'a, 'tcx, Tag: Provenance, Extra> std::fmt::Display for RenderAllocation<'a, 'tcx, Tag, Extra> {
778+
impl<'a, 'tcx, Tag: Provenance, Extra> std::fmt::Display
779+
for RenderAllocation<'a, 'tcx, Tag, Extra>
780+
{
779781
fn fmt(&self, w: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
780782
let RenderAllocation { tcx, alloc } = *self;
781783
write!(w, "size: {}, align: {})", alloc.size().bytes(), alloc.align.bytes())?;

compiler/rustc_middle/src/ty/codec.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,11 @@ pub trait RefDecodable<'tcx, D: TyDecoder<'tcx>> {
7676
}
7777

7878
/// Encode the given value or a previously cached shorthand.
79-
pub fn encode_with_shorthand<'tcx, E, T, M>(encoder: &mut E, value: &T, cache: M) -> Result<(), E::Error>
79+
pub fn encode_with_shorthand<'tcx, E, T, M>(
80+
encoder: &mut E,
81+
value: &T,
82+
cache: M,
83+
) -> Result<(), E::Error>
8084
where
8185
E: TyEncoder<'tcx>,
8286
M: for<'b> Fn(&'b mut E) -> &'b mut FxHashMap<T, usize>,

0 commit comments

Comments
 (0)