Skip to content

Treat builtin bounds like all other kinds of trait matches. #18749

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

nikomatsakis
Copy link
Contributor

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

@nikomatsakis nikomatsakis force-pushed the builtin-bounds-like-other-traits branch from 7718b07 to cdb303b Compare November 7, 2014 23:13
@flaper87
Copy link
Contributor

Nice 🎉

@nikomatsakis nikomatsakis force-pushed the builtin-bounds-like-other-traits branch from 62ac290 to 112139f Compare November 11, 2014 05:03
@nikomatsakis nikomatsakis force-pushed the builtin-bounds-like-other-traits branch from 112139f to 0f0d21c Compare November 25, 2014 12:54
@steveklabnik
Copy link
Member

This now needs rebased.

… 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.
now don't print duplicate errors within one context, so I sometimes
had to break functions into two functions.
@nikomatsakis nikomatsakis force-pushed the builtin-bounds-like-other-traits branch from 0f0d21c to 931758c Compare December 3, 2014 01:18
bors added a commit that referenced this pull request Dec 3, 2014
…aits, 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
@bors bors closed this Dec 4, 2014
@bors bors merged commit 931758c into rust-lang:master Dec 4, 2014
@nikomatsakis nikomatsakis deleted the builtin-bounds-like-other-traits branch March 30, 2016 16:12
lnicola pushed a commit to lnicola/rust that referenced this pull request Jan 7, 2025
…-wait

minor: Break out of waiting for debugger on Windows using native debugger check API.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants