Skip to content

Commit ef34aa0

Browse files
committed
---
yaml --- r: 164835 b: refs/heads/try c: f6d60f3 h: refs/heads/master i: 164833: 3041520 164831: 6be8718 v: v3
1 parent f3c5c76 commit ef34aa0

File tree

6 files changed

+10
-9
lines changed

6 files changed

+10
-9
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: f8f2c7a9537c7f333b242f616aefb75a83860927
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 8443b09e361b96d1f9b7f45a65ed0d31c0e86e70
5-
refs/heads/try: 840ce00a9b056e5ed16eb735d0758dbaa7c2c8f4
5+
refs/heads/try: f6d60f32080314f1167dd3efb13d772528f500f0
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
88
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try/src/librustc/diagnostics.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,5 @@ register_diagnostics!(
6767
E0173,
6868
E0174,
6969
E0177,
70-
E0178,
71-
E0179 // parenthesized params may only be used with a trait
70+
E0178
7271
)

branches/try/src/librustc_typeck/astconv.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,9 @@ fn ast_path_substs_for_ty<'tcx,AC,RS>(
235235
convert_angle_bracketed_parameters(this, rscope, data)
236236
}
237237
ast::ParenthesizedParameters(ref data) => {
238-
span_err!(tcx.sess, path.span, E0173,
239-
"parenthesized parameters may only be used with a trait");
238+
tcx.sess.span_err(
239+
path.span,
240+
"parenthesized parameters may only be used with a trait");
240241
(Vec::new(), convert_parenthesized_parameters(this, data), Vec::new())
241242
}
242243
};

branches/try/src/librustc_typeck/check/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5143,8 +5143,9 @@ pub fn instantiate_path<'a, 'tcx>(fcx: &FnCtxt<'a, 'tcx>,
51435143
}
51445144

51455145
ast::ParenthesizedParameters(ref data) => {
5146-
span_err!(fcx.tcx().sess, span, E0173,
5147-
"parenthesized parameters may only be used with a trait");
5146+
fcx.tcx().sess.span_err(
5147+
span,
5148+
"parenthesized parameters may only be used with a trait");
51485149
push_explicit_parenthesized_parameters_from_segment_to_substs(
51495150
fcx, space, span, type_defs, data, substs);
51505151
}

branches/try/src/test/compile-fail/unboxed-closure-sugar-used-on-struct-1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ struct Bar<A,R> {
1717

1818
fn bar() {
1919
let x: Box<Bar()> = panic!();
20-
//~^ ERROR E0169
20+
//~^ ERROR parenthesized parameters may only be used with a trait
2121
}
2222

2323
fn main() { }

branches/try/src/test/compile-fail/unboxed-closure-sugar-used-on-struct.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ struct Bar<A,R> {
1515
}
1616

1717
fn foo(b: Box<Bar()>) {
18-
//~^ ERROR E0169
18+
//~^ ERROR parenthesized parameters may only be used with a trait
1919
}
2020

2121
fn main() { }

0 commit comments

Comments
 (0)