Skip to content

Commit 5c59bba

Browse files
gaurikholkarnikomatsakis
authored andcommitted
minor fixes
1 parent 4bbb58d commit 5c59bba

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/librustc/infer/error_reporting/named_anon_conflict.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,7 @@ impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> {
7878
return false;
7979
}
8080

81-
if let Some(anon_ty) = self.find_anon_type(anon, &br) {
82-
let (_, fndecl) = anon_ty;
81+
if let Some((_, fndecl)) = self.find_anon_type(anon, &br) {
8382
if self.is_return_type_anon(scope_def_id, br, fndecl).is_some() ||
8483
self.is_self_anon(is_first, scope_def_id) {
8584
return false;

0 commit comments

Comments
 (0)