]> git.lizzy.rs Git - rust.git/commit
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)
commitdaa0745886c2382c37d5d345f4c5b1b8f7b9a387
treed5cfba1aad65a35c42d8563a75df82901e66eaf1
parentdbc379a66eae8504b663b0032da518595335d872
parent931758c88a3d6deb95d55ef30fba71144815009e
auto merge of #18749 : nikomatsakis/rust/builtin-bounds-like-other-traits, r=pcwalton

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