Skip to content

Commit 70a55c2

Browse files
committed
---
yaml --- r: 272094 b: refs/heads/master c: 07dac97 h: refs/heads/master
1 parent 766858d commit 70a55c2

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 35f5e18f75d07873be768c2afe65d13d3a25f9d2
2+
refs/heads/master: 07dac9732d65dcb1f5aefc8be46ba366fb657d08
33
refs/heads/snap-stage3: 235d77457d80b549dad3ac36d94f235208a1eafb
44
refs/heads/try: 49312a405e14a449b98fe0056b12a40ac128be4a
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

trunk/src/librustc_resolve/lib.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1902,7 +1902,8 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
19021902
}).map_err(|error_reported| {
19031903
self.record_def(eq_pred.id, err_path_resolution());
19041904
if error_reported { return }
1905-
resolve_error(self, eq_pred.span, ResolutionError::UndeclaredAssociatedType);
1905+
let error_variant = ResolutionError::UndeclaredAssociatedType;
1906+
resolve_error(self, eq_pred.span, error_variant);
19061907
}).unwrap_or(());
19071908
}
19081909
}
@@ -3042,7 +3043,8 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
30423043
self.record_def(expr.id, err_path_resolution());
30433044

30443045
if let Ok(Def::Struct(..)) = type_res.map(|r| r.base_def) {
3045-
let error_variant = ResolutionError::StructVariantUsedAsFunction(&path_name);
3046+
let error_variant =
3047+
ResolutionError::StructVariantUsedAsFunction(&path_name);
30463048
let mut err = resolve_struct_error(self, expr.span, error_variant);
30473049

30483050
let msg = format!("did you mean to write: `{} {{ /* fields */ }}`?",

0 commit comments

Comments
 (0)