diff options
| author | Jonas Schievink <jonasschievink@gmail.com> | 2020-12-19 02:44:00 +0100 |
|---|---|---|
| committer | Jonas Schievink <jonasschievink@gmail.com> | 2020-12-19 02:44:22 +0100 |
| commit | a2062d18926f15e330c873eab97aed4d5d308ea1 (patch) | |
| tree | eeb2a2dd4fc58f608ce7260eee1a372c03d31923 | |
| parent | 81ccf37d3b8a5ffdf5c2d537761eeb06ae29dd7e (diff) | |
| download | rust-a2062d18926f15e330c873eab97aed4d5d308ea1.tar.gz rust-a2062d18926f15e330c873eab97aed4d5d308ea1.zip | |
Make `RawAttrs` crate-private
There should be no need to use this from outside
| -rw-r--r-- | crates/hir_def/src/attr.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir_def/src/attr.rs b/crates/hir_def/src/attr.rs index aacfeef28f3..73b17da1060 100644 --- a/crates/hir_def/src/attr.rs +++ b/crates/hir_def/src/attr.rs @@ -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()) |
