diff options
| author | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2016-04-07 04:13:34 +0000 |
|---|---|---|
| committer | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2016-04-07 05:48:46 +0000 |
| commit | 07dac9732d65dcb1f5aefc8be46ba366fb657d08 (patch) | |
| tree | e1e4c99df6d7c3063991222206b4e8fcd99489e7 /src | |
| parent | 35f5e18f75d07873be768c2afe65d13d3a25f9d2 (diff) | |
| download | rust-07dac9732d65dcb1f5aefc8be46ba366fb657d08.tar.gz rust-07dac9732d65dcb1f5aefc8be46ba366fb657d08.zip | |
Fix tidy errors
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc_resolve/lib.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/librustc_resolve/lib.rs b/src/librustc_resolve/lib.rs index e8adb1d94ba..3f18aa35654 100644 --- a/src/librustc_resolve/lib.rs +++ b/src/librustc_resolve/lib.rs @@ -1902,7 +1902,8 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> { }).map_err(|error_reported| { self.record_def(eq_pred.id, err_path_resolution()); if error_reported { return } - resolve_error(self, eq_pred.span, ResolutionError::UndeclaredAssociatedType); + let error_variant = ResolutionError::UndeclaredAssociatedType; + resolve_error(self, eq_pred.span, error_variant); }).unwrap_or(()); } } @@ -3042,7 +3043,8 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> { self.record_def(expr.id, err_path_resolution()); if let Ok(Def::Struct(..)) = type_res.map(|r| r.base_def) { - let error_variant = ResolutionError::StructVariantUsedAsFunction(&path_name); + let error_variant = + ResolutionError::StructVariantUsedAsFunction(&path_name); let mut err = resolve_struct_error(self, expr.span, error_variant); let msg = format!("did you mean to write: `{} {{ /* fields */ }}`?", |
