We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83c8b11 commit 600c18aCopy full SHA for 600c18a
src/refine/template.rs
@@ -413,12 +413,16 @@ where
413
.build_refined(param_ty.ty)
414
}
415
} else {
416
- rty::RefinedType::unrefined(
417
- self.inner
418
- .for_template(self.registry)
419
- .with_scope(&builder)
420
- .build(param_ty.ty),
421
- )
+ if self.param_refinement.is_some() {
+ rty::RefinedType::unrefined(self.inner.build(param_ty.ty).vacuous())
+ } else {
+ rty::RefinedType::unrefined(
+ self.inner
+ .for_template(self.registry)
422
+ .with_scope(&builder)
423
+ .build(param_ty.ty),
424
+ )
425
+ }
426
427
});
428
let param_rty = if param_ty.mutbl.is_mut() {
0 commit comments