diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-11-02 16:01:38 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-11-02 16:01:38 +0000 |
commit | cb04f0c019bdd77406a7feb6ae7f4a17924d0693 (patch) | |
tree | 5bb833b20c4d66a3683ceeb60a922a86284d5ad6 /crates/hir_def | |
parent | 731b38fa3c1694648e6c8e60f61820f9783343eb (diff) | |
parent | f5e7f07838975757703a7e00adb45ee43c2d9a1a (diff) |
Merge #6440
6440: Deny unreachable pub r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
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()); |