Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign up[WIP] Check more things for well-formedness #25701
Conversation
rust-highfive
assigned
nrc
May 22, 2015
This comment has been minimized.
This comment has been minimized.
|
r? @nrc (rust_highfive has picked a reviewer for you, use r? to override) |
rust-highfive
assigned
nikomatsakis
and unassigned
nrc
May 22, 2015
arielb1
changed the title
[WIP] wf improvements
[WIP] Make the well-formedness check check more rules
May 22, 2015
arielb1
added some commits
May 22, 2015
arielb1
force-pushed the
arielb1:fix-wf
branch
from
2a8a289
to
9d2b640
May 23, 2015
arielb1
changed the title
[WIP] Make the well-formedness check check more rules
Check more things for well-formedness
May 23, 2015
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
Hmm, I think this PR deserves a bit of thought. First, I've never been happy with the Second, I do think we should consider just when/where to enforce WF and trait requirements (and where to infer region relationships). The current policy is that we enforce all WF/trait requirements "everywhere" except that it is haphazardly enforced; but it's not totally clear to me that this is the best policy. Certainly the changes here seem ergonomically costly. I have to mull this a bit to form my opinion. (Note that enforcing WF in struct definitions, for example, was done deliberately in order to allow us to obviate things like In any case, certainly this change is breaking enough that we would want to start considering the steps and mitigation measures from (pending) RFC rust-lang/rfcs#1122. |
This comment has been minimized.
This comment has been minimized.
|
ps @arielb1 just to be clear, thanks very much for the PR! I'm not intending those previous comments as a critique of the PR per se, just pointing out that we want to think about these changes and approach them the right way. |
arielb1
changed the title
Check more things for well-formedness
[WIP] Check more things for well-formedness
Jun 2, 2015
This comment has been minimized.
This comment has been minimized.
|
@nikomatsakis I think it would be good to clean or clarify the relationship between |
This comment has been minimized.
This comment has been minimized.
|
Closing due to inactivity, but feel free to reopen with a rebase! |
arielb1 commentedMay 22, 2015
Makes wf check more bounds (hopefully all of them).
Fixes #21748
Fixes #25692
Fixes #25388
Because it makes the rules stricter, this is technically a
[breaking-change]