chore: add ConstExpr::map

This commit is contained in:
Shunsuke Shibayama 2024-10-04 13:01:30 +09:00
parent 3066781092
commit 7c2d6ac59a
3 changed files with 101 additions and 5 deletions

View file

@ -1899,7 +1899,8 @@ impl Context {
Err((tp, errs))
}
}
other => type_feature_error!(
ast::ConstExpr::Dummy(_) => Ok(TyParam::Failure),
other @ ast::ConstExpr::Def(_) => type_feature_error!(
self,
other.loc(),
&format!("instantiating const expression {other}")