Skip to content

Support "soft" feature-gating using a lint - #64066

Merged
bors merged 2 commits into
rust-lang:masterfrom
petrochenkov:softstab
Sep 8, 2019
Merged

Support "soft" feature-gating using a lint#64066
bors merged 2 commits into
rust-lang:masterfrom
petrochenkov:softstab

Conversation

@petrochenkov

Copy link
Copy Markdown
Contributor

Use it for feature-gating #[bench].

Closes#63798.

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @matthewjasper

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

@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 1, 2019
Comment threadsrc/test/ui/feature-gates/bench.stderr Outdated
@matthewjaspermatthewjasper added the beta-nominated Nominated for backporting to the compiler in the beta channel. label Sep 5, 2019
@matthewjasper

Copy link
Copy Markdown
Contributor

r=me with @Centril's comment addressed

@CentrilCentril added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Sep 5, 2019
@nikomatsakisnikomatsakis added the beta-accepted Accepted for backporting to the compiler in the beta channel. label Sep 5, 2019
@matthewjaspermatthewjasper added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Sep 6, 2019
Use it for feature-gating `#[bench]`
@petrochenkov

Copy link
Copy Markdown
ContributorAuthor

@bors r=matthewjasper

@bors

bors commented Sep 7, 2019

Copy link
Copy Markdown
Collaborator

📌 Commit 74d8679 has been approved by matthewjasper

@borsbors 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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Sep 7, 2019
Centril added a commit to Centril/rust that referenced this pull request Sep 7, 2019
Support "soft" feature-gating using a lint
Use it for feature-gating `#[bench]`.
Closesrust-lang#63798.
@CentrilCentril mentioned this pull request Sep 7, 2019
bors added a commit that referenced this pull request Sep 7, 2019
Rollup of 5 pull requests
Successful merges:
- #64052 (Rename test locals to work around LLDB bug)
- #64066 (Support "soft" feature-gating using a lint)
- #64177 (resolve: Do not afraid to set current module to enums and traits)
- #64229 (Reduce span to function name in unreachable calls)
- #64255 (Add methods for converting `bool` to `Option<T>`)
Failed merges:
r? @ghost
@bors
bors merged commit 74d8679 into rust-lang:masterSep 8, 2019
@cuvipercuviper mentioned this pull request Sep 13, 2019
bors added a commit that referenced this pull request Sep 14, 2019
[beta] Rollup backports
Cherry-picked:
- Permit unwinding through FFI by default #62603
- pprust: Do not print spaces before some tokens #63897
- Account for doc comments coming from proc macros without spans #63930
- Support "soft" feature-gating using a lint #64066
- Update xLTO compatibility table in rustc book. #64092
- Include compiler-rt in the source tarball #64240
- Update LLVM submodule #64317
r? @Mark-Simulacrum
@cuvipercuviper removed the beta-nominated Nominated for backporting to the compiler in the beta channel. label Sep 14, 2019
bors added a commit to rust-lang-ci/rust that referenced this pull request Dec 20, 2024
de-stabilize bench attribute
This has been soft-unstable since forever (rust-lang#64066), and shown in future-compat reports since Rust 1.77 (rust-lang#116274).
The feature covering `bench` itself is tracked in rust-lang#50297, which has been closed despite still having active feature gates referencing it.
Cc `@rust-lang/libs-api`
@petrochenkov
petrochenkov deleted the softstab branch February 22, 2025 18:34
jhpratt added a commit to jhpratt/rust that referenced this pull request May 7, 2025
…aheemdev,traviscross
de-stabilize bench attribute
This has been soft-unstable since forever (rust-lang#64066), and shown in future-compat reports since Rust 1.77 (rust-lang#116274).
The feature covering `bench` itself is tracked in rust-lang#50297, which has been closed despite still having active feature gates referencing it.
Cc `@rust-lang/libs-api`
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request May 7, 2025
Rollup merge of rust-lang#134273 - RalfJung:de-stabilize-bench, r=ibraheemdev,traviscross
de-stabilize bench attribute
This has been soft-unstable since forever (rust-lang#64066), and shown in future-compat reports since Rust 1.77 (rust-lang#116274).
The feature covering `bench` itself is tracked in rust-lang#50297, which has been closed despite still having active feature gates referencing it.
Cc `@rust-lang/libs-api`
github-actionsBot pushed a commit to carolynzech/rust that referenced this pull request May 16, 2025
…aheemdev,traviscross
de-stabilize bench attribute
This has been soft-unstable since forever (rust-lang#64066), and shown in future-compat reports since Rust 1.77 (rust-lang#116274).
The feature covering `bench` itself is tracked in rust-lang#50297, which has been closed despite still having active feature gates referencing it.
Cc `@rust-lang/libs-api`
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

beta-acceptedAccepted for backporting to the compiler in the beta channel.S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[1.38] #[bench] accepted on stable but not beta

7 participants

@petrochenkov@rust-highfive@matthewjasper@bors@Centril@cuviper@nikomatsakis