Skip to content

Commit 4dcc5a0

Browse files
authoredJan 11, 2024
Rollup merge of #119715 - Nadrieril:graceful-type-error, r=compiler-errors
Exhaustiveness: abort on type error This adds an error path to exhaustiveness checking so that we abort instead of ICEing when encountering a stray `ty::Error`. Fixes #119493 Fixes #119778 r? `@compiler-errors`
2 parents b6ef8b6 + dee657f commit 4dcc5a0

File tree

9 files changed

+158
-39
lines changed

9 files changed

+158
-39
lines changed
 

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

+8-2
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,13 @@ impl<'p, 'tcx> MatchVisitor<'p, 'tcx> {
432432
}
433433

434434
let scrut_ty = scrut.ty;
435-
let report = analyze_match(&cx, &tarms, scrut_ty);
435+
let report = match analyze_match(&cx, &tarms, scrut_ty) {
436+
Ok(report) => report,
437+
Err(err) => {
438+
self.error = Err(err);
439+
return;
440+
}
441+
};
436442

437443
match source {
438444
// Don't report arm reachability of desugared `match $iter.into_iter() { iter => .. }`
@@ -546,7 +552,7 @@ impl<'p, 'tcx> MatchVisitor<'p, 'tcx> {
546552
let cx = self.new_cx(refutability, None, scrut, pat.span);
547553
let pat = self.lower_pattern(&cx, pat)?;
548554
let arms = [MatchArm { pat, arm_data: self.lint_level, has_guard: false }];
549-
let report = analyze_match(&cx, &arms, pat.ty().inner());
555+
let report = analyze_match(&cx, &arms, pat.ty().inner())?;
550556
Ok((cx, report))
551557
}
552558

‎compiler/rustc_pattern_analysis/src/lib.rs

+10-6
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ use std::fmt;
2424
use rustc_index::Idx;
2525
#[cfg(feature = "rustc")]
2626
use rustc_middle::ty::Ty;
27+
#[cfg(feature = "rustc")]
28+
use rustc_span::ErrorGuaranteed;
2729

2830
use crate::constructor::{Constructor, ConstructorSet};
2931
#[cfg(feature = "rustc")]
@@ -52,6 +54,8 @@ impl<'a, T: ?Sized> Captures<'a> for T {}
5254
pub trait TypeCx: Sized + fmt::Debug {
5355
/// The type of a pattern.
5456
type Ty: Copy + Clone + fmt::Debug; // FIXME: remove Copy
57+
/// Errors that can abort analysis.
58+
type Error: fmt::Debug;
5559
/// The index of an enum variant.
5660
type VariantIdx: Clone + Idx;
5761
/// A string literal
@@ -73,7 +77,7 @@ pub trait TypeCx: Sized + fmt::Debug {
7377
/// The set of all the constructors for `ty`.
7478
///
7579
/// This must follow the invariants of `ConstructorSet`
76-
fn ctors_for_ty(&self, ty: Self::Ty) -> ConstructorSet<Self>;
80+
fn ctors_for_ty(&self, ty: Self::Ty) -> Result<ConstructorSet<Self>, Self::Error>;
7781

7882
/// Best-effort `Debug` implementation.
7983
fn debug_pat(f: &mut fmt::Formatter<'_>, pat: &DeconstructedPat<'_, Self>) -> fmt::Result;
@@ -109,25 +113,25 @@ pub fn analyze_match<'p, 'tcx>(
109113
tycx: &RustcMatchCheckCtxt<'p, 'tcx>,
110114
arms: &[rustc::MatchArm<'p, 'tcx>],
111115
scrut_ty: Ty<'tcx>,
112-
) -> rustc::UsefulnessReport<'p, 'tcx> {
116+
) -> Result<rustc::UsefulnessReport<'p, 'tcx>, ErrorGuaranteed> {
113117
// Arena to store the extra wildcards we construct during analysis.
114118
let wildcard_arena = tycx.pattern_arena;
115119
let scrut_ty = tycx.reveal_opaque_ty(scrut_ty);
116120
let scrut_validity = ValidityConstraint::from_bool(tycx.known_valid_scrutinee);
117121
let cx = MatchCtxt { tycx, wildcard_arena };
118122

119-
let report = compute_match_usefulness(cx, arms, scrut_ty, scrut_validity);
123+
let report = compute_match_usefulness(cx, arms, scrut_ty, scrut_validity)?;
120124

121125
let pat_column = PatternColumn::new(arms);
122126

123127
// Lint on ranges that overlap on their endpoints, which is likely a mistake.
124-
lint_overlapping_range_endpoints(cx, &pat_column);
128+
lint_overlapping_range_endpoints(cx, &pat_column)?;
125129

126130
// Run the non_exhaustive_omitted_patterns lint. Only run on refutable patterns to avoid hitting
127131
// `if let`s. Only run if the match is exhaustive otherwise the error is redundant.
128132
if tycx.refutable && report.non_exhaustiveness_witnesses.is_empty() {
129-
lint_nonexhaustive_missing_variants(cx, arms, &pat_column, scrut_ty)
133+
lint_nonexhaustive_missing_variants(cx, arms, &pat_column, scrut_ty)?;
130134
}
131135

132-
report
136+
Ok(report)
133137
}

‎compiler/rustc_pattern_analysis/src/lints.rs

+21-15
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use rustc_data_structures::captures::Captures;
44
use rustc_middle::ty;
55
use rustc_session::lint;
66
use rustc_session::lint::builtin::NON_EXHAUSTIVE_OMITTED_PATTERNS;
7-
use rustc_span::Span;
7+
use rustc_span::{ErrorGuaranteed, Span};
88

99
use crate::constructor::{IntRange, MaybeInfiniteInt};
1010
use crate::errors::{
@@ -52,9 +52,13 @@ impl<'p, 'tcx> PatternColumn<'p, 'tcx> {
5252
}
5353

5454
/// Do constructor splitting on the constructors of the column.
55-
fn analyze_ctors(&self, pcx: &PlaceCtxt<'_, 'p, 'tcx>) -> SplitConstructorSet<'p, 'tcx> {
55+
fn analyze_ctors(
56+
&self,
57+
pcx: &PlaceCtxt<'_, 'p, 'tcx>,
58+
) -> Result<SplitConstructorSet<'p, 'tcx>, ErrorGuaranteed> {
5659
let column_ctors = self.patterns.iter().map(|p| p.ctor());
57-
pcx.ctors_for_ty().split(pcx, column_ctors)
60+
let ctors_for_ty = &pcx.ctors_for_ty()?;
61+
Ok(ctors_for_ty.split(pcx, column_ctors))
5862
}
5963

6064
fn iter(&self) -> impl Iterator<Item = &'p DeconstructedPat<'p, 'tcx>> + Captures<'_> {
@@ -110,18 +114,18 @@ impl<'p, 'tcx> PatternColumn<'p, 'tcx> {
110114
fn collect_nonexhaustive_missing_variants<'a, 'p, 'tcx>(
111115
cx: MatchCtxt<'a, 'p, 'tcx>,
112116
column: &PatternColumn<'p, 'tcx>,
113-
) -> Vec<WitnessPat<'p, 'tcx>> {
117+
) -> Result<Vec<WitnessPat<'p, 'tcx>>, ErrorGuaranteed> {
114118
let Some(ty) = column.head_ty() else {
115-
return Vec::new();
119+
return Ok(Vec::new());
116120
};
117121
let pcx = &PlaceCtxt::new_dummy(cx, ty);
118122

119-
let set = column.analyze_ctors(pcx);
123+
let set = column.analyze_ctors(pcx)?;
120124
if set.present.is_empty() {
121125
// We can't consistently handle the case where no constructors are present (since this would
122126
// require digging deep through any type in case there's a non_exhaustive enum somewhere),
123127
// so for consistency we refuse to handle the top-level case, where we could handle it.
124-
return vec![];
128+
return Ok(Vec::new());
125129
}
126130

127131
let mut witnesses = Vec::new();
@@ -141,7 +145,7 @@ fn collect_nonexhaustive_missing_variants<'a, 'p, 'tcx>(
141145
let wild_pat = WitnessPat::wild_from_ctor(pcx, ctor);
142146
for (i, col_i) in specialized_columns.iter().enumerate() {
143147
// Compute witnesses for each column.
144-
let wits_for_col_i = collect_nonexhaustive_missing_variants(cx, col_i);
148+
let wits_for_col_i = collect_nonexhaustive_missing_variants(cx, col_i)?;
145149
// For each witness, we build a new pattern in the shape of `ctor(_, _, wit, _, _)`,
146150
// adding enough wildcards to match `arity`.
147151
for wit in wits_for_col_i {
@@ -151,21 +155,21 @@ fn collect_nonexhaustive_missing_variants<'a, 'p, 'tcx>(
151155
}
152156
}
153157
}
154-
witnesses
158+
Ok(witnesses)
155159
}
156160

157161
pub(crate) fn lint_nonexhaustive_missing_variants<'a, 'p, 'tcx>(
158162
cx: MatchCtxt<'a, 'p, 'tcx>,
159163
arms: &[MatchArm<'p, 'tcx>],
160164
pat_column: &PatternColumn<'p, 'tcx>,
161165
scrut_ty: RevealedTy<'tcx>,
162-
) {
166+
) -> Result<(), ErrorGuaranteed> {
163167
let rcx: &RustcMatchCheckCtxt<'_, '_> = cx.tycx;
164168
if !matches!(
165169
rcx.tcx.lint_level_at_node(NON_EXHAUSTIVE_OMITTED_PATTERNS, rcx.match_lint_level).0,
166170
rustc_session::lint::Level::Allow
167171
) {
168-
let witnesses = collect_nonexhaustive_missing_variants(cx, pat_column);
172+
let witnesses = collect_nonexhaustive_missing_variants(cx, pat_column)?;
169173
if !witnesses.is_empty() {
170174
// Report that a match of a `non_exhaustive` enum marked with `non_exhaustive_omitted_patterns`
171175
// is not exhaustive enough.
@@ -204,21 +208,22 @@ pub(crate) fn lint_nonexhaustive_missing_variants<'a, 'p, 'tcx>(
204208
}
205209
}
206210
}
211+
Ok(())
207212
}
208213

209214
/// Traverse the patterns to warn the user about ranges that overlap on their endpoints.
210215
#[instrument(level = "debug", skip(cx))]
211216
pub(crate) fn lint_overlapping_range_endpoints<'a, 'p, 'tcx>(
212217
cx: MatchCtxt<'a, 'p, 'tcx>,
213218
column: &PatternColumn<'p, 'tcx>,
214-
) {
219+
) -> Result<(), ErrorGuaranteed> {
215220
let Some(ty) = column.head_ty() else {
216-
return;
221+
return Ok(());
217222
};
218223
let pcx = &PlaceCtxt::new_dummy(cx, ty);
219224
let rcx: &RustcMatchCheckCtxt<'_, '_> = cx.tycx;
220225

221-
let set = column.analyze_ctors(pcx);
226+
let set = column.analyze_ctors(pcx)?;
222227

223228
if matches!(ty.kind(), ty::Char | ty::Int(_) | ty::Uint(_)) {
224229
let emit_lint = |overlap: &IntRange, this_span: Span, overlapped_spans: &[Span]| {
@@ -275,8 +280,9 @@ pub(crate) fn lint_overlapping_range_endpoints<'a, 'p, 'tcx>(
275280
// Recurse into the fields.
276281
for ctor in set.present {
277282
for col in column.specialize(pcx, &ctor) {
278-
lint_overlapping_range_endpoints(cx, &col);
283+
lint_overlapping_range_endpoints(cx, &col)?;
279284
}
280285
}
281286
}
287+
Ok(())
282288
}

‎compiler/rustc_pattern_analysis/src/rustc.rs

+15-4
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ use rustc_middle::mir::interpret::Scalar;
1212
use rustc_middle::mir::{self, Const};
1313
use rustc_middle::thir::{FieldPat, Pat, PatKind, PatRange, PatRangeBoundary};
1414
use rustc_middle::ty::layout::IntegerExt;
15+
use rustc_middle::ty::TypeVisitableExt;
1516
use rustc_middle::ty::{self, OpaqueTypeKey, Ty, TyCtxt, VariantDef};
17+
use rustc_span::ErrorGuaranteed;
1618
use rustc_span::{Span, DUMMY_SP};
1719
use rustc_target::abi::{FieldIdx, Integer, VariantIdx, FIRST_VARIANT};
1820
use smallvec::SmallVec;
@@ -302,7 +304,10 @@ impl<'p, 'tcx> RustcMatchCheckCtxt<'p, 'tcx> {
302304
///
303305
/// See [`crate::constructor`] for considerations of emptiness.
304306
#[instrument(level = "debug", skip(self), ret)]
305-
pub fn ctors_for_ty(&self, ty: RevealedTy<'tcx>) -> ConstructorSet<'p, 'tcx> {
307+
pub fn ctors_for_ty(
308+
&self,
309+
ty: RevealedTy<'tcx>,
310+
) -> Result<ConstructorSet<'p, 'tcx>, ErrorGuaranteed> {
306311
let cx = self;
307312
let make_uint_range = |start, end| {
308313
IntRange::from_range(
@@ -311,9 +316,11 @@ impl<'p, 'tcx> RustcMatchCheckCtxt<'p, 'tcx> {
311316
RangeEnd::Included,
312317
)
313318
};
319+
// Abort on type error.
320+
ty.error_reported()?;
314321
// This determines the set of all possible constructors for the type `ty`. For numbers,
315322
// arrays and slices we use ranges and variable-length slices when appropriate.
316-
match ty.kind() {
323+
Ok(match ty.kind() {
317324
ty::Bool => ConstructorSet::Bool,
318325
ty::Char => {
319326
// The valid Unicode Scalar Value ranges.
@@ -423,7 +430,7 @@ impl<'p, 'tcx> RustcMatchCheckCtxt<'p, 'tcx> {
423430
ty::CoroutineWitness(_, _) | ty::Bound(_, _) | ty::Placeholder(_) | ty::Infer(_) => {
424431
bug!("Encountered unexpected type in `ConstructorSet::for_ty`: {ty:?}")
425432
}
426-
}
433+
})
427434
}
428435

429436
pub(crate) fn lower_pat_range_bdy(
@@ -944,6 +951,7 @@ impl<'p, 'tcx> RustcMatchCheckCtxt<'p, 'tcx> {
944951

945952
impl<'p, 'tcx> TypeCx for RustcMatchCheckCtxt<'p, 'tcx> {
946953
type Ty = RevealedTy<'tcx>;
954+
type Error = ErrorGuaranteed;
947955
type VariantIdx = VariantIdx;
948956
type StrLit = Const<'tcx>;
949957
type ArmData = HirId;
@@ -963,7 +971,10 @@ impl<'p, 'tcx> TypeCx for RustcMatchCheckCtxt<'p, 'tcx> {
963971
) -> &[Self::Ty] {
964972
self.ctor_sub_tys(ctor, ty)
965973
}
966-
fn ctors_for_ty(&self, ty: Self::Ty) -> crate::constructor::ConstructorSet<Self> {
974+
fn ctors_for_ty(
975+
&self,
976+
ty: Self::Ty,
977+
) -> Result<crate::constructor::ConstructorSet<Self>, Self::Error> {
967978
self.ctors_for_ty(ty)
968979
}
969980

‎compiler/rustc_pattern_analysis/src/usefulness.rs

+13-12
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ impl<'a, 'p, Cx: TypeCx> PlaceCtxt<'a, 'p, Cx> {
753753
pub(crate) fn ctor_sub_tys(&self, ctor: &Constructor<Cx>) -> &[Cx::Ty] {
754754
self.mcx.tycx.ctor_sub_tys(ctor, self.ty)
755755
}
756-
pub(crate) fn ctors_for_ty(&self) -> ConstructorSet<Cx> {
756+
pub(crate) fn ctors_for_ty(&self) -> Result<ConstructorSet<Cx>, Cx::Error> {
757757
self.mcx.tycx.ctors_for_ty(self.ty)
758758
}
759759
}
@@ -1341,14 +1341,14 @@ fn compute_exhaustiveness_and_usefulness<'a, 'p, Cx: TypeCx>(
13411341
mcx: MatchCtxt<'a, 'p, Cx>,
13421342
matrix: &mut Matrix<'p, Cx>,
13431343
is_top_level: bool,
1344-
) -> WitnessMatrix<Cx> {
1344+
) -> Result<WitnessMatrix<Cx>, Cx::Error> {
13451345
debug_assert!(matrix.rows().all(|r| r.len() == matrix.column_count()));
13461346

13471347
if !matrix.wildcard_row_is_relevant && matrix.rows().all(|r| !r.pats.relevant) {
13481348
// Here we know that nothing will contribute further to exhaustiveness or usefulness. This
13491349
// is purely an optimization: skipping this check doesn't affect correctness. See the top of
13501350
// the file for details.
1351-
return WitnessMatrix::empty();
1351+
return Ok(WitnessMatrix::empty());
13521352
}
13531353

13541354
let Some(ty) = matrix.head_ty() else {
@@ -1360,16 +1360,16 @@ fn compute_exhaustiveness_and_usefulness<'a, 'p, Cx: TypeCx>(
13601360
// When there's an unguarded row, the match is exhaustive and any subsequent row is not
13611361
// useful.
13621362
if !row.is_under_guard {
1363-
return WitnessMatrix::empty();
1363+
return Ok(WitnessMatrix::empty());
13641364
}
13651365
}
13661366
// No (unguarded) rows, so the match is not exhaustive. We return a new witness unless
13671367
// irrelevant.
13681368
return if matrix.wildcard_row_is_relevant {
1369-
WitnessMatrix::unit_witness()
1369+
Ok(WitnessMatrix::unit_witness())
13701370
} else {
13711371
// We choose to not report anything here; see at the top for details.
1372-
WitnessMatrix::empty()
1372+
Ok(WitnessMatrix::empty())
13731373
};
13741374
};
13751375

@@ -1383,7 +1383,7 @@ fn compute_exhaustiveness_and_usefulness<'a, 'p, Cx: TypeCx>(
13831383

13841384
// Analyze the constructors present in this column.
13851385
let ctors = matrix.heads().map(|p| p.ctor());
1386-
let ctors_for_ty = pcx.ctors_for_ty();
1386+
let ctors_for_ty = pcx.ctors_for_ty()?;
13871387
let is_integers = matches!(ctors_for_ty, ConstructorSet::Integers { .. }); // For diagnostics.
13881388
let split_set = ctors_for_ty.split(pcx, ctors);
13891389
let all_missing = split_set.present.is_empty();
@@ -1422,7 +1422,7 @@ fn compute_exhaustiveness_and_usefulness<'a, 'p, Cx: TypeCx>(
14221422
let mut spec_matrix = matrix.specialize_constructor(pcx, &ctor, ctor_is_relevant);
14231423
let mut witnesses = ensure_sufficient_stack(|| {
14241424
compute_exhaustiveness_and_usefulness(mcx, &mut spec_matrix, false)
1425-
});
1425+
})?;
14261426

14271427
// Transform witnesses for `spec_matrix` into witnesses for `matrix`.
14281428
witnesses.apply_constructor(pcx, &missing_ctors, &ctor, report_individual_missing_ctors);
@@ -1443,7 +1443,7 @@ fn compute_exhaustiveness_and_usefulness<'a, 'p, Cx: TypeCx>(
14431443
}
14441444
}
14451445

1446-
ret
1446+
Ok(ret)
14471447
}
14481448

14491449
/// Indicates whether or not a given arm is useful.
@@ -1474,9 +1474,10 @@ pub fn compute_match_usefulness<'p, Cx: TypeCx>(
14741474
arms: &[MatchArm<'p, Cx>],
14751475
scrut_ty: Cx::Ty,
14761476
scrut_validity: ValidityConstraint,
1477-
) -> UsefulnessReport<'p, Cx> {
1477+
) -> Result<UsefulnessReport<'p, Cx>, Cx::Error> {
14781478
let mut matrix = Matrix::new(arms, scrut_ty, scrut_validity);
1479-
let non_exhaustiveness_witnesses = compute_exhaustiveness_and_usefulness(cx, &mut matrix, true);
1479+
let non_exhaustiveness_witnesses =
1480+
compute_exhaustiveness_and_usefulness(cx, &mut matrix, true)?;
14801481

14811482
let non_exhaustiveness_witnesses: Vec<_> = non_exhaustiveness_witnesses.single_column();
14821483
let arm_usefulness: Vec<_> = arms
@@ -1493,5 +1494,5 @@ pub fn compute_match_usefulness<'p, Cx: TypeCx>(
14931494
(arm, usefulness)
14941495
})
14951496
.collect();
1496-
UsefulnessReport { arm_usefulness, non_exhaustiveness_witnesses }
1497+
Ok(UsefulnessReport { arm_usefulness, non_exhaustiveness_witnesses })
14971498
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
fn main() {}
2+
3+
fn foo() {
4+
#[derive(Copy, Clone)]
5+
struct Foo(NonExistent);
6+
//~^ ERROR cannot find type
7+
//~| ERROR cannot find type
8+
9+
type U = impl Copy;
10+
//~^ ERROR `impl Trait` in type aliases is unstable
11+
let foo: U = Foo(());
12+
let Foo(()) = foo;
13+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
error[E0412]: cannot find type `NonExistent` in this scope
2+
--> $DIR/issue-119493-type-error-ice.rs:5:16
3+
|
4+
LL | struct Foo(NonExistent);
5+
| ^^^^^^^^^^^ not found in this scope
6+
7+
error[E0412]: cannot find type `NonExistent` in this scope
8+
--> $DIR/issue-119493-type-error-ice.rs:5:16
9+
|
10+
LL | struct Foo(NonExistent);
11+
| ^^^^^^^^^^^ not found in this scope
12+
|
13+
help: you might be missing a type parameter
14+
|
15+
LL | struct Foo<NonExistent>(NonExistent);
16+
| +++++++++++++
17+
18+
error[E0658]: `impl Trait` in type aliases is unstable
19+
--> $DIR/issue-119493-type-error-ice.rs:9:14
20+
|
21+
LL | type U = impl Copy;
22+
| ^^^^^^^^^
23+
|
24+
= note: see issue #63063 <https://github.com/rust-lang/rust/issues/63063> for more information
25+
= help: add `#![feature(type_alias_impl_trait)]` to the crate attributes to enable
26+
27+
error: aborting due to 3 previous errors
28+
29+
Some errors have detailed explanations: E0412, E0658.
30+
For more information about an error, try `rustc --explain E0412`.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
fn main() {}
2+
3+
fn foo() {
4+
#[derive(Copy, Clone)]
5+
struct Foo([u8; S]);
6+
//~^ ERROR cannot find value `S`
7+
//~| ERROR cannot find value `S`
8+
9+
type U = impl Copy;
10+
//~^ ERROR `impl Trait` in type aliases is unstable
11+
let foo: U = Foo(());
12+
let Foo(()) = foo;
13+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
error[E0425]: cannot find value `S` in this scope
2+
--> $DIR/issue-119778-type-error-ice.rs:5:21
3+
|
4+
LL | struct Foo([u8; S]);
5+
| ^ not found in this scope
6+
|
7+
help: you might be missing a const parameter
8+
|
9+
LL | struct Foo<const S: /* Type */>([u8; S]);
10+
| +++++++++++++++++++++
11+
12+
error[E0425]: cannot find value `S` in this scope
13+
--> $DIR/issue-119778-type-error-ice.rs:5:21
14+
|
15+
LL | struct Foo([u8; S]);
16+
| ^ not found in this scope
17+
|
18+
help: you might be missing a const parameter
19+
|
20+
LL | struct Foo<const S: /* Type */>([u8; S]);
21+
| +++++++++++++++++++++
22+
23+
error[E0658]: `impl Trait` in type aliases is unstable
24+
--> $DIR/issue-119778-type-error-ice.rs:9:14
25+
|
26+
LL | type U = impl Copy;
27+
| ^^^^^^^^^
28+
|
29+
= note: see issue #63063 <https://github.com/rust-lang/rust/issues/63063> for more information
30+
= help: add `#![feature(type_alias_impl_trait)]` to the crate attributes to enable
31+
32+
error: aborting due to 3 previous errors
33+
34+
Some errors have detailed explanations: E0425, E0658.
35+
For more information about an error, try `rustc --explain E0425`.

0 commit comments

Comments
 (0)
Please sign in to comment.