Rename _match
to usefulness
This commit is contained in:
parent
2de0475826
commit
941c6ac1a2
4 changed files with 4 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
||||||
use super::_match::Usefulness::*;
|
use super::usefulness::Usefulness::*;
|
||||||
use super::_match::{
|
use super::usefulness::{
|
||||||
compute_match_usefulness, expand_pattern, MatchArm, MatchCheckCtxt, UsefulnessReport,
|
compute_match_usefulness, expand_pattern, MatchArm, MatchCheckCtxt, UsefulnessReport,
|
||||||
};
|
};
|
||||||
use super::{PatCtxt, PatKind, PatternError};
|
use super::{PatCtxt, PatKind, PatternError};
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
use self::Constructor::*;
|
use self::Constructor::*;
|
||||||
use self::SliceKind::*;
|
use self::SliceKind::*;
|
||||||
|
|
||||||
use super::_match::{MatchCheckCtxt, PatCtxt};
|
|
||||||
use super::compare_const_vals;
|
use super::compare_const_vals;
|
||||||
|
use super::usefulness::{MatchCheckCtxt, PatCtxt};
|
||||||
use super::{FieldPat, Pat, PatKind, PatRange};
|
use super::{FieldPat, Pat, PatKind, PatRange};
|
||||||
|
|
||||||
use rustc_data_structures::captures::Captures;
|
use rustc_data_structures::captures::Captures;
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
//! Validation of patterns/matches.
|
//! Validation of patterns/matches.
|
||||||
|
|
||||||
mod _match;
|
|
||||||
mod check_match;
|
mod check_match;
|
||||||
mod const_to_pat;
|
mod const_to_pat;
|
||||||
mod deconstruct_pat;
|
mod deconstruct_pat;
|
||||||
|
mod usefulness;
|
||||||
|
|
||||||
pub(crate) use self::check_match::check_match;
|
pub(crate) use self::check_match::check_match;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue