We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b93c9a7 + e859425 commit aa38483Copy full SHA for aa38483
compiler/rustc_middle/src/ty/fast_reject.rs
@@ -384,14 +384,7 @@ impl DeepRejectCtxt {
384
// they might unify with any value.
385
ty::ConstKind::Unevaluated(_) | ty::ConstKind::Error(_) => true,
386
ty::ConstKind::Value(obl) => match k {
387
- ty::ConstKind::Value(imp) => {
388
- // FIXME(valtrees): Once we have valtrees, we can just
389
- // compare them directly here.
390
- match (obl.try_to_scalar_int(), imp.try_to_scalar_int()) {
391
- (Some(obl), Some(imp)) => obl == imp,
392
- _ => true,
393
- }
394
+ ty::ConstKind::Value(imp) => obl == imp,
395
_ => true,
396
},
397
0 commit comments