]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #18749 : nikomatsakis/rust/builtin-bounds-like-other-traits, r=pcwalton
authorbors <bors@rust-lang.org>
Wed, 3 Dec 2014 22:57:40 +0000 (22:57 +0000)
committerbors <bors@rust-lang.org>
Wed, 3 Dec 2014 22:57:40 +0000 (22:57 +0000)
Treat builtin bounds like all other kinds of trait matches. Introduce a simple hashset in the fulfillment context to catch cases where we register the exact same obligation twice. This helps prevent duplicate error reports but also handles the recursive obligations created by builtin bounds.

r? @pcwalton
cc @FlaPer87


Trivial merge