diff options
| author | Boxy <rust@boxyuwu.dev> | 2025-08-24 17:50:13 +0100 |
|---|---|---|
| committer | lcnr <rust@lcnr.de> | 2025-09-09 14:49:16 +0200 |
| commit | 8cde544b737892e12a757b1c0399781f44080730 (patch) | |
| tree | b8a42d88c2bc492a98fafc57ed141e772cb94cce /compiler | |
| parent | 332d8d62356a1be77bfe6412ab5ed3fa33ae9af6 (diff) | |
| download | rust-8cde544b737892e12a757b1c0399781f44080730.tar.gz rust-8cde544b737892e12a757b1c0399781f44080730.zip | |
Add assertion
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_symbol_mangling/src/v0.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_symbol_mangling/src/v0.rs b/compiler/rustc_symbol_mangling/src/v0.rs index 121d3b6b105..1605b4958ba 100644 --- a/compiler/rustc_symbol_mangling/src/v0.rs +++ b/compiler/rustc_symbol_mangling/src/v0.rs @@ -342,7 +342,7 @@ impl<'tcx> Printer<'tcx> for V0SymbolMangler<'tcx> { ) } else { assert!( - !args.has_non_region_param(), + !args.has_non_region_param() && !args.has_free_regions(), "should not be mangling partially substituted \ polymorphic instance: {impl_def_id:?} {args:?}" ); |
