]> git.lizzy.rs Git - rust.git/commit
Treat builtin bounds like all other kinds of trait matches. Introduce a simple hashse...
authorNiko Matsakis <niko@alum.mit.edu>
Fri, 7 Nov 2014 21:14:32 +0000 (16:14 -0500)
committerNiko Matsakis <niko@alum.mit.edu>
Wed, 3 Dec 2014 00:05:14 +0000 (19:05 -0500)
commitd85ff16173b54a1aa813eabb411c45c28ffcb66d
tree1f6de482ed7c6d579650a6fe114adae3d6bb2593
parent3a325c666d2cb7e297bf3057ff2442f96a79428b
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.
src/librustc/middle/traits/fulfill.rs
src/librustc/middle/traits/select.rs