-
Notifications
You must be signed in to change notification settings - Fork 41
Check for changes in auto-impls of Send and Sync #48
Comments
On 2018-02-16, Aaron Hill wrote:
Once rust-lang/rust#47833 lands, it should be possible to make use of it to compute the bounds for auto-trait impls, and check them for backwards-incompatible changes.
It will probably be necessary to PR some minor adjustments to rustc (e.g. moving `AutoTraitFinder` from `librustdoc` to `librustc`), but all of the core logic already exists.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
#48
That's very exciting! I'll have a look, as this sounds very useful.
|
I've taken a look at the merged changes. Some observations:
|
@ibabushkin: Some refactoring of the code in In particular, check_bounds_error in |
Hm, a quick question regarding |
@ibabushkin: I think that mutable borrow may be completely unecessary - though I don't have a rustc workspace setup atm to check. It might have been necessary in an earlier iteration of the code, but it can probably be changed to an immutable borrow now. |
Once rust-lang/rust#47833 lands, it should be possible to make use of it to compute the bounds for auto-trait impls, and check them for backwards-incompatible changes.
It will probably be necessary to PR some minor adjustments to rustc (e.g. moving
AutoTraitFinder
fromlibrustdoc
tolibrustc
), but all of the core logic already exists.The text was updated successfully, but these errors were encountered: