Check representability in adt_sized_constraint
This commit is contained in:
parent
0265a3e93b
commit
d933092dc5
15 changed files with 50 additions and 91 deletions
|
@ -613,16 +613,8 @@ rustc_queries! {
|
|||
separate_provide_extern
|
||||
}
|
||||
|
||||
// The cycle error here should be reported as an error by `check_representable`.
|
||||
// We consider the type as Sized in the meanwhile to avoid
|
||||
// further errors (done in impl Value for AdtSizedConstraint).
|
||||
// Use `cycle_delay_bug` to delay the cycle error here to be emitted later
|
||||
// in case we accidentally otherwise don't emit an error.
|
||||
query adt_sized_constraint(
|
||||
key: DefId
|
||||
) -> AdtSizedConstraint<'tcx> {
|
||||
query adt_sized_constraint(key: DefId) -> &'tcx [Ty<'tcx>] {
|
||||
desc { |tcx| "computing `Sized` constraints for `{}`", tcx.def_path_str(key) }
|
||||
cycle_delay_bug
|
||||
}
|
||||
|
||||
query adt_dtorck_constraint(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue