Skip to content

Check attribute usage - #28650

Merged
bors merged 2 commits into
rust-lang:masterfrom
sanxiyn:attr-usage
Oct 2, 2015
Merged

Check attribute usage#28650
bors merged 2 commits into
rust-lang:masterfrom
sanxiyn:attr-usage

Conversation

@sanxiyn

Copy link
Copy Markdown
Contributor

This is technically a [breaking-change].

Fix#2809.
Fix#22746.

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @arielb1

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

@sanxiyn
sanxiynforce-pushed the attr-usage branch 2 times, most recently from ab80e64 to fb22683CompareSeptember 25, 2015 09:50
@alexcrichton

Copy link
Copy Markdown
Member

r? @nrc

@rust-highfiverust-highfive assigned nrc and unassigned arielb1Sep 25, 2015
@alexcrichtonalexcrichton added the relnotes Marks issues that should be documented in the release notes of the next release. label Sep 25, 2015
@alexcrichton

Copy link
Copy Markdown
Member

Starting a crater build to evaluate the impact

@alexcrichton

Copy link
Copy Markdown
Member

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

@nagisa

Copy link
Copy Markdown
Member

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

Otherwise always 👍 for such correctness PRs.

Comment threadsrc/librustc/front/check_attr.rs Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit:

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

@nrc

nrc commented Sep 27, 2015

Copy link
Copy Markdown
Member

r=me with the style nit fixed

@sanxiyn
sanxiynforce-pushed the attr-usage branch 2 times, most recently from c04e6d9 to c5a7d17CompareSeptember 28, 2015 04:54
@sanxiyn

Copy link
Copy Markdown
ContributorAuthor

Done.

@nrc

nrc commented Sep 28, 2015

Copy link
Copy Markdown
Member

@bors: r+

@bors

bors commented Sep 28, 2015

Copy link
Copy Markdown
Collaborator

📌 Commit c5a7d17 has been approved by nrc

@bors

bors commented Sep 28, 2015

Copy link
Copy Markdown
Collaborator

⌛ Testing commit c5a7d17 with merge 186df85...

@bors

bors commented Sep 28, 2015

Copy link
Copy Markdown
Collaborator

💔 Test failed - auto-mac-32-opt

@sanxiyn

Copy link
Copy Markdown
ContributorAuthor

@bors r=nrc

@bors

bors commented Oct 2, 2015

Copy link
Copy Markdown
Collaborator

📌 Commit 61f5b2b has been approved by nrc

bors added a commit that referenced this pull request Oct 2, 2015
This is technically a [breaking-change].
Fix#2809.
Fix#22746.
@bors

bors commented Oct 2, 2015

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 61f5b2b with merge ef07d7d...

@bors
bors merged commit 61f5b2b into rust-lang:masterOct 2, 2015
@sanxiyn
sanxiyn deleted the attr-usage branch October 5, 2015 04:19
@Manishearth

Copy link
Copy Markdown
Member

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

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

relnotesMarks issues that should be documented in the release notes of the next release.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants

@sanxiyn@rust-highfive@alexcrichton@nagisa@nrc@bors@Manishearth@arielb1