Skip to content
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

Check attribute usage #28650

Merged
merged 2 commits into from Oct 2, 2015

Conversation

Projects
None yet
8 participants
@sanxiyn
Copy link
Member

sanxiyn commented Sep 25, 2015

This is technically a [breaking-change].

Fix #2809.
Fix #22746.

@rust-highfive

This comment has been minimized.

Copy link
Collaborator

rust-highfive commented Sep 25, 2015

r? @arielb1

(rust_highfive has picked a reviewer for you, use r? to override)

@sanxiyn sanxiyn force-pushed the sanxiyn:attr-usage branch 2 times, most recently from ab80e64 to fb22683 Sep 25, 2015

@alexcrichton

This comment has been minimized.

Copy link
Member

alexcrichton commented Sep 25, 2015

r? @nrc

@rust-highfive rust-highfive assigned nrc and unassigned arielb1 Sep 25, 2015

@alexcrichton

This comment has been minimized.

Copy link
Member

alexcrichton commented Sep 25, 2015

Starting a crater build to evaluate the impact

@alexcrichton

This comment has been minimized.

Copy link
Member

alexcrichton commented Sep 25, 2015

Looks like there's only one regression, so should be easy to send a PR for!

@nagisa

This comment has been minimized.

Copy link
Contributor

nagisa commented Sep 25, 2015

I’d replace error message wording from “should” to “may only” or “may”.

Otherwise always 👍 for such correctness PRs.

@sanxiyn sanxiyn referenced this pull request Sep 26, 2015

Merged

Remove #[repr(C)] on type #1

if words.is_none() {
return;
}
let words = words.unwrap();

This comment has been minimized.

@nrc

nrc Sep 27, 2015

Member

nit:

let words = match attr.meta_item_list() {
    Some(words) => words,
    None => {
        return;
    }
};
@nrc

This comment has been minimized.

Copy link
Member

nrc commented Sep 27, 2015

r=me with the style nit fixed

@sanxiyn sanxiyn force-pushed the sanxiyn:attr-usage branch 2 times, most recently from c04e6d9 to c5a7d17 Sep 28, 2015

@sanxiyn

This comment has been minimized.

Copy link
Member Author

sanxiyn commented Sep 28, 2015

Done.

@nrc

This comment has been minimized.

Copy link
Member

nrc commented Sep 28, 2015

@bors: r+

@bors

This comment has been minimized.

Copy link
Contributor

bors commented Sep 28, 2015

📌 Commit c5a7d17 has been approved by nrc

bors added a commit that referenced this pull request Sep 28, 2015

Auto merge of #28650 - sanxiyn:attr-usage, r=nrc
This is technically a [breaking-change].

Fix #2809.
Fix #22746.
@bors

This comment has been minimized.

Copy link
Contributor

bors commented Sep 28, 2015

⌛️ Testing commit c5a7d17 with merge 186df85...

@bors

This comment has been minimized.

Copy link
Contributor

bors commented Sep 28, 2015

💔 Test failed - auto-mac-32-opt

@sanxiyn sanxiyn force-pushed the sanxiyn:attr-usage branch from c5a7d17 to 61f5b2b Oct 2, 2015

@sanxiyn

This comment has been minimized.

Copy link
Member Author

sanxiyn commented Oct 2, 2015

@bors r=nrc

@bors

This comment has been minimized.

Copy link
Contributor

bors commented Oct 2, 2015

📌 Commit 61f5b2b has been approved by nrc

bors added a commit that referenced this pull request Oct 2, 2015

Auto merge of #28650 - sanxiyn:attr-usage, r=nrc
This is technically a [breaking-change].

Fix #2809.
Fix #22746.
@bors

This comment has been minimized.

Copy link
Contributor

bors commented Oct 2, 2015

⌛️ Testing commit 61f5b2b with merge ef07d7d...

@bors bors merged commit 61f5b2b into rust-lang:master Oct 2, 2015

1 of 2 checks passed

continuous-integration/travis-ci/pr The Travis CI build could not complete due to an error
Details
homu Test successful
Details

@sanxiyn sanxiyn deleted the sanxiyn:attr-usage branch Oct 5, 2015

@Manishearth

This comment has been minimized.

Copy link
Member

Manishearth commented Nov 7, 2015

IMO we should have made this a warning for one release cycle, but I guess this is fine too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.