Skip to content

Commit 3016c29

Browse files
committed
s/MatchCx/TypeCx/
1 parent 4bcf66f commit 3016c29

File tree

6 files changed

+48
-48
lines changed

6 files changed

+48
-48
lines changed

Diff for: compiler/rustc_pattern_analysis/src/constructor.rs

+8-8
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
//! - That have no non-trivial intersection with any of the constructors in the column (i.e. they're
4141
//! each either disjoint with or covered by any given column constructor).
4242
//!
43-
//! We compute this in two steps: first [`MatchCx::ctors_for_ty`] determines the
43+
//! We compute this in two steps: first [`TypeCx::ctors_for_ty`] determines the
4444
//! set of all possible constructors for the type. Then [`ConstructorSet::split`] looks at the
4545
//! column of constructors and splits the set into groups accordingly. The precise invariants of
4646
//! [`ConstructorSet::split`] is described in [`SplitConstructorSet`].
@@ -136,7 +136,7 @@
136136
//! the algorithm can't distinguish them from a nonempty constructor. The only known case where this
137137
//! could happen is the `[..]` pattern on `[!; N]` with `N > 0` so we must take care to not emit it.
138138
//!
139-
//! This is all handled by [`MatchCx::ctors_for_ty`] and
139+
//! This is all handled by [`TypeCx::ctors_for_ty`] and
140140
//! [`ConstructorSet::split`]. The invariants of [`SplitConstructorSet`] are also of interest.
141141
//!
142142
//!
@@ -163,7 +163,7 @@ use self::MaybeInfiniteInt::*;
163163
use self::SliceKind::*;
164164

165165
use crate::usefulness::PlaceCtxt;
166-
use crate::MatchCx;
166+
use crate::TypeCx;
167167

