about summary refs log tree commit diff
path: root/src/librustdoc/html/render
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2020-08-02 13:17:20 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2020-08-04 00:34:11 +0300
commit0a88346be64d0c64771d72ada8583e5795416556 (patch)
treeb8f8e406c56e2847f0b0e0dbf83c9d2224d906c4 /src/librustdoc/html/render
parent829d69b9c6bfc535a92fc290ec9391a0d5af6c81 (diff)
downloadrust-0a88346be64d0c64771d72ada8583e5795416556.tar.gz
rust-0a88346be64d0c64771d72ada8583e5795416556.zip
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
Diffstat (limited to 'src/librustdoc/html/render')
-rw-r--r--src/librustdoc/html/render/cache.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/render/cache.rs b/src/librustdoc/html/render/cache.rs
index 378efa1a1be..5a9e9dda677 100644
--- a/src/librustdoc/html/render/cache.rs
+++ b/src/librustdoc/html/render/cache.rs
@@ -48,7 +48,7 @@ pub fn extern_location(
     // external crate
     e.attrs
         .lists(sym::doc)
-        .filter(|a| a.check_name(sym::html_root_url))
+        .filter(|a| a.has_name(sym::html_root_url))
         .filter_map(|a| a.value_str())
         .map(|url| {
             let mut url = url.to_string();