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

Warn on no_start, crate_id attribute use #64471

Merged
merged 1 commit into from
Sep 15, 2019

Conversation

Mark-Simulacrum
Copy link
Member

@Mark-Simulacrum Mark-Simulacrum commented Sep 14, 2019

These attributes are now deprecated; they don't have any use anymore.

no_start stopped being applicable in 3ee916e as part of #18967. Ideally we would've removed it pre-1.0, but since that didn't happen let's at least mark it deprecated.

crate_id was renamed to crate_name in 50ee1ec as part of #15319. Ideally we would've followed that up with a removal of crate_id itself as well, but that didn't happen; this PR finally marks it as deprecated at least.

Fixes #43142 and resolves #43144.

@rust-highfive
Copy link
Collaborator

r? @zackmdavis

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

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 14, 2019
@Mark-Simulacrum
Copy link
Member Author

I'm not marking as relnotes as these attributes have done nothing since pre-1.0 so there's no compatibility note that I think we should issue.

@Centril
Copy link
Contributor

Centril commented Sep 14, 2019

Could we try cratering the removal? Maybe no one actually uses it and we can remove some tech debt.

@Mark-Simulacrum
Copy link
Member Author

The tech debt is so minimal that it doesn't seem worth it, but if you'd like me to I can delete the attributes and we can run crater on that PR. Up to you.

@Centril
Copy link
Contributor

Centril commented Sep 14, 2019

@Mark-Simulacrum I just checked and I agree that the tech debt is very minimal (basically 4 boilerplate lines in total). Let's deprecate for now.

These attributes are now deprecated; they don't have any use anymore.
@Mark-Simulacrum
Copy link
Member Author

Alright, updated, extracting the function to avoid duplicating the suggestion.

@Centril
Copy link
Contributor

Centril commented Sep 14, 2019

@rust-lang/lang N.B. this deprecates two attributes that have had no effect in ages per the description in the PR... This could ostensibly be FCPed but I'm dispensing with this because it I expect the PR will be wildly uncontroversial. Nonethless, here's a heads-up.

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Sep 14, 2019

📌 Commit a0e48b6 has been approved by Centril

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Sep 14, 2019
Centril added a commit to Centril/rust that referenced this pull request Sep 15, 2019
…entril

Warn on no_start, crate_id attribute use

These attributes are now deprecated; they don't have any use anymore.

`no_start` stopped being applicable in 3ee916e as part of rust-lang#18967. Ideally we would've removed it pre-1.0, but since that didn't happen let's at least mark it deprecated.

`crate_id` was renamed to `crate_name` in 50ee1ec as part of rust-lang#15319. Ideally we would've followed that up with a removal of crate_id itself as well, but that didn't happen; this PR finally marks it as deprecated at least.

Fixes rust-lang#43142 and resolves rust-lang#43144.
bors added a commit that referenced this pull request Sep 15, 2019
Rollup of 5 pull requests

Successful merges:

 - #64457 (def_collector: Do not ICE on attributes on unnamed fields)
 - #64463 (resolve: Tweak some expected/found wording)
 - #64471 (Warn on no_start, crate_id attribute use)
 - #64473 (Use try_fold instead of manually carrying an accumulator)
 - #64475 (simplify the initialization)

Failed merges:

r? @ghost
@bors bors merged commit a0e48b6 into rust-lang:master Sep 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
5 participants