span: Span,
) -> McfResult {
match place {
- Place::Local(_) => Ok(()),
+ Place::Base(PlaceBase::Local(_)) => Ok(()),
// promoteds are always fine, they are essentially constants
- Place::Promoted(_) => Ok(()),
- Place::Static(_) => Err((span, "cannot access `static` items in const fn".into())),
+ Place::Base(PlaceBase::Promoted(_)) => Ok(()),
+ Place::Base(PlaceBase::Static(_)) =>
+ Err((span, "cannot access `static` items in const fn".into())),
Place::Projection(proj) => {
match proj.elem {
| ProjectionElem::ConstantIndex { .. } | ProjectionElem::Subslice { .. }