diff options
| author | kadmin <julianknodt@gmail.com> | 2022-01-13 07:39:58 +0000 |
|---|---|---|
| committer | kadmin <julianknodt@gmail.com> | 2022-01-17 20:01:22 +0000 |
| commit | 1c1ce2fbda9c5d385fcb222d98d948aa4616fe91 (patch) | |
| tree | cd857aabfa5104ae08da5c00114dbe6cddb765c2 /compiler/rustc_codegen_ssa/src/debuginfo | |
| parent | f396888c4d816f7d0980aba041014169dd71a2a7 (diff) | |
| download | rust-1c1ce2fbda9c5d385fcb222d98d948aa4616fe91.tar.gz rust-1c1ce2fbda9c5d385fcb222d98d948aa4616fe91.zip | |
Add term to ExistentialProjection
Also prevent ICE when adding a const in associated const equality.
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/debuginfo')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs b/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs index 61322a6e556..9687fd09a53 100644 --- a/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs +++ b/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs @@ -203,8 +203,9 @@ fn push_debuginfo_type_name<'tcx>( let projection_bounds: SmallVec<[_; 4]> = trait_data .projection_bounds() .map(|bound| { - let ExistentialProjection { item_def_id, ty, .. } = bound.skip_binder(); - (item_def_id, ty) + let ExistentialProjection { item_def_id, term, .. } = bound.skip_binder(); + // FIXME(associated_const_equality): allow for consts here + (item_def_id, term.ty().unwrap()) }) .collect(); |
