Skip to content

Commit 300c85e

Browse files
committed
Add assertion
1 parent 05ee30b commit 300c85e

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_symbol_mangling/src

1 file changed

+1
-1
lines changed

compiler/rustc_symbol_mangling/src/v0.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ impl<'tcx> Printer<'tcx> for V0SymbolMangler<'tcx> {
338338
)
339339
} else {
340340
assert!(
341-
!args.has_non_region_param(),
341+
!args.has_non_region_param() && !args.has_free_regions(),
342342
"should not be mangling partially substituted \
343343
polymorphic instance: {impl_def_id:?} {args:?}"
344344
);

0 commit comments

Comments
 (0)