bless tests part 1
This commit is contained in:
parent
74e7b5bd76
commit
b9886c6872
31 changed files with 370 additions and 394 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue