mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-28 03:07:24 +03:00
5fb00f2f28
Correctly encode doc attribute metadata Follow-up of https://github.com/rust-lang/rust/pull/149645. The change I made was slightly wrong. [Originally](https://github.com/rust-lang/rust/pull/149645/changes#diff-72bf3e63aae0c5f24a5ce78a560db321ac6ead9df5ada3e33462a7f7d6218a55) the check was: ```rust if let Some(item_list) = attr.meta_item_list() { for item in item_list { if !item.has_name(sym::inline) { ``` So we were checking that there was no `doc(inline)` attribute. This PR should fix it. r? ``@lqd``