about summary refs log tree commit diff
path: root/src/libstd/sys/wasm/stack_overflow.rs
diff options
context:
space:
mode:
authorAaron Hill <aa1ronham@gmail.com>2018-10-24 00:57:09 -0400
committerAaron Hill <aa1ronham@gmail.com>2018-11-28 12:27:11 -0500
commitf57247c48cb59a59dcfcb220251206064265479c (patch)
tree7362cb867659c1715c24a77d090f3d0ccac5c279 /src/libstd/sys/wasm/stack_overflow.rs
parentb68fc18c45350e1cdcd83cecf0f12e294e55af56 (diff)
downloadrust-f57247c48cb59a59dcfcb220251206064265479c.tar.gz
rust-f57247c48cb59a59dcfcb220251206064265479c.zip
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.
Diffstat (limited to 'src/libstd/sys/wasm/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions