Skip to content

Rename pkgid and PkgId to crateid and CrateId #11182

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 4 commits into from
Dec 30, 2013
Merged

Conversation

luisbg
Copy link
Contributor

@luisbg luisbg commented Dec 28, 2013

Issue #11048

@@ -610,7 +610,7 @@ the behavior of the compiler.

~~~~
// Package ID
#[ pkgid = "projx#2.5" ];
#[ crateid = "projx#2.5" ];
Copy link
Member

Choose a reason for hiding this comment

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

crate_id is the attribute name

@emberian
Copy link
Member

Thanks! Needs a rebase along with the above fixes.

@luisbg
Copy link
Contributor Author

luisbg commented Dec 29, 2013

Your comments have been fixed and the commits rebased :)

@luisbg
Copy link
Contributor Author

luisbg commented Dec 29, 2013

Tested locally twice and it passed all tests.

bors added a commit that referenced this pull request Dec 30, 2013
@bors bors closed this Dec 30, 2013
@bors bors merged commit 51b5f32 into rust-lang:master Dec 30, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Jul 31, 2023
[`needless_pass_by_ref_mut`]: Do not lint if passed as a fn-like argument

Fixes rust-lang#11182 and also fixes rust-lang#11199 (though this is kind of a duplicate)

There's likely a case or two I've missed, so this likely needs a bit more work but it seems to work fine with the tests I've added.

PS, the diff for the test is useless because it iterates over a hashmap before linting. Seems to work fine but we could maybe change this for consistency's sake

changelog: [`needless_pass_by_ref_mut`]: No longer lints if the function is passed as a fn-like argument
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