-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
macros: fix bug in collecting trait and impl items with derives. #44757
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
|
Nominating for backport because fixes a stable-to-beta regression (#43023). |
|
da99d8a to
7ba7021
Compare
|
@bors: r+ |
|
📌 Commit 7ba7021 has been approved by |
|
💔 Test failed - status-travis |
src/test/compile-fail/issue-43023.rs
Outdated
| struct S; | ||
|
|
||
| impl S { | ||
| #[derive(Debug)] //~ ERROR `derive` can be only be applied to items |
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.
Please update the error messages.
[00:55:08] ---- [compile-fail] compile-fail/issue-43023.rs stdout ----
[00:55:08]
[00:55:08] error: /checkout/src/test/compile-fail/issue-43023.rs:14: unexpected "error": '14:5: 14:21: `derive` may only be applied to structs, enums and unions'
[00:55:08]
[00:55:08] error: /checkout/src/test/compile-fail/issue-43023.rs:21: unexpected "error": '21:5: 21:21: `derive` may only be applied to structs, enums and unions'
[00:55:08]
[00:55:08] error: /checkout/src/test/compile-fail/issue-43023.rs:26: unexpected "error": '26:5: 26:21: `derive` may only be applied to structs, enums and unions'
[00:55:08]
[00:55:08] error: 3 unexpected errors found, 0 expected errors not found
7ba7021 to
8bc49e7
Compare
8bc49e7 to
375332c
Compare
|
@bors r=nrc |
|
📌 Commit 375332c has been approved by |
|
@bors: p=1 fixing a regression and beta-accepted |
|
☀️ Test successful - status-appveyor, status-travis |
|
Backporting to beta. |
Beta 20170928 Backports of: - Allow unused extern crate again #44825 - macros: fix bug in collecting trait and impl items with derives. #44757 - `--cap-lints allow` switches off `can_emit_warnings` #44627 - Update the libc submodule #44116 - limit and clear cache obligations opportunistically #44269 - clear out projection subobligations after they are processed #43999
Beta 20170928 Backports of: - Allow unused extern crate again #44825 - macros: fix bug in collecting trait and impl items with derives. #44757 - `--cap-lints allow` switches off `can_emit_warnings` #44627 - Update the libc submodule #44116 - limit and clear cache obligations opportunistically #44269 - clear out projection subobligations after they are processed #43999 - fix logic error in #44269's `prune_cache_value_obligations` #45065 - REVERTS #43543: Cleanup some remains of `hr_lifetime_in_assoc_type` compatibility lint:
Fixes #43023.
r? @nrc