When replacing #[type_const] with proper type const syntax in #152324, a query was introduced to check whether a const item is a type const or not. This (may have) caused the perf regression (#152324 (comment)), we should experiment with replacing this query with a flag in DefKind::Const/AssocConst.
This would probably be a nice cleanup regardless of whether it fixes the perf regression
When replacing
#[type_const]with propertype constsyntax in #152324, a query was introduced to check whether a const item is a type const or not. This (may have) caused the perf regression (#152324 (comment)), we should experiment with replacing this query with a flag inDefKind::Const/AssocConst.This would probably be a nice cleanup regardless of whether it fixes the perf regression