Skip to content

Commit f520295

Browse files
committed
Remove ordering hint
1 parent b97951b commit f520295

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

compiler/rustc_typeck/src/astconv/generics.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
7070
add_braces_suggestion(arg, &mut err);
7171
err.set_primary_message(
7272
"unresolved item provided when a constant was expected",
73-
);
73+
)
74+
.emit();
75+
return;
7476
}
7577
Res::Def(DefKind::TyParam, src_def_id) => {
7678
if let Some(param_local_id) = param.def_id.as_local() {

src/test/ui/const-generics/diagnostics.stderr

-2
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ error[E0747]: unresolved item provided when a constant was expected
4141
LL | impl<const N: u8> Foo for C<N, T> {}
4242
| ^
4343
|
44-
= note: type arguments must be provided before constant arguments
45-
= help: reorder the arguments: consts: `<C, N>`
4644
help: if this generic argument was intended as a const parameter, surround it with braces
4745
|
4846
LL | impl<const N: u8> Foo for C<N, { T }> {}

0 commit comments

Comments
 (0)