Skip to content

Commit f6d60f3

Browse files
committed
Stop using diagnostics to avoid merge conflicts.
1 parent 840ce00 commit f6d60f3

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

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
)

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
};

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
}

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() { }

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)