Skip to content

Commit 087d129

Browse files
committed
pacify the mercilous tidy
(long lines)
1 parent 2e4e983 commit 087d129

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

Diff for: src/librustc/mir/visit.rs

+8-2
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,10 @@ macro_rules! make_mir_visitor {
214214
self.super_ty(ty);
215215
}
216216

217-
fn visit_user_type_annotation(&mut self, ty: & $($mutability)* UserTypeAnnotation<'tcx>) {
217+
fn visit_user_type_annotation(
218+
&mut self,
219+
ty: & $($mutability)* UserTypeAnnotation<'tcx>,
220+
) {
218221
self.super_user_type_annotation(ty);
219222
}
220223

@@ -783,7 +786,10 @@ macro_rules! make_mir_visitor {
783786
self.visit_source_scope(scope);
784787
}
785788

786-
fn super_user_type_annotation(&mut self, _ty: & $($mutability)* UserTypeAnnotation<'tcx>) {
789+
fn super_user_type_annotation(
790+
&mut self,
791+
_ty: & $($mutability)* UserTypeAnnotation<'tcx>,
792+
) {
787793
}
788794

789795
fn super_ty(&mut self, _ty: & $($mutability)* Ty<'tcx>) {

Diff for: src/librustc_mir/hair/cx/expr.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,11 @@ fn make_mirror_unadjusted<'a, 'gcx, 'tcx>(cx: &mut Cx<'a, 'gcx, 'tcx>,
722722
let user_ty = UserTypeAnnotation::Ty(
723723
*user_provided_tys
724724
.get(ty.hir_id)
725-
.expect(&format!("{:?} not found in user_provided_tys, source: {:?}", ty, source))
725+
.expect(&format!(
726+
"{:?} not found in user_provided_tys, source: {:?}",
727+
ty,
728+
source,
729+
))
726730
);
727731
if source.is_place_expr() {
728732
ExprKind::PlaceTypeAscription {

0 commit comments

Comments
 (0)