mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 17:18:32 +03:00
4df80b1976
Use `find_attr` instead of `attr::contains_name` in `lower_const_item_rhs` Fixes rust-lang/rust#151250 `attr::contains_name` uses `AttributeExt::name()` to filter, but for `hir::Attribute::Parsed`, this method will return `None`, and then `attr::contains_name` will return `false` here. So that the previous logic cannot work as expected. r? @BoxyUwU