-
Notifications
You must be signed in to change notification settings - Fork 173
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
Make gccrs recognize negative_impls #3002
Conversation
I think i got gccrs to recognize the feature negative_impl but I'm not sure how to make it so that when user do sth like this
it fails to compile instead of continuing with compilation because we haven't implemented them or if the user didn't do @P-E-P any pointers? |
@badumbatish You are in the right direction! There is a visitor in Do not forget to add some tests! At least one with the feature enabled and one without it. |
hmm i think i might be cooking something |
a7940b2
to
12535b7
Compare
hmm i got down the case where if a user attempts to do Also with the case that we did use I'm also not sure how this is relate to core mentioned in #2962, there seems to not have an enum state with "nightly" or sth for me to use on this |
the error is not exactly the same but that's okay - it erros out and that's what matters :D
we don't have a nightly and stable versions of the compiler at the moment, so you can just assume that everything is "nightly". so we handle having
|
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.
nice job!
12535b7
to
91c87f9
Compare
91c87f9
to
6d1c25a
Compare
Ill squash everything down to 1 commit after this rebase from master passes |
6d1c25a
to
1363b1b
Compare
@badumbatish Could you rewrite your commit message please ? |
1363b1b
to
3da6b5e
Compare
gcc/rust/ChangeLog: * checks/errors/rust-feature-gate.cc (FeatureGate::visit): make gccrs recognize negative_impls * checks/errors/rust-feature-gate.h: likewise. * checks/errors/rust-feature.cc (Feature::create): likewise. * checks/errors/rust-feature.h: likewise. gcc/testsuite/ChangeLog: * rust/compile/negative_impls.rs: New test. * rust/compile/negative_impls_2.rs: New test.
3da6b5e
to
6ab7b6e
Compare
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.
looks great! well done!
just a draft pr for #2962