Improve needs_drop query

* Handle cycles in `needs_drop` correctly
* Normalize types when computing `needs_drop`
* Move queries from rustc to rustc_ty
This commit is contained in:
Matthew Jasper 2020-01-30 20:28:16 +00:00
parent 39733223fc
commit d1965216a3
10 changed files with 304 additions and 153 deletions

View file

@ -1,3 +1,5 @@
// ignore-test: This now ICEs again.
// build-pass
#![feature(type_alias_impl_trait)]