]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #75043 - petrochenkov:hasname, r=nnethercote
authorYuki Okushi <huyuumi.dev@gmail.com>
Tue, 4 Aug 2020 00:26:59 +0000 (09:26 +0900)
committerGitHub <noreply@github.com>
Tue, 4 Aug 2020 00:26:59 +0000 (09:26 +0900)
rustc_ast: `(Nested)MetaItem::check_name` -> `has_name`

For consistency with `Attribute::has_name` which doesn't mark the attribute as used either.

Replace all uses of `check_name` with `has_name` outside of rustc, only rustc needs to mark attributes as used.

cc https://github.com/rust-lang/rust/pull/74932
r? @nnethercote


Trivial merge