-
Notifications
You must be signed in to change notification settings - Fork 13.4k
rustc: Fix cstack lint for default methods. Closes #8753 #8796
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
Conversation
} | ||
|
||
trait A { | ||
#[fixed_stack_segment] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this actually be changed to a compile-fail test to ensure that it still fails in the situation that fixed_stack_segment
is omitted on a default method?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As in have both the positive and negative cases, ensuring that only the negative case has an error
@alexcrichton yes. done |
niko and I discussed the error here. This is probably a check-fast specific problem (which I am not sure I checked on my end before now, though I have a least duplicated the problem locally at this point), and it is not clear whether it is exposing an underlying resolve bug, or if the error is expected behavior and the test needs revision. Will poke a bit more. |
I can replicate the problem via For better or for worse: when I change the file like so, the problem goes away: Update: (there are two ways to solve this, and this top version follows the pattern set by existing tests more properly):
(Original but not-as-good patch follows):
This is presumably because Niko had claimed to me earlier that the So it seems like the potential fixes here are:
|
@brson: can you update your Pull Request with one of the diffs from my previous comment so that we can land it? |
@pnkfelix yes done |
New lint: [`derive_partial_eq_without_eq`] Introduces a new lint, [`derive_partial_eq_without_eq`]. See: rust-lang#1781 (doesn't close it though). changelog: add lint [`derive_partial_eq_without_eq`]
No description provided.