mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
Remove more unreachable pubs
This commit is contained in:
parent
731b38fa3c
commit
ba8d6d1e4e
39 changed files with 114 additions and 121 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue