From ba8d6d1e4ea2590b31470171efc175b0301c5e1c Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 2 Nov 2020 16:31:38 +0100 Subject: Remove more unreachable pubs --- crates/hir_def/src/body/diagnostics.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/hir_def') 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; use crate::diagnostics::InactiveCode; #[derive(Debug, Eq, PartialEq)] -pub enum BodyDiagnostic { +pub(crate) enum BodyDiagnostic { InactiveCode(InactiveCode), } impl BodyDiagnostic { - pub fn add_to(&self, sink: &mut DiagnosticSink<'_>) { + pub(crate) fn add_to(&self, sink: &mut DiagnosticSink<'_>) { match self { BodyDiagnostic::InactiveCode(diag) => { sink.push(diag.clone()); -- cgit v1.2.3