Remove more unreachable pubs

This commit is contained in:
Aleksey Kladov 2020-11-02 16:31:38 +01:00
parent 731b38fa3c
commit ba8d6d1e4e
39 changed files with 114 additions and 121 deletions

View file

@ -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());