Skip to content

Commit a41ac9e

Browse files
committed
refactor: make the match exhaustive
1 parent 1716d95 commit a41ac9e

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_trait_selection/src/traits

1 file changed

+1
-1
lines changed

compiler/rustc_trait_selection/src/traits/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ pub fn try_evaluate_const<'tcx>(
618618

619619
(args, typing_env)
620620
}
621-
_ => {
621+
Some(ty::AnonConstKind::MCG) | Some(ty::AnonConstKind::NonTypeSystem) | None => {
622622
// We are only dealing with "truly" generic/uninferred constants here:
623623
// - GCEConsts have been handled separately
624624
// - Repeat expr count back compat consts have also been handled separately

0 commit comments

Comments
 (0)