From 92f4c59e4847005752a358ccacb5ae264700fbc4 Mon Sep 17 00:00:00 2001 From: Deadbeef Date: Tue, 25 Jul 2023 05:58:53 +0000 Subject: lower impl const to bind to host effect param --- .../src/structured_errors/wrong_number_of_generic_args.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'compiler/rustc_hir_analysis/src/structured_errors') 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!(), } } -- cgit 1.4.1-3-g733a5