Skip to content

Commit

Permalink
Remove ordering hint
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianKnodt committed Feb 16, 2021
1 parent b97951b commit f520295
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 3 additions & 1 deletion compiler/rustc_typeck/src/astconv/generics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
add_braces_suggestion(arg, &mut err);
err.set_primary_message(
"unresolved item provided when a constant was expected",
);
)
.emit();
return;
}
Res::Def(DefKind::TyParam, src_def_id) => {
if let Some(param_local_id) = param.def_id.as_local() {
Expand Down
2 changes: 0 additions & 2 deletions src/test/ui/const-generics/diagnostics.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ error[E0747]: unresolved item provided when a constant was expected
LL | impl<const N: u8> Foo for C<N, T> {}
| ^
|
= note: type arguments must be provided before constant arguments
= help: reorder the arguments: consts: `<C, N>`
help: if this generic argument was intended as a const parameter, surround it with braces
|
LL | impl<const N: u8> Foo for C<N, { T }> {}
Expand Down

0 comments on commit f520295

Please sign in to comment.