Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2a8b17d

Browse files
committedDec 28, 2022
Fix formatting
1 parent dda3eba commit 2a8b17d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎compiler/rustc_infer/src/infer/error_reporting/nice_region_error/placeholder_error.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,8 +405,7 @@ impl<'tcx> NiceRegionError<'_, 'tcx> {
405405
let mut self_ty = expected_trait_ref.map(|tr| tr.self_ty());
406406
self_ty.highlight.maybe_highlighting_region(vid, actual_has_vid);
407407

408-
if self_ty.value.is_closure()
409-
&& self.tcx().is_fn_trait(expected_trait_ref.value.def_id)
408+
if self_ty.value.is_closure() && self.tcx().is_fn_trait(expected_trait_ref.value.def_id)
410409
{
411410
let closure_sig = self_ty.map(|closure| {
412411
if let ty::Closure(_, substs) = closure.kind() {

0 commit comments

Comments
 (0)
Please sign in to comment.