bless tests part 1

This commit is contained in:
Deadbeef 2024-06-25 08:36:40 +00:00
parent 74e7b5bd76
commit b9886c6872
31 changed files with 370 additions and 394 deletions

View file

@ -65,6 +65,10 @@ impl<'tcx> Bounds<'tcx> {
} else {
self.clauses.push(clause);
}
if !tcx.features().effects {
return;
}
// For `T: ~const Tr` or `T: const Tr`, we need to add an additional bound on the
// associated type of `<T as Tr>` and make sure that the effect is compatible.
if let Some(compat_val) = match (tcx.def_kind(defining_def_id), constness) {