diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-08-04 09:26:59 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-04 09:26:59 +0900 |
| commit | 262fce481dc60c348ba0436caabd4a824ecc412e (patch) | |
| tree | 448be73655124de7ea6b76351c2810575895a5e4 /src/librustdoc/html/render | |
| parent | cc0ac7eecebd57278974329d3610bb2512740ef8 (diff) | |
| parent | 05f414b72a26b285c7a7f6c9632945ab567a9757 (diff) | |
Rollup merge of #75043 - petrochenkov:hasname, r=nnethercote
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
Diffstat (limited to 'src/librustdoc/html/render')
| -rw-r--r-- | src/librustdoc/html/render/cache.rs | 2 |
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(); |
