Skip to content

Commit 941c6ac

Browse files
committed
Rename _match to usefulness
1 parent 2de0475 commit 941c6ac

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

compiler/rustc_mir_build/src/thir/pattern/check_match.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
use super::_match::Usefulness::*;
2-
use super::_match::{
1+
use super::usefulness::Usefulness::*;
2+
use super::usefulness::{
33
compute_match_usefulness, expand_pattern, MatchArm, MatchCheckCtxt, UsefulnessReport,
44
};
55
use super::{PatCtxt, PatKind, PatternError};

compiler/rustc_mir_build/src/thir/pattern/deconstruct_pat.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
use self::Constructor::*;
55
use self::SliceKind::*;
66

7-
use super::_match::{MatchCheckCtxt, PatCtxt};
87
use super::compare_const_vals;
8+
use super::usefulness::{MatchCheckCtxt, PatCtxt};
99
use super::{FieldPat, Pat, PatKind, PatRange};
1010

1111
use rustc_data_structures::captures::Captures;

compiler/rustc_mir_build/src/thir/pattern/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
//! Validation of patterns/matches.
22
3-
mod _match;
43
mod check_match;
54
mod const_to_pat;
65
mod deconstruct_pat;
6+
mod usefulness;
77

88
pub(crate) use self::check_match::check_match;
99

0 commit comments

Comments
 (0)