diff options
| author | Oliver Schneider <git-no-reply-9879165716479413131@oli-obk.de> | 2018-01-26 15:55:12 +0100 |
|---|---|---|
| committer | Oliver Schneider <git-spam-no-reply9815368754983@oli-obk.de> | 2018-03-08 08:34:11 +0100 |
| commit | bb81f9bdec4c4541c68673b3d01771793465e16e (patch) | |
| tree | 2f9a6778853f5765e9da9c1b2a4754d65f94fe4b | |
| parent | 1543367624ac1a42f2dd4ad55fb54edaf4e0127a (diff) | |
| download | rust-bb81f9bdec4c4541c68673b3d01771793465e16e.tar.gz rust-bb81f9bdec4c4541c68673b3d01771793465e16e.zip | |
only export the two check* functions from check_match
| -rw-r--r-- | src/librustc_mir/lib.rs | 2 | ||||
| -rw-r--r-- | src/librustc_mir/pattern/mod.rs | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/librustc_mir/lib.rs b/src/librustc_mir/lib.rs index 43ce6fc67df..f6ceaba29ac 100644 --- a/src/librustc_mir/lib.rs +++ b/src/librustc_mir/lib.rs @@ -81,7 +81,7 @@ pub fn provide(providers: &mut Providers) { shim::provide(providers); transform::provide(providers); providers.const_eval = interpret::const_eval_provider; - providers.check_match = pattern::check_match::check_match; + providers.check_match = pattern::check_match; } __build_diagnostic_array! { librustc_mir, DIAGNOSTICS } diff --git a/src/librustc_mir/pattern/mod.rs b/src/librustc_mir/pattern/mod.rs index ff5ddc93a4b..c99dc4a7658 100644 --- a/src/librustc_mir/pattern/mod.rs +++ b/src/librustc_mir/pattern/mod.rs @@ -11,7 +11,8 @@ //! constant evaluation on the HIR and code to validate patterns/matches mod _match; -pub(crate) mod check_match; +mod check_match; pub(crate) mod pattern; pub use self::check_match::check_crate; +pub(crate) use self::check_match::check_match; |
