Skip to content

Let the dep-tracking test framework check that all #[rustc_dirty] attrs have been actually checked #39500

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

Merged
merged 2 commits into from
Feb 6, 2017

Conversation

michaelwoerister
Copy link
Member

@michaelwoerister
Copy link
Member Author

Before r+ing, please wait for travis to finish as I haven't had the time to run a full make check and that change to the visitor might have a wider effect.

@@ -914,6 +914,7 @@ pub fn walk_decl<'v, V: Visitor<'v>>(visitor: &mut V, declaration: &'v Decl) {

pub fn walk_expr<'v, V: Visitor<'v>>(visitor: &mut V, expression: &'v Expr) {
visitor.visit_id(expression.id);
walk_list!(visitor, visit_attribute, expression.attrs.iter());
Copy link
Contributor

Choose a reason for hiding this comment

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

d'oh

};
intravisit::walk_crate(&mut all_attrs, krate);

all_attrs.report_unchecked_attrs(&dirty_clean_visitor.checked_attrs);
Copy link
Contributor

Choose a reason for hiding this comment

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

can we add a comment explaining why we are not using the other "used attribute" system?

Copy link
Contributor

@nikomatsakis nikomatsakis left a comment

Choose a reason for hiding this comment

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

r=me with comment

is not used for #[rustc_dirty]/#[rustc_clean].
@michaelwoerister
Copy link
Member Author

@bors r=nikomatsakis

(comments added)

@bors
Copy link
Collaborator

bors commented Feb 6, 2017

📌 Commit ab3c826 has been approved by nikomatsakis

@bors
Copy link
Collaborator

bors commented Feb 6, 2017

⌛ Testing commit ab3c826 with merge 324b175...

bors added a commit that referenced this pull request Feb 6, 2017
Let the dep-tracking test framework check that all #[rustc_dirty] attrs have been actually checked

r? @nikomatsakis
@bors
Copy link
Collaborator

bors commented Feb 6, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: nikomatsakis
Pushing 324b175 to master...

@bors bors merged commit ab3c826 into rust-lang:master Feb 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants