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

Remove a few uses of @-pointers for @ast::Expr and @mut Block in trans #9630

Merged
merged 3 commits into from
Sep 30, 2013
Merged

Remove a few uses of @-pointers for @ast::Expr and @mut Block in trans #9630

merged 3 commits into from
Sep 30, 2013

Conversation

bluss
Copy link
Member

@bluss bluss commented Sep 30, 2013

This is mostly an incremental change, picking off some uses of
@- or @mut-pointers that can be replaced by references.

Almost all of the builder functions in trans::build are updated,
mostly using &Block arguments instead of @mut Block.

blake2-ppc added 3 commits September 30, 2013 19:37
Use borrowed references in a few locations that were encountered when
working on other changes.
Use &mut Block and &Block references where possible in the builder
functions in trans::build.

@mut Block remains in a few functions where I could not (not yet at
least) track down the runtime borrowck failures.
@bluss
Copy link
Member Author

bluss commented Sep 30, 2013

Rebased (no changes but author dates) and reopened version of PR #9615

bors added a commit that referenced this pull request Sep 30, 2013
This is mostly an incremental change, picking off some uses of
@- or @mut-pointers that can be replaced by references.

Almost all of the builder functions in trans::build are updated,
mostly using `&Block` arguments instead of `@mut Block`.
@bors bors closed this Sep 30, 2013
@bors bors merged commit f4d8d8c into rust-lang:master Sep 30, 2013
@bluss bluss deleted the de-at-smaller branch September 30, 2013 19:05
flip1995 pushed a commit to flip1995/rust that referenced this pull request Nov 21, 2022
Fix allow_attributes_without_reason applying to external crate macros

Previously the `clippy::allow_attributes_without_reason` lint would apply to external crate macros. Many macros in the Rust ecosystem include these `allow` attributes without adding a reason, making this lint pretty much unusable in any sizable Rust project.

This commit fixes that by adding a check to the lint if the attribute is from an external crate macro and returning early.

```
changelog: [`allow_attributes_without_reason`]: allow_attributes_without_reason no longer applies to external crate macros
```
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.

2 participants