]> git.lizzy.rs Git - rust.git/commit
Remove `mk_name_value_item{,_str}`.
authorNicholas Nethercote <n.nethercote@gmail.com>
Mon, 5 Dec 2022 00:22:01 +0000 (11:22 +1100)
committerNicholas Nethercote <n.nethercote@gmail.com>
Mon, 5 Dec 2022 00:24:48 +0000 (11:24 +1100)
commit7d30472180855735929e42595aefb4344b4c8562
treecd6dfe55d0b0b7cea4e49d0ef248f02a1b19bd4f
parentd5526ff40d3213f6138c1c1311d0c1a0f5c40133
Remove `mk_name_value_item{,_str}`.

There are better ways to create the meta items.
- In the rustdoc tests, the commit adds `dummy_meta_item_name_value`,
  which matches the existing `dummy_meta_item_word` function and
  `dummy_meta_item_list` macro.
- In `types.rs` the commit clones the existing meta item and then
  modifies the clone.
compiler/rustc_ast/src/attr/mod.rs
src/librustdoc/clean/cfg/tests.rs
src/librustdoc/clean/types.rs