Christopher Vittal
b276429734
Disallow all impl Trait within Fn trait sugar
...
We already disallowed them to be in the arg list, such as
Fn(impl Debug), but now we disallow Fn() -> impl Debug.
Also remove the ImplTraitContext argument from the function
lower_parenthesized_parameter_data as it is now unused.
Comment out part of test run-pass/impl-trait/xcrate.rs that now fails.
2017-11-15 15:46:01 -05:00
Niko Matsakis
2786ea662d
some tests featuring multiple bounds, other errors
2017-11-15 15:46:01 -05:00
Niko Matsakis
9d71bf6d55
add some more positive tests
...
It'd be good to have a positive test for each case where it is
allowed, I should think.
2017-11-15 15:46:01 -05:00
Niko Matsakis
6f9fb91033
rename equality-universal to a more extensible naming scheme
2017-11-15 15:46:01 -05:00
Christopher Vittal
06dff80061
Add/Modify tests for argument position impl Trait
2017-11-15 15:46:01 -05:00
Michael Woerister
f2df18579b
Mark closures return via impl-trait as reachable.
2017-08-14 12:04:52 +02:00
Simon Sapin
de4afc6797
Implement O(1)-time Iterator::nth for Range*
2017-07-08 08:55:55 +02:00
Eduard-Mihai Burtescu
ba11640179
rustc_typeck: hook up collect and item/body check to on-demand.
2017-02-25 18:35:25 +02:00
Eduard-Mihai Burtescu
36d33d6b71
rustc_privacy: visit Ty instead of HIR types in EmbargoVisitor.
2016-11-28 05:09:28 +02:00
Nick Cameron
9bc6d26092
Stabilise ?
...
cc [`?` tracking issue](https://github.com/rust-lang/rust/issues/31436 )
2016-10-12 08:40:22 +13:00
Eduard Burtescu
23f0494114
test: add more extensive tests for impl Trait.
2016-08-12 06:46:31 +03:00
Eduard Burtescu
08bf9f69b9
typeck: leak auto trait obligations through impl Trait.
2016-08-12 06:46:31 +03:00
Eduard Burtescu
d92e594c38
typeck: record impl Trait concrete resolutions.
2016-08-12 06:43:34 +03:00