diff options
| author | Michael Goulet <michael@errs.io> | 2024-08-08 11:56:12 -0400 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-08-08 12:15:16 -0400 |
| commit | b9164319769c52bd98607d80b4c7c53e06bf6887 (patch) | |
| tree | 9cf7baa0c0a937f1c0793fee95cae209cccb122b /compiler/rustc_hir_analysis/src | |
| parent | f81549c9ca465e87ab6902dee8cdb4989ee50077 (diff) | |
| download | rust-b9164319769c52bd98607d80b4c7c53e06bf6887.tar.gz rust-b9164319769c52bd98607d80b4c7c53e06bf6887.zip | |
Rename struct_tail_erasing_lifetimes to struct_tail_for_codegen
Diffstat (limited to 'compiler/rustc_hir_analysis/src')
| -rw-r--r-- | compiler/rustc_hir_analysis/src/check/wfcheck.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_hir_analysis/src/check/wfcheck.rs b/compiler/rustc_hir_analysis/src/check/wfcheck.rs index c878095ba0d..a9f8630741a 100644 --- a/compiler/rustc_hir_analysis/src/check/wfcheck.rs +++ b/compiler/rustc_hir_analysis/src/check/wfcheck.rs @@ -1276,7 +1276,7 @@ fn check_item_type( UnsizedHandling::Forbid => true, UnsizedHandling::Allow => false, UnsizedHandling::AllowIfForeignTail => { - let tail = tcx.struct_tail_erasing_lifetimes(item_ty, wfcx.param_env); + let tail = tcx.struct_tail_for_codegen(item_ty, wfcx.param_env); !matches!(tail.kind(), ty::Foreign(_)) } }; |
