diff options
Diffstat (limited to 'crates/hir_ty/src/diagnostics/pattern')
-rw-r--r-- | crates/hir_ty/src/diagnostics/pattern/pat_util.rs | 4 | ||||
-rw-r--r-- | crates/hir_ty/src/diagnostics/pattern/usefulness.rs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/crates/hir_ty/src/diagnostics/pattern/pat_util.rs b/crates/hir_ty/src/diagnostics/pattern/pat_util.rs index f8ad4e7c6..eb0b07a52 100644 --- a/crates/hir_ty/src/diagnostics/pattern/pat_util.rs +++ b/crates/hir_ty/src/diagnostics/pattern/pat_util.rs | |||
@@ -1,6 +1,6 @@ | |||
1 | use std::iter::{Enumerate, ExactSizeIterator}; | 1 | use std::iter::{Enumerate, ExactSizeIterator}; |
2 | 2 | ||
3 | pub struct EnumerateAndAdjust<I> { | 3 | pub(crate) struct EnumerateAndAdjust<I> { |
4 | enumerate: Enumerate<I>, | 4 | enumerate: Enumerate<I>, |
5 | gap_pos: usize, | 5 | gap_pos: usize, |
6 | gap_len: usize, | 6 | gap_len: usize, |
@@ -23,7 +23,7 @@ where | |||
23 | } | 23 | } |
24 | } | 24 | } |
25 | 25 | ||
26 | pub trait EnumerateAndAdjustIterator { | 26 | pub(crate) trait EnumerateAndAdjustIterator { |
27 | fn enumerate_and_adjust( | 27 | fn enumerate_and_adjust( |
28 | self, | 28 | self, |
29 | expected_len: usize, | 29 | expected_len: usize, |
diff --git a/crates/hir_ty/src/diagnostics/pattern/usefulness.rs b/crates/hir_ty/src/diagnostics/pattern/usefulness.rs index 3bfb7afed..76dc4412f 100644 --- a/crates/hir_ty/src/diagnostics/pattern/usefulness.rs +++ b/crates/hir_ty/src/diagnostics/pattern/usefulness.rs | |||
@@ -906,7 +906,7 @@ mod helper { | |||
906 | /// [this comment]: https://github.com/rust-lang/rust/issues/34511#issuecomment-373423999 | 906 | /// [this comment]: https://github.com/rust-lang/rust/issues/34511#issuecomment-373423999 |
907 | // FIXME(eddyb) false positive, the lifetime parameter is "phantom" but needed. | 907 | // FIXME(eddyb) false positive, the lifetime parameter is "phantom" but needed. |
908 | #[allow(unused_lifetimes)] | 908 | #[allow(unused_lifetimes)] |
909 | pub trait Captures<'a> {} | 909 | pub(crate) trait Captures<'a> {} |
910 | 910 | ||
911 | impl<'a, T: ?Sized> Captures<'a> for T {} | 911 | impl<'a, T: ?Sized> Captures<'a> for T {} |
912 | } | 912 | } |