sess: disable polymorphisation

This commit disables polymorphisation to resolve regressions related to
closures which inherit unused generic parameters and are then used in
casts or reflection.

Signed-off-by: David Wood <david@davidtw.co>
This commit is contained in:
David Wood 2020-07-22 15:03:56 +01:00
parent 90e941a974
commit f39ed207fe
No known key found for this signature in database
GPG key ID: 2592E76C87381FD9
23 changed files with 46 additions and 35 deletions

View file

@ -1,4 +1,5 @@
// build-fail
// compile-flags:-Zpolymorphize=on
#![feature(const_generics, rustc_attrs)]
//~^ WARN the feature `const_generics` is incomplete