aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_def
diff options
context:
space:
mode:
authorJonas Schievink <[email protected]>2020-12-19 01:44:00 +0000
committerJonas Schievink <[email protected]>2020-12-19 01:44:22 +0000
commita2062d18926f15e330c873eab97aed4d5d308ea1 (patch)
treeeeb2a2dd4fc58f608ce7260eee1a372c03d31923 /crates/hir_def
parent81ccf37d3b8a5ffdf5c2d537761eeb06ae29dd7e (diff)
Make `RawAttrs` crate-private
There should be no need to use this from outside
Diffstat (limited to 'crates/hir_def')
-rw-r--r--crates/hir_def/src/attr.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir_def/src/attr.rs b/crates/hir_def/src/attr.rs
index aacfeef28..73b17da10 100644
--- a/crates/hir_def/src/attr.rs
+++ b/crates/hir_def/src/attr.rs
@@ -42,7 +42,7 @@ impl From<Documentation> for String {
42 42
43/// Syntactical attributes, without filtering of `cfg_attr`s. 43/// Syntactical attributes, without filtering of `cfg_attr`s.
44#[derive(Default, Debug, Clone, PartialEq, Eq)] 44#[derive(Default, Debug, Clone, PartialEq, Eq)]
45pub struct RawAttrs { 45pub(crate) struct RawAttrs {
46 entries: Option<Arc<[Attr]>>, 46 entries: Option<Arc<[Attr]>>,
47} 47}
48 48
@@ -72,7 +72,7 @@ impl ops::Deref for Attrs {
72} 72}
73 73
74impl RawAttrs { 74impl RawAttrs {
75 pub const EMPTY: Self = Self { entries: None }; 75 pub(crate) const EMPTY: Self = Self { entries: None };
76 76
77 pub(crate) fn new(owner: &dyn AttrsOwner, hygiene: &Hygiene) -> Self { 77 pub(crate) fn new(owner: &dyn AttrsOwner, hygiene: &Hygiene) -> Self {
78 let (inner_attrs, inner_docs) = inner_attributes(owner.syntax()) 78 let (inner_attrs, inner_docs) = inner_attributes(owner.syntax())