Missing visit_const/fold_const when visit_ty/fold_ty exists and consts are relevant. #70317
Labels
A-const-generics
Area: const generics (parameters and arguments)
C-bug
Category: This is a bug.
F-const_generics
`#![feature(const_generics)]`
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
For visiting, I've identified these two examples:
rust/src/librustc/traits/structural_impls.rs
Lines 256 to 274 in 5aa8f19
rust/src/librustc/ty/fold.rs
Lines 976 to 990 in 5aa8f19
(the latter would need to handle
ty::ConstKind::Unevaluated
the same wayty::Projection
is handled, as "unevaluated" consts are effectively projections)For folding, I've listed one missing
fold_const
and two which are missing some recursion, in #70125 (comment).cc @varkor @yodaldevoid
The text was updated successfully, but these errors were encountered: