diff options
| author | Deadbeef <ent3rm4n@gmail.com> | 2023-07-25 05:58:53 +0000 | 
|---|---|---|
| committer | Deadbeef <ent3rm4n@gmail.com> | 2023-08-06 13:34:53 +0000 | 
| commit | 92f4c59e4847005752a358ccacb5ae264700fbc4 (patch) | |
| tree | 970aac1a96c706880388f8f10ba72f5421ccec74 /compiler/rustc_hir_analysis/src/structured_errors | |
| parent | 4f7bb9890c0402cd145556ac1929d13d7524959e (diff) | |
| download | rust-92f4c59e4847005752a358ccacb5ae264700fbc4.tar.gz rust-92f4c59e4847005752a358ccacb5ae264700fbc4.zip | |
lower impl const to bind to host effect param
Diffstat (limited to 'compiler/rustc_hir_analysis/src/structured_errors')
| -rw-r--r-- | compiler/rustc_hir_analysis/src/structured_errors/wrong_number_of_generic_args.rs | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/compiler/rustc_hir_analysis/src/structured_errors/wrong_number_of_generic_args.rs b/compiler/rustc_hir_analysis/src/structured_errors/wrong_number_of_generic_args.rs index 6be8d72aed2..61b182b1be7 100644 --- a/compiler/rustc_hir_analysis/src/structured_errors/wrong_number_of_generic_args.rs +++ b/compiler/rustc_hir_analysis/src/structured_errors/wrong_number_of_generic_args.rs @@ -578,6 +578,9 @@ impl<'a, 'tcx> WrongNumberOfGenericArgs<'a, 'tcx> { MissingTypesOrConsts { .. } => { self.suggest_adding_type_and_const_args(err); } + ExcessTypesOrConsts { .. } => { + // this can happen with `~const T` where T isn't a const_trait. + } _ => unreachable!(), } } | 