168168
/// Whether we have seen a constructor in the column or not.
169169
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
@@ -643,7 +643,7 @@ impl OpaqueId {
643643
/// constructor. `Constructor::apply` reconstructs the pattern from a pair of `Constructor` and
644644
/// `Fields`.
645645
#[derive(Clone, Debug, PartialEq)]
646-
pub enum Constructor<Cx: MatchCx> {
646+
pub enum Constructor<Cx: TypeCx> {
647647
/// Tuples and structs.
648648
Struct,
649649
/// Enum variants.
@@ -685,7 +685,7 @@ pub enum Constructor<Cx: MatchCx> {
685685
Missing,
686686
}
687687

688-
impl<Cx: MatchCx> Constructor<Cx> {
688+
impl<Cx: TypeCx> Constructor<Cx> {
689689
pub(crate) fn is_non_exhaustive(&self) -> bool {
690690
matches!(self, NonExhaustive)
691691
}
@@ -798,7 +798,7 @@ pub enum VariantVisibility {
798798
/// In terms of division of responsibility, [`ConstructorSet::split`] handles all of the
799799
/// `exhaustive_patterns` feature.
800800
#[derive(Debug)]
801-
pub enum ConstructorSet<Cx: MatchCx> {
801+
pub enum ConstructorSet<Cx: TypeCx> {
802802
/// The type is a tuple or struct. `empty` tracks whether the type is empty.
803803
Struct { empty: bool },
804804
/// This type has the following list of constructors. If `variants` is empty and
@@ -846,13 +846,13 @@ pub enum ConstructorSet<Cx: MatchCx> {
846846
/// of the `ConstructorSet` for the type, yet if we forgot to include them in `present` we would be
847847
/// ignoring any row with `Opaque`s in the algorithm. Hence the importance of point 4.
848848
#[derive(Debug)]
849-
pub(crate) struct SplitConstructorSet<Cx: MatchCx> {
849+
pub(crate) struct SplitConstructorSet<Cx: TypeCx> {
850850
pub(crate) present: SmallVec<[Constructor<Cx>; 1]>,
851851
pub(crate) missing: Vec<Constructor<Cx>>,
852852
pub(crate) missing_empty: Vec<Constructor<Cx>>,
853853
}
854854

855-
impl<Cx: MatchCx> ConstructorSet<Cx> {
855+
impl<Cx: TypeCx> ConstructorSet<Cx> {
856856
/// This analyzes a column of constructors to 1/ determine which constructors of the type (if
857857
/// any) are missing; 2/ split constructors to handle non-trivial intersections e.g. on ranges
858858
/// or slices. This can get subtle; see [`SplitConstructorSet`] for details of this operation

Diff for: compiler/rustc_pattern_analysis/src/lib.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,16 @@ impl<'a, T: ?Sized> Captures<'a> for T {}
4949
/// Context that provides type information about constructors.
5050
///
5151
/// Most of the crate is parameterized on a type that implements this trait.
52-
pub trait MatchCx: Sized + Clone + fmt::Debug {
52+
pub trait TypeCx: Sized + Clone + fmt::Debug {
5353
/// The type of a pattern.
5454
type Ty: Copy + Clone + fmt::Debug; // FIXME: remove Copy
5555
/// The index of an enum variant.
5656
type VariantIdx: Clone + Idx;
5757
/// A string literal
5858
type StrLit: Clone + PartialEq + fmt::Debug;
59-
/// Extra data to store on a match arm.
59+
/// Extra data to store in a match arm.
6060
type ArmData: Copy + Clone + fmt::Debug;
61-
/// Extra data to store on a pattern. `Default` needed when we create fictitious wildcard
61+
/// Extra data to store in a pattern. `Default` needed when we create fictitious wildcard
6262
/// patterns during analysis.
6363
type PatData: Clone + Default;
6464

@@ -86,24 +86,24 @@ pub trait MatchCx: Sized + Clone + fmt::Debug {
8686

8787
/// Context that provides information global to a match.
8888
#[derive(Clone)]
89-
pub struct MatchCtxt<'a, 'p, Cx: MatchCx> {
89+
pub struct MatchCtxt<'a, 'p, Cx: TypeCx> {
9090
/// The context for type information.
9191
pub tycx: &'a Cx,
9292
/// An arena to store the wildcards we produce during analysis.
9393
pub wildcard_arena: &'a TypedArena<DeconstructedPat<'p, Cx>>,
9494
}
9595

96-
impl<'a, 'p, Cx: MatchCx> Copy for MatchCtxt<'a, 'p, Cx> {}
96+
impl<'a, 'p, Cx: TypeCx> Copy for MatchCtxt<'a, 'p, Cx> {}
9797

9898
/// The arm of a match expression.
9999
#[derive(Clone, Debug)]
100-
pub struct MatchArm<'p, Cx: MatchCx> {
100+
pub struct MatchArm<'p, Cx: TypeCx> {
101101
pub pat: &'p DeconstructedPat<'p, Cx>,
102102
pub has_guard: bool,
103103
pub arm_data: Cx::ArmData,
104104
}
105105

106-
impl<'p, Cx: MatchCx> Copy for MatchArm<'p, Cx> {}
106+
impl<'p, Cx: TypeCx> Copy for MatchArm<'p, Cx> {}
107107

108108
/// The entrypoint for this crate. Computes whether a match is exhaustive and which of its arms are
109109
/// useful, and runs some lints.

Diff for: compiler/rustc_pattern_analysis/src/lints.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use crate::rustc::{
1515
Constructor, DeconstructedPat, MatchArm, MatchCtxt, PlaceCtxt, RustcMatchCheckCtxt,
1616
SplitConstructorSet, WitnessPat,
1717
};
18-
use crate::MatchCx;
18+
use crate::TypeCx;
1919

2020
/// A column of patterns in the matrix, where a column is the intuitive notion of "subpatterns that
2121
/// inspect the same subvalue/place".

Diff for: compiler/rustc_pattern_analysis/src/pat.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use smallvec::{smallvec, SmallVec};
77

88
use crate::constructor::{Constructor, Slice, SliceKind};
99
use crate::usefulness::PlaceCtxt;
10-
use crate::{Captures, MatchCx};
10+
use crate::{Captures, TypeCx};
1111

1212
use self::Constructor::*;
1313

@@ -22,7 +22,7 @@ use self::Constructor::*;
2222
/// This happens if a private or `non_exhaustive` field is uninhabited, because the code mustn't
2323
/// observe that it is uninhabited. In that case that field is not included in `fields`. Care must
2424
/// be taken when converting to/from `thir::Pat`.
25-
pub struct DeconstructedPat<'p, Cx: MatchCx> {
25+
pub struct DeconstructedPat<'p, Cx: TypeCx> {
2626
ctor: Constructor<Cx>,
2727
fields: &'p [DeconstructedPat<'p, Cx>],
2828
ty: Cx::Ty,
@@ -31,7 +31,7 @@ pub struct DeconstructedPat<'p, Cx: MatchCx> {
3131
useful: Cell<bool>,
3232
}
3333

34-
impl<'p, Cx: MatchCx> DeconstructedPat<'p, Cx> {
34+
impl<'p, Cx: TypeCx> DeconstructedPat<'p, Cx> {
3535
pub fn wildcard(ty: Cx::Ty, data: Cx::PatData) -> Self {
3636
Self::new(Wildcard, &[], ty, data)
3737
}
@@ -152,7 +152,7 @@ impl<'p, Cx: MatchCx> DeconstructedPat<'p, Cx> {
152152

153153
/// This is mostly copied from the `Pat` impl. This is best effort and not good enough for a
154154
/// `Display` impl.
155-
impl<'p, Cx: MatchCx> fmt::Debug for DeconstructedPat<'p, Cx> {
155+
impl<'p, Cx: TypeCx> fmt::Debug for DeconstructedPat<'p, Cx> {
156156
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
157157
Cx::debug_pat(f, self)
158158
}
@@ -161,13 +161,13 @@ impl<'p, Cx: MatchCx> fmt::Debug for DeconstructedPat<'p, Cx> {
161161
/// Same idea as `DeconstructedPat`, except this is a fictitious pattern built up for diagnostics
162162
/// purposes. As such they don't use interning and can be cloned.
163163
#[derive(Debug, Clone)]
164-
pub struct WitnessPat<Cx: MatchCx> {
164+
pub struct WitnessPat<Cx: TypeCx> {
165165
ctor: Constructor<Cx>,
166166
pub(crate) fields: Vec<WitnessPat<Cx>>,
167167
ty: Cx::Ty,
168168
}
169169

170-
impl<Cx: MatchCx> WitnessPat<Cx> {
170+
impl<Cx: TypeCx> WitnessPat<Cx> {
171171
pub(crate) fn new(ctor: Constructor<Cx>, fields: Vec<Self>, ty: Cx::Ty) -> Self {
172172
Self { ctor, fields, ty }
173173
}

Diff for: compiler/rustc_pattern_analysis/src/rustc.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use smallvec::SmallVec;
2020
use crate::constructor::{
2121
IntRange, MaybeInfiniteInt, OpaqueId, RangeEnd, Slice, SliceKind, VariantVisibility,
2222
};
23-
use crate::MatchCx;
23+
use crate::TypeCx;
2424

2525
use crate::constructor::Constructor::*;
2626

@@ -863,7 +863,7 @@ impl<'p, 'tcx> RustcMatchCheckCtxt<'p, 'tcx> {
863863
}
864864
}
865865

866-
impl<'p, 'tcx> MatchCx for RustcMatchCheckCtxt<'p, 'tcx> {
866+
impl<'p, 'tcx> TypeCx for RustcMatchCheckCtxt<'p, 'tcx> {
867867
type Ty = Ty<'tcx>;
868868
type VariantIdx = VariantIdx;
869869
type StrLit = Const<'tcx>;

Diff for: compiler/rustc_pattern_analysis/src/usefulness.rs

+24-24
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@
242242
//! Therefore `usefulness(tp_1, tp_2, tq)` returns the single witness-tuple `[Variant2(Some(true), 0)]`.
243243
//!
244244
//!
245-
//! Computing the set of constructors for a type is done in [`MatchCx::ctors_for_ty`]. See
245+
//! Computing the set of constructors for a type is done in [`TypeCx::ctors_for_ty`]. See
246246
//! the following sections for more accurate versions of the algorithm and corresponding links.
247247
//!
248248
//!
@@ -557,7 +557,7 @@ use std::fmt;
557557

558558
use crate::constructor::{Constructor, ConstructorSet};
559559
use crate::pat::{DeconstructedPat, WitnessPat};
560-
use crate::{Captures, MatchArm, MatchCtxt, MatchCx, TypedArena};
560+
use crate::{Captures, MatchArm, MatchCtxt, TypeCx, TypedArena};
561561

562562
use self::ValidityConstraint::*;
563563

@@ -570,15 +570,15 @@ pub fn ensure_sufficient_stack<R>(f: impl FnOnce() -> R) -> R {
570570

571571
/// Context that provides information local to a place under investigation.
572572
#[derive(Clone)]
573-
pub(crate) struct PlaceCtxt<'a, 'p, Cx: MatchCx> {
573+
pub(crate) struct PlaceCtxt<'a, 'p, Cx: TypeCx> {
574574
pub(crate) mcx: MatchCtxt<'a, 'p, Cx>,
575575
/// Type of the place under investigation.
576576
pub(crate) ty: Cx::Ty,
577577
/// Whether the place is the original scrutinee place, as opposed to a subplace of it.
578578
pub(crate) is_scrutinee: bool,
579579
}
580580

581-
impl<'a, 'p, Cx: MatchCx> PlaceCtxt<'a, 'p, Cx> {
581+
impl<'a, 'p, Cx: TypeCx> PlaceCtxt<'a, 'p, Cx> {
582582
/// A `PlaceCtxt` when code other than `is_useful` needs one.
583583
#[cfg_attr(not(feature = "rustc"), allow(dead_code))]
584584
pub(crate) fn new_dummy(mcx: MatchCtxt<'a, 'p, Cx>, ty: Cx::Ty) -> Self {
@@ -596,9 +596,9 @@ impl<'a, 'p, Cx: MatchCx> PlaceCtxt<'a, 'p, Cx> {
596596
}
597597
}
598598

599-
impl<'a, 'p, Cx: MatchCx> Copy for PlaceCtxt<'a, 'p, Cx> {}
599+
impl<'a, 'p, Cx: TypeCx> Copy for PlaceCtxt<'a, 'p, Cx> {}
600600

601-
impl<'a, 'p, Cx: MatchCx> fmt::Debug for PlaceCtxt<'a, 'p, Cx> {
601+
impl<'a, 'p, Cx: TypeCx> fmt::Debug for PlaceCtxt<'a, 'p, Cx> {
602602
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
603603
f.debug_struct("PlaceCtxt").field("ty", &self.ty).finish()
604604
}
@@ -644,7 +644,7 @@ impl ValidityConstraint {
644644
///
645645
/// Pending further opsem decisions, the current behavior is: validity is preserved, except
646646
/// inside `&` and union fields where validity is reset to `MaybeInvalid`.
647-
fn specialize<Cx: MatchCx>(self, ctor: &Constructor<Cx>) -> Self {
647+
fn specialize<Cx: TypeCx>(self, ctor: &Constructor<Cx>) -> Self {
648648
// We preserve validity except when we go inside a reference or a union field.
649649
if matches!(ctor, Constructor::Ref | Constructor::UnionField) {
650650
// Validity of `x: &T` does not imply validity of `*x: T`.
@@ -671,12 +671,12 @@ impl fmt::Display for ValidityConstraint {
671671
// - 'p coming from the input
672672
// - Cx global compilation context
673673
#[derive(Clone)]
674-
struct PatStack<'a, 'p, Cx: MatchCx> {
674+
struct PatStack<'a, 'p, Cx: TypeCx> {
675675
// Rows of len 1 are very common, which is why `SmallVec[_; 2]` works well.
676676
pats: SmallVec<[&'a DeconstructedPat<'p, Cx>; 2]>,
677677
}
678678

679-
impl<'a, 'p, Cx: MatchCx> PatStack<'a, 'p, Cx> {
679+
impl<'a, 'p, Cx: TypeCx> PatStack<'a, 'p, Cx> {
680680
fn from_pattern(pat: &'a DeconstructedPat<'p, Cx>) -> Self {
681681
PatStack { pats: smallvec![pat] }
682682
}
@@ -722,7 +722,7 @@ impl<'a, 'p, Cx: MatchCx> PatStack<'a, 'p, Cx> {
722722
}
723723
}
724724

725-
impl<'a, 'p, Cx: MatchCx> fmt::Debug for PatStack<'a, 'p, Cx> {
725+
impl<'a, 'p, Cx: TypeCx> fmt::Debug for PatStack<'a, 'p, Cx> {
726726
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
727727
// We pretty-print similarly to the `Debug` impl of `Matrix`.
728728
write!(f, "+")?;
@@ -735,7 +735,7 @@ impl<'a, 'p, Cx: MatchCx> fmt::Debug for PatStack<'a, 'p, Cx> {
735735

736736
/// A row of the matrix.
737737
#[derive(Clone)]
738-
struct MatrixRow<'a, 'p, Cx: MatchCx> {
738+
struct MatrixRow<'a, 'p, Cx: TypeCx> {
739739
// The patterns in the row.
740740
pats: PatStack<'a, 'p, Cx>,
741741
/// Whether the original arm had a guard. This is inherited when specializing.
@@ -750,7 +750,7 @@ struct MatrixRow<'a, 'p, Cx: MatchCx> {
750750
useful: bool,
751751
}
752752

753-
impl<'a, 'p, Cx: MatchCx> MatrixRow<'a, 'p, Cx> {
753+
impl<'a, 'p, Cx: TypeCx> MatrixRow<'a, 'p, Cx> {
754754
fn is_empty(&self) -> bool {
755755
self.pats.is_empty()
756756
}
@@ -795,7 +795,7 @@ impl<'a, 'p, Cx: MatchCx> MatrixRow<'a, 'p, Cx> {
795795
}
796796
}
797797

798-
impl<'a, 'p, Cx: MatchCx> fmt::Debug for MatrixRow<'a, 'p, Cx> {
798+
impl<'a, 'p, Cx: TypeCx> fmt::Debug for MatrixRow<'a, 'p, Cx> {
799799
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
800800
self.pats.fmt(f)
801801
}
@@ -812,7 +812,7 @@ impl<'a, 'p, Cx: MatchCx> fmt::Debug for MatrixRow<'a, 'p, Cx> {
812812
/// specializing `(,)` and `Some` on a pattern of type `(Option<u32>, bool)`, the first column of
813813
/// the matrix will correspond to `scrutinee.0.Some.0` and the second column to `scrutinee.1`.
814814
#[derive(Clone)]
815-
struct Matrix<'a, 'p, Cx: MatchCx> {
815+
struct Matrix<'a, 'p, Cx: TypeCx> {
816816
/// Vector of rows. The rows must form a rectangular 2D array. Moreover, all the patterns of
817817
/// each column must have the same type. Each column corresponds to a place within the
818818
/// scrutinee.
@@ -824,7 +824,7 @@ struct Matrix<'a, 'p, Cx: MatchCx> {
824824
place_validity: SmallVec<[ValidityConstraint; 2]>,
825825
}
826826

827-
impl<'a, 'p, Cx: MatchCx> Matrix<'a, 'p, Cx> {
827+
impl<'a, 'p, Cx: TypeCx> Matrix<'a, 'p, Cx> {
828828
/// Pushes a new row to the matrix. If the row starts with an or-pattern, this recursively
829829
/// expands it. Internal method, prefer [`Matrix::new`].
830830
fn expand_and_push(&mut self, row: MatrixRow<'a, 'p, Cx>) {
@@ -942,7 +942,7 @@ impl<'a, 'p, Cx: MatchCx> Matrix<'a, 'p, Cx> {
942942
/// + _ + [_, _, tail @ ..] +
943943
/// | ✓ | ? | // column validity
944944
/// ```
945-
impl<'a, 'p, Cx: MatchCx> fmt::Debug for Matrix<'a, 'p, Cx> {
945+
impl<'a, 'p, Cx: TypeCx> fmt::Debug for Matrix<'a, 'p, Cx> {
946946
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
947947
write!(f, "\n")?;
948948

@@ -1033,9 +1033,9 @@ impl<'a, 'p, Cx: MatchCx> fmt::Debug for Matrix<'a, 'p, Cx> {
10331033
///
10341034
/// See the top of the file for more detailed explanations and examples.
10351035
#[derive(Debug, Clone)]
1036-
struct WitnessStack<Cx: MatchCx>(Vec<WitnessPat<Cx>>);
1036+
struct WitnessStack<Cx: TypeCx>(Vec<WitnessPat<Cx>>);
10371037

1038-
impl<Cx: MatchCx> WitnessStack<Cx> {
1038+
impl<Cx: TypeCx> WitnessStack<Cx> {
10391039
/// Asserts that the witness contains a single pattern, and returns it.
10401040
fn single_pattern(self) -> WitnessPat<Cx> {
10411041
assert_eq!(self.0.len(), 1);
@@ -1080,9 +1080,9 @@ impl<Cx: MatchCx> WitnessStack<Cx> {
10801080
/// Just as the `Matrix` starts with a single column, by the end of the algorithm, this has a single
10811081
/// column, which contains the patterns that are missing for the match to be exhaustive.
10821082
#[derive(Debug, Clone)]
1083-
struct WitnessMatrix<Cx: MatchCx>(Vec<WitnessStack<Cx>>);
1083+
struct WitnessMatrix<Cx: TypeCx>(Vec<WitnessStack<Cx>>);
10841084

1085-
impl<Cx: MatchCx> WitnessMatrix<Cx> {
1085+
impl<Cx: TypeCx> WitnessMatrix<Cx> {
10861086
/// New matrix with no witnesses.
10871087
fn empty() -> Self {
10881088
WitnessMatrix(vec![])
@@ -1174,7 +1174,7 @@ impl<Cx: MatchCx> WitnessMatrix<Cx> {
11741174
/// (using `apply_constructor` and by updating `row.useful` for each parent row).
11751175
/// This is all explained at the top of the file.
11761176
#[instrument(level = "debug", skip(mcx, is_top_level), ret)]
1177-
fn compute_exhaustiveness_and_usefulness<'a, 'p, Cx: MatchCx>(
1177+
fn compute_exhaustiveness_and_usefulness<'a, 'p, Cx: TypeCx>(
11781178
mcx: MatchCtxt<'a, 'p, Cx>,
11791179
matrix: &mut Matrix<'a, 'p, Cx>,
11801180
is_top_level: bool,
@@ -1283,7 +1283,7 @@ fn compute_exhaustiveness_and_usefulness<'a, 'p, Cx: MatchCx>(
12831283

12841284
/// Indicates whether or not a given arm is useful.
12851285
#[derive(Clone, Debug)]
1286-
pub enum Usefulness<'p, Cx: MatchCx> {
1286+
pub enum Usefulness<'p, Cx: TypeCx> {
12871287
/// The arm is useful. This additionally carries a set of or-pattern branches that have been
12881288
/// found to be redundant despite the overall arm being useful. Used only in the presence of
12891289
/// or-patterns, otherwise it stays empty.
@@ -1294,7 +1294,7 @@ pub enum Usefulness<'p, Cx: MatchCx> {
12941294
}
12951295

12961296
/// The output of checking a match for exhaustiveness and arm usefulness.
1297-
pub struct UsefulnessReport<'p, Cx: MatchCx> {
1297+
pub struct UsefulnessReport<'p, Cx: TypeCx> {
12981298
/// For each arm of the input, whether that arm is useful after the arms above it.
12991299
pub arm_usefulness: Vec<(MatchArm<'p, Cx>, Usefulness<'p, Cx>)>,
13001300
/// If the match is exhaustive, this is empty. If not, this contains witnesses for the lack of
@@ -1304,7 +1304,7 @@ pub struct UsefulnessReport<'p, Cx: MatchCx> {
13041304

13051305
/// Computes whether a match is exhaustive and which of its arms are useful.
13061306
#[instrument(skip(cx, arms), level = "debug")]
1307-
pub fn compute_match_usefulness<'p, Cx: MatchCx>(
1307+
pub fn compute_match_usefulness<'p, Cx: TypeCx>(
13081308
cx: MatchCtxt<'_, 'p, Cx>,
13091309
arms: &[MatchArm<'p, Cx>],
13101310
scrut_ty: Cx::Ty,

0 commit comments

Comments
 (0)