diff options
author | Aleksey Kladov <[email protected]> | 2020-11-02 15:31:38 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-11-02 15:58:33 +0000 |
commit | ba8d6d1e4ea2590b31470171efc175b0301c5e1c (patch) | |
tree | 6304a61e803e5adf802abce8ae2d7066a2c5fef8 /crates/hir_def | |
parent | 731b38fa3c1694648e6c8e60f61820f9783343eb (diff) |
Remove more unreachable pubs
Diffstat (limited to 'crates/hir_def')
-rw-r--r-- | crates/hir_def/src/body/diagnostics.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir_def/src/body/diagnostics.rs b/crates/hir_def/src/body/diagnostics.rs index cfa47d189..e57bdc133 100644 --- a/crates/hir_def/src/body/diagnostics.rs +++ b/crates/hir_def/src/body/diagnostics.rs | |||
@@ -5,12 +5,12 @@ use hir_expand::diagnostics::DiagnosticSink; | |||
5 | use crate::diagnostics::InactiveCode; | 5 | use crate::diagnostics::InactiveCode; |
6 | 6 | ||
7 | #[derive(Debug, Eq, PartialEq)] | 7 | #[derive(Debug, Eq, PartialEq)] |
8 | pub enum BodyDiagnostic { | 8 | pub(crate) enum BodyDiagnostic { |
9 | InactiveCode(InactiveCode), | 9 | InactiveCode(InactiveCode), |
10 | } | 10 | } |
11 | 11 | ||
12 | impl BodyDiagnostic { | 12 | impl BodyDiagnostic { |
13 | pub fn add_to(&self, sink: &mut DiagnosticSink<'_>) { | 13 | pub(crate) fn add_to(&self, sink: &mut DiagnosticSink<'_>) { |
14 | match self { | 14 | match self { |
15 | BodyDiagnostic::InactiveCode(diag) => { | 15 | BodyDiagnostic::InactiveCode(diag) => { |
16 | sink.push(diag.clone()); | 16 | sink.push(diag.clone()); |