rust/src/test
Aaron Hill f57247c48c
Ensure that Rusdoc discovers all necessary auto trait bounds
Fixes #50159

This commit makes several improvements to AutoTraitFinder:

* Call infcx.resolve_type_vars_if_possible before processing new
predicates. This ensures that we eliminate inference variables wherever
possible.
* Process all nested obligations we get from a vtable, not just ones
with depth=1.
  * The 'depth=1' check was a hack to work around issues processing
certain predicates. The other changes in this commit allow us to
properly process all predicates that we encounter, so the check is no
longer necessary,
* Ensure that we only display predicates *without* inference variables
to the user, and only attempt to unify predicates that *have* an
inference variable as their type.

Additionally, the internal helper method is_of_param now operates
directly on a type, rather than taking a Substs. This allows us to use
the 'self_ty' method, rather than directly dealing with Substs.
2018-11-28 12:27:11 -05:00
..
auxiliary
codegen Fix invalid bitcast taking bool out of a union represented as a scalar 2018-11-20 12:20:05 +01:00
codegen-units Don't auto-inline const fn 2018-11-17 17:50:37 +01:00
compile-fail Reword and fix test 2018-11-22 14:14:27 -08:00
compile-fail-fulldeps Update TypedArena tests 2018-10-19 14:34:44 +02:00
debuginfo Rollup merge of #56144 - tromey:Bug-55771-btreemap, r=alexcrichton 2018-11-25 17:05:04 +01:00
incremental Fix tests and assertions; add some comments 2018-10-26 09:50:51 +13:00
incremental-fulldeps Ignore new test on Windows 2018-09-21 10:05:23 -07:00
mir-opt Simplify MIR drop generation 2018-11-18 12:29:44 +00:00
pretty abolish ICE when pretty-printing async block 2018-10-02 23:02:51 -07:00
run-fail Fix two run-fail tests for asmjs 2018-11-04 18:50:57 +01:00
run-fail-fulldeps
run-make Try to make top-level Cargo.toml work without __CARGO_TEST_ROOT. 2018-11-25 23:13:58 +02:00
run-make-fulldeps Correct alignment of atomic types and (re)add Atomic{I,U}128 2018-10-27 13:47:11 +03:00
run-pass Rollup merge of #56207 - SimonSapin:int_to_from_bytes, r=nagisa 2018-11-25 17:05:10 +01:00
run-pass-fulldeps Fix proc-macro test after internal API change 2018-11-23 15:37:31 -08:00
run-pass-valgrind Remove license headers from unsized-locals tests. 2018-10-24 23:27:17 +09:00
rustdoc Ensure that Rusdoc discovers all necessary auto trait bounds 2018-11-28 12:27:11 -05:00
rustdoc-js Remove outdated rustdoc PinBox tests 2018-09-18 01:42:27 -07:00
rustdoc-ui Auto merge of #53586 - eddyb:top-lock, r=alexcrichton 2018-11-22 15:54:10 +00:00
rustfix
ui Auto merge of #56264 - petrochenkov:typonly, r=nikomatsakis 2018-11-27 19:04:44 +00:00
ui-fulldeps resolve: Suggest crate:: for resolving ambiguities when appropriate 2018-11-27 00:34:25 +03:00
COMPILER_TESTS.md