mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 05:23:24 +00:00
Make RawAttrs
crate-private
There should be no need to use this from outside
This commit is contained in:
parent
81ccf37d3b
commit
a2062d1892
1 changed files with 2 additions and 2 deletions
|
@ -42,7 +42,7 @@ impl From<Documentation> for String {
|
|||
|
||||
/// Syntactical attributes, without filtering of `cfg_attr`s.
|
||||
#[derive(Default, Debug, Clone, PartialEq, Eq)]
|
||||
pub struct RawAttrs {
|
||||
pub(crate) struct RawAttrs {
|
||||
entries: Option<Arc<[Attr]>>,
|
||||
}
|
||||
|
||||
|
@ -72,7 +72,7 @@ impl ops::Deref for Attrs {
|
|||
}
|
||||
|
||||
impl RawAttrs {
|
||||
pub const EMPTY: Self = Self { entries: None };
|
||||
pub(crate) const EMPTY: Self = Self { entries: None };
|
||||
|
||||
pub(crate) fn new(owner: &dyn AttrsOwner, hygiene: &Hygiene) -> Self {
|
||||
let (inner_attrs, inner_docs) = inner_attributes(owner.syntax())
|
||||
|
|
Loading…
Reference in a new issue