Repository navigation
Conversation
There was a problem hiding this comment.
Although, I expect this to break with the opt-in work. Would you mind adding a FIXME(#13231) so that I remember to update this code once the new opt-in work is done?
|
This looks quite good. The fix will have to be updated by the opt-in bound traits work. |
There was a problem hiding this comment.
Could you please extend this test for other built-in bounds too?
There was a problem hiding this comment.
Done as well. I've also added a couple of positive test cases - to make sure opt-in changes don't break them.
There wasn't a check for builtin bounds when looking up vtables, only for trait bounds. This led to types sometimes implementing traits they shouldn't have been able to. Closes #10751
|
This is now failing for me because of some DST changes. Considering that opt-in built-in traits are probably just around the corner now, i'm closing this for now and will re-open with a rebase when opt-in stuff lands (if these changes will still be needed then). |
Move reference imports filtering into to_proto layer Follow up to rust-lang/rust-analyzer#13186
There wasn't a check for builtin bounds when looking up vtables, only for trait bounds. This led to types sometimes implementing traits they shouldn't have been able to.
Closes #10751