Skip to content

Commit 8cde544

Browse files
BoxyUwUlcnr
authored andcommitted
Add assertion
1 parent 332d8d6 commit 8cde544

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
@@ -342,7 +342,7 @@ impl<'tcx> Printer<'tcx> for V0SymbolMangler<'tcx> {
342342
)
343343
} else {
344344
assert!(
345-
!args.has_non_region_param(),
345+
!args.has_non_region_param() && !args.has_free_regions(),
346346
"should not be mangling partially substituted \
347347
polymorphic instance: {impl_def_id:?} {args:?}"
348348
);

0 commit comments

Comments
 (0)