1
Fork 0
This commit is contained in:
lcnr 2024-11-18 10:50:14 +01:00
parent 9cba14b95b
commit 2e087d2eaa
5 changed files with 11 additions and 6 deletions

View file

@ -1197,7 +1197,8 @@ impl<'tcx> TypingEnv<'tcx> {
// as these placeholders are also local to the current inference context. However, we
// currently use pseudo-canonical queries in the trait solver which replaces params with
// placeholders. We should also simply not use pseudo-canonical queries in the trait
// solver, at which point we can readd this assert.
// solver, at which point we can readd this assert. As of writing this comment, this is
// only used by `fn layout_is_pointer_like` when calling `layout_of`.
//
// debug_assert!(!value.has_placeholders());
PseudoCanonicalInput { typing_env: self, value }