File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -3234,12 +3234,7 @@ impl<'hir> Node<'hir> {
3234
3234
}
3235
3235
}
3236
3236
3237
- /// Returns `Constness::Const` when this node is a const fn/impl/item,
3238
- ///
3239
- /// HACK(fee1-dead): or an associated type in a trait. This works because
3240
- /// only typeck cares about const trait predicates, so although the predicates
3241
- /// query would return const predicates when it does not need to be const,
3242
- /// it wouldn't have any effect.
3237
+ /// Returns `Constness::Const` when this node is a const fn/impl/item.
3243
3238
pub fn constness_for_typeck ( & self ) -> Constness {
3244
3239
match self {
3245
3240
Node :: Item ( Item {
@@ -3258,7 +3253,6 @@ impl<'hir> Node<'hir> {
3258
3253
3259
3254
Node :: Item ( Item { kind : ItemKind :: Const ( ..) , .. } )
3260
3255
| Node :: TraitItem ( TraitItem { kind : TraitItemKind :: Const ( ..) , .. } )
3261
- | Node :: TraitItem ( TraitItem { kind : TraitItemKind :: Type ( ..) , .. } )
3262
3256
| Node :: ImplItem ( ImplItem { kind : ImplItemKind :: Const ( ..) , .. } ) => Constness :: Const ,
3263
3257
3264
3258
_ => Constness :: NotConst ,
You can’t perform that action at this time.
0 commit comments