We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
own_args_no_defaults
1 parent e03c18b commit 2f457d9Copy full SHA for 2f457d9
compiler/rustc_middle/src/ty/generics.rs
@@ -342,6 +342,8 @@ impl<'tcx> Generics {
342
param.default_value(tcx).is_some_and(|default| {
343
default.instantiate(tcx, args) == args[param.index as usize]
344
})
345
+ // filter out trailing effect params
346
+ || matches!(param.kind, GenericParamDefKind::Const { is_host_effect: true, .. })
347
348
.count();
349
own_params.end -= num_default_params;
0 commit comments