mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-17 09:06:53 +00:00
It's a highly misleading name, because it's completely different to `MetaItem::name_value_literal`. Specifically, it doesn't match `MetaItemKind::NameValue` (e.g. `#[foo = 3]`), it matches `MetaItemKind::List` (e.g. `#[foo(3)]`).
Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.