pacify the mercilous tidy
(long lines)
This commit is contained in:
parent
2e4e983356
commit
087d12972e
2 changed files with 13 additions and 3 deletions
|
@ -214,7 +214,10 @@ macro_rules! make_mir_visitor {
|
|||
self.super_ty(ty);
|
||||
}
|
||||
|
||||
fn visit_user_type_annotation(&mut self, ty: & $($mutability)* UserTypeAnnotation<'tcx>) {
|
||||
fn visit_user_type_annotation(
|
||||
&mut self,
|
||||
ty: & $($mutability)* UserTypeAnnotation<'tcx>,
|
||||
) {
|
||||
self.super_user_type_annotation(ty);
|
||||
}
|
||||
|
||||
|
@ -783,7 +786,10 @@ macro_rules! make_mir_visitor {
|
|||
self.visit_source_scope(scope);
|
||||
}
|
||||
|
||||
fn super_user_type_annotation(&mut self, _ty: & $($mutability)* UserTypeAnnotation<'tcx>) {
|
||||
fn super_user_type_annotation(
|
||||
&mut self,
|
||||
_ty: & $($mutability)* UserTypeAnnotation<'tcx>,
|
||||
) {
|
||||
}
|
||||
|
||||
fn super_ty(&mut self, _ty: & $($mutability)* Ty<'tcx>) {
|
||||
|
|
|
@ -722,7 +722,11 @@ fn make_mirror_unadjusted<'a, 'gcx, 'tcx>(cx: &mut Cx<'a, 'gcx, 'tcx>,
|
|||
let user_ty = UserTypeAnnotation::Ty(
|
||||
*user_provided_tys
|
||||
.get(ty.hir_id)
|
||||
.expect(&format!("{:?} not found in user_provided_tys, source: {:?}", ty, source))
|
||||
.expect(&format!(
|
||||
"{:?} not found in user_provided_tys, source: {:?}",
|
||||
ty,
|
||||
source,
|
||||
))
|
||||
);
|
||||
if source.is_place_expr() {
|
||||
ExprKind::PlaceTypeAscription {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue