diff options
| author | gaurikholkar <f2013002@goa.bits-pilani.ac.in> | 2017-09-24 19:46:29 +0530 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2017-09-26 11:55:53 -0400 |
| commit | 5c59bbadb3bebdbeb85556e4974f6b2e640d22de (patch) | |
| tree | b91d6381b3fd6480c03a02f58a53b4709926ad17 /src | |
| parent | 4bbb58d429a56652acfd186295d05de7d84ee74e (diff) | |
| download | rust-5c59bbadb3bebdbeb85556e4974f6b2e640d22de.tar.gz rust-5c59bbadb3bebdbeb85556e4974f6b2e640d22de.zip | |
minor fixes
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc/infer/error_reporting/named_anon_conflict.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/librustc/infer/error_reporting/named_anon_conflict.rs b/src/librustc/infer/error_reporting/named_anon_conflict.rs index 7027c868e6e..80fb4ce8e03 100644 --- a/src/librustc/infer/error_reporting/named_anon_conflict.rs +++ b/src/librustc/infer/error_reporting/named_anon_conflict.rs @@ -78,8 +78,7 @@ impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> { return false; } - if let Some(anon_ty) = self.find_anon_type(anon, &br) { - let (_, fndecl) = anon_ty; + if let Some((_, fndecl)) = self.find_anon_type(anon, &br) { if self.is_return_type_anon(scope_def_id, br, fndecl).is_some() || self.is_self_anon(is_first, scope_def_id) { return false; |
