mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-05 03:38:29 +00:00
Fix formatting
This commit is contained in:
parent
dda3ebad0a
commit
2a8b17dbc5
@ -405,8 +405,7 @@ impl<'tcx> NiceRegionError<'_, 'tcx> {
|
|||||||
let mut self_ty = expected_trait_ref.map(|tr| tr.self_ty());
|
let mut self_ty = expected_trait_ref.map(|tr| tr.self_ty());
|
||||||
self_ty.highlight.maybe_highlighting_region(vid, actual_has_vid);
|
self_ty.highlight.maybe_highlighting_region(vid, actual_has_vid);
|
||||||
|
|
||||||
if self_ty.value.is_closure()
|
if self_ty.value.is_closure() && self.tcx().is_fn_trait(expected_trait_ref.value.def_id)
|
||||||
&& self.tcx().is_fn_trait(expected_trait_ref.value.def_id)
|
|
||||||
{
|
{
|
||||||
let closure_sig = self_ty.map(|closure| {
|
let closure_sig = self_ty.map(|closure| {
|
||||||
if let ty::Closure(_, substs) = closure.kind() {
|
if let ty::Closure(_, substs) = closure.kind() {
|
||||||
|
Loading…
Reference in New Issue
Block a user