We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f788f3 commit 7f13a4aCopy full SHA for 7f13a4a
src/librustc/ty/relate.rs
@@ -557,10 +557,9 @@ pub fn super_relate_consts<R: TypeRelation<'tcx>>(
557
x.val
558
};
559
560
- // Currently, the values that can be unified are those that
561
- // implement both `PartialEq` and `Eq`, corresponding to
562
- // `structural_match` types.
563
- // FIXME(const_generics): check for `structural_match` synthetic attribute.
+ // Currently, the values that can be unified are primitive types,
+ // and those that derive both `PartialEq` and `Eq`, corresponding
+ // to `structural_match` types.
564
let new_const_val = match (eagerly_eval(a), eagerly_eval(b)) {
565
(ConstValue::Infer(_), _) | (_, ConstValue::Infer(_)) => {
566
// The caller should handle these cases!
0 commit comments