only export the two check* functions from check_match

This commit is contained in:
Oliver Schneider 2018-01-26 15:55:12 +01:00 committed by Oliver Schneider
parent 1543367624
commit bb81f9bdec
No known key found for this signature in database
GPG Key ID: A69F8D225B3AD7D9
2 changed files with 3 additions and 2 deletions

View File

@ -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 }

View File

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