Skip to content

Commit

Permalink
Fix tidy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jseyfried committed Apr 7, 2016
1 parent 35f5e18 commit 07dac97
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/librustc_resolve/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(());
}
}
Expand Down Expand Up @@ -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 */ }}`?",
Expand Down

0 comments on commit 07dac97

Please sign in to comment.