Skip to content

Commit a2062d1

Browse files
Make RawAttrs crate-private
There should be no need to use this from outside
1 parent 81ccf37 commit a2062d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/hir_def/src/attr.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ impl From<Documentation> for String {
4242

4343
/// Syntactical attributes, without filtering of `cfg_attr`s.
4444
#[derive(Default, Debug, Clone, PartialEq, Eq)]
45-
pub struct RawAttrs {
45+
pub(crate) struct RawAttrs {
4646
entries: Option<Arc<[Attr]>>,
4747
}
4848

@@ -72,7 +72,7 @@ impl ops::Deref for Attrs {
7272
}
7373

7474
impl RawAttrs {
75-
pub const EMPTY: Self = Self { entries: None };
75+
pub(crate) const EMPTY: Self = Self { entries: None };
7676

7777
pub(crate) fn new(owner: &dyn AttrsOwner, hygiene: &Hygiene) -> Self {
7878
let (inner_attrs, inner_docs) = inner_attributes(owner.syntax())

0 commit comments

Comments
 (0)