Rename _match to usefulness

This commit is contained in:
Nadrieril 2020-11-27 18:43:28 +00:00
parent 2de0475826
commit 941c6ac1a2
4 changed files with 4 additions and 4 deletions

View file

@ -1,5 +1,5 @@
use super::_match::Usefulness::*;
use super::_match::{
use super::usefulness::Usefulness::*;
use super::usefulness::{
compute_match_usefulness, expand_pattern, MatchArm, MatchCheckCtxt, UsefulnessReport,
};
use super::{PatCtxt, PatKind, PatternError};

View file

@ -4,8 +4,8 @@
use self::Constructor::*;
use self::SliceKind::*;
use super::_match::{MatchCheckCtxt, PatCtxt};
use super::compare_const_vals;
use super::usefulness::{MatchCheckCtxt, PatCtxt};
use super::{FieldPat, Pat, PatKind, PatRange};
use rustc_data_structures::captures::Captures;

View file

@ -1,9 +1,9 @@
//! Validation of patterns/matches.
mod _match;
mod check_match;
mod const_to_pat;
mod deconstruct_pat;
mod usefulness;
pub(crate) use self::check_match::check_match;