From 7474a42b001b0fea51f761173bd3e194b7901f75 Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Fri, 18 Sep 2020 18:09:47 +0200 Subject: Remove incorrect docs --- crates/hir_def/src/attr.rs | 6 ------ 1 file changed, 6 deletions(-) (limited to 'crates') diff --git a/crates/hir_def/src/attr.rs b/crates/hir_def/src/attr.rs index a841b97bf..dea552a60 100644 --- a/crates/hir_def/src/attr.rs +++ b/crates/hir_def/src/attr.rs @@ -171,9 +171,6 @@ pub struct AttrQuery<'a> { } impl<'a> AttrQuery<'a> { - /// For an attribute like `#[attr(value)]`, returns the `(value)` subtree. - /// - /// If the attribute does not have a token tree argument, returns `None`. pub fn tt_values(self) -> impl Iterator { self.attrs().filter_map(|attr| match attr.input.as_ref()? { AttrInput::TokenTree(it) => Some(it), @@ -181,9 +178,6 @@ impl<'a> AttrQuery<'a> { }) } - /// For an attribute like `#[key = "value"]`, returns `"value"`. - /// - /// Returns `None` if the attribute does not have `key = "value"` form. pub fn string_value(self) -> Option<&'a SmolStr> { self.attrs().find_map(|attr| match attr.input.as_ref()? { AttrInput::Literal(it) => Some(it), -- cgit v1.2.3