Skip to content

Remove some feature gates - #88481

Merged
bors merged 4 commits into
rust-lang:masterfrom
bjorn3:remove_feature_gates
Oct 4, 2021
Merged

Remove some feature gates#88481
bors merged 4 commits into
rust-lang:masterfrom
bjorn3:remove_feature_gates

Conversation

@bjorn3

Copy link
Copy Markdown
Member

The first commit removes various feature gates that are unused. The second commit replaces some Fn implementations with Iterator implementations, which is much cleaner IMO. The third commit replaces an unboxed_closures feature gate with min_specialization. For some reason the unboxed_closures feature gate suppresses the min_specialization feature gate from triggering on an TrustedStep impl. The last comment just turns a regular comment into a doc comment as drive by cleanup. I can move it to a separate PR if preferred.

@bjorn3bjorn3 added C-cleanup Category: PRs that clean code up or issues documenting cleanup. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Aug 30, 2021
@rust-highfive

Copy link
Copy Markdown
Contributor

r? @cjgillot

(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 Aug 30, 2021
Comment threadcompiler/rustc_middle/src/ty/codec.rs Outdated
@bjorn3
bjorn3force-pushed the remove_feature_gates branch from 8c87b90 to f622b5dCompareAugust 30, 2021 10:12
Comment threadcompiler/rustc_index/src/vec.rs Outdated
@cjgillotcjgillot 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 1, 2021
@JohnCSimonJohnCSimon 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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Sep 20, 2021
For some reason unboxed_closures supresses the feature gate for
min_specialization when implementing TrustedStep. min_specialization is
the true feature that is used.
@bjorn3
bjorn3force-pushed the remove_feature_gates branch from f622b5d to 873860dCompareOctober 2, 2021 17:09
@rust-log-analyzer

This comment has been minimized.

@bjorn3
bjorn3force-pushed the remove_feature_gates branch from 873860d to 05b4614CompareOctober 2, 2021 17:47
@bjorn3bjorn3 added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Oct 2, 2021
@rust-log-analyzer

This comment has been minimized.

@cjgillot

Copy link
Copy Markdown
Contributor

r=me once CI passes.

@jyn514jyn514 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 Oct 3, 2021
This is cleaner and removes an unstable feature usage
@bjorn3
bjorn3force-pushed the remove_feature_gates branch from 05b4614 to 9f4cb86CompareOctober 3, 2021 15:51
@bjorn3

Copy link
Copy Markdown
MemberAuthor

@bors r=cjgillot

@bors

bors commented Oct 3, 2021

Copy link
Copy Markdown
Collaborator

📌 Commit 9f4cb86 has been approved by cjgillot

@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 Oct 3, 2021
Manishearth added a commit to Manishearth/rust that referenced this pull request Oct 4, 2021
…llot
Remove some feature gates
The first commit removes various feature gates that are unused. The second commit replaces some `Fn` implementations with `Iterator` implementations, which is much cleaner IMO. The third commit replaces an unboxed_closures feature gate with min_specialization. For some reason the unboxed_closures feature gate suppresses the min_specialization feature gate from triggering on an `TrustedStep` impl. The last comment just turns a regular comment into a doc comment as drive by cleanup. I can move it to a separate PR if preferred.
This was referenced Oct 4, 2021
bors added a commit to rust-lang-ci/rust that referenced this pull request Oct 4, 2021
…arth
Rollup of 14 pull requests
Successful merges:
- rust-lang#86434 (Add `Ipv6Addr::is_benchmarking`)
- rust-lang#86828 (const fn for option copied, take & replace)
- rust-lang#87679 (BTree: refine some comments)
- rust-lang#87910 (Mark unsafe methods NonZero*::unchecked_(add|mul) as const.)
- rust-lang#88286 (Remove unnecessary unsafe block in `process_unix`)
- rust-lang#88305 (Manual Debug for Unix ExitCode ExitStatus ExitStatusError)
- rust-lang#88353 (Partially stabilize `array_methods`)
- rust-lang#88370 (Add missing `# Panics` section to `Vec` method)
- rust-lang#88481 (Remove some feature gates)
- rust-lang#89138 (Fix link in Ipv6Addr::to_ipv4 docs)
- rust-lang#89401 (Add truncate note to Vec::resize)
- rust-lang#89467 (Fix typos in rustdoc/lints)
- rust-lang#89472 (Only register `WSACleanup` if `WSAStartup` is actually ever called)
- rust-lang#89505 (Add regression test for spurious const error with NLL)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
@bors
bors merged commit 5215b85 into rust-lang:masterOct 4, 2021
@rustbotrustbot added this to the 1.57.0 milestone Oct 4, 2021
@bjorn3
bjorn3 deleted the remove_feature_gates branch October 4, 2021 10:16
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-cleanupCategory: PRs that clean code up or issues documenting cleanup.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.

9 participants

@bjorn3@rust-highfive@rust-log-analyzer@cjgillot@bors@hellow554@JohnCSimon@jyn514@rustbot