Rollup of 6 pull requests - #163689
Closed
jhpratt wants to merge 24 commits into
Closed
Rollup of 6 pull requests#163689jhpratt wants to merge 24 commits into
jhpratt wants to merge 24 commits into
Conversation
Co-authored-by: David Tolnay <dtolnay@gmail.com>
When building `core` with `--cfg no_io_statics`, the compiler warns:
error: unused variable: `f`
--> .../library/core/src/io/error/os_functions.rs:9:36
|
9 | pub(super) unsafe fn set_functions(f: &'static OsFunctions) {
| ^ help: if this is intentional, prefix it with an underscore: `_f`
|
= note: `-D unused-variables` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(unused_variables)]`
Thus clean it up.
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Similar to the existing tests for other `cfg`s like `no_fp_fmt_parse`, add one for `no_io_statics`. This should prevent issues like the one in the parent commit. Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
We are refactoring from a large enum where the fields of the variants contain all the reflection info to a flat enum containing only the type kind (struct/bool/array etc). While we removed the fields of Struct, Enum and Union we forgot to take out the const eval code writing into those fields. That gave an ICE. This fixes that.
Fix test-tidy review changes review changes review changes fix llvm build
…ttribute, r=bushrat011899 Add documentation for the `no_main` and `repr` attributes Part of rust-lang#157604. This PR documents `no_main` and `repr` attributes in `library/core/src/attribute_docs.rs` with some examples. Tested with: `./x doc`
…fo, r=oli-obk reflection: fix ICE when TypeId::info called on ADT We are refactoring from a large enum where the fields of the variants contain all the reflection info to a flat enum containing only the type kind (struct/bool/array etc). While we removed the fields of Struct, Enum and Union we forgot to take out the const eval code writing into those fields. That gave an ICE. This fixes that.
…=jhpratt Add methods to TCP and UDP sockets to modify hop limit (refresh of rust-lang#94678) rust-lang#94678 was closed because of time constraints of the original author (@kckeiks). This PR is a refresh of rust-lang#94678 where the original proposed changes are ported to the current status of the standard library. In addition, this PR: - implements the change suggested in rust-lang#94678 (comment) - defines `set_multicast_hop_limit_v6` and `multicast_hop_limit_v6 ` only for UDP sockets and not for TCP sockets as originally proposed Issue: rust-lang#139166
…s, r=JohnTitor
core: io: clean `unused_variables` lint under `no_io_statics`
When building `core` with `--cfg no_io_statics`, the compiler warns:
error: unused variable: `f`
--> .../library/core/src/io/error/os_functions.rs:9:36
|
9 | pub(super) unsafe fn set_functions(f: &'static OsFunctions) {
| ^ help: if this is intentional, prefix it with an underscore: `_f`
|
= note: `-D unused-variables` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(unused_variables)]`
Thus clean it up.
---
If the signature is preferred to be exactly the same one as the `os_functions_atomic.rs` one, then we could `allow` it instead.
…, r=traviscross Make the tracking issue template better suited for experiments The lang team's experiment docs say to create a tracking issue, but the tracking issue template isn't well suited for features that lack an RFC. These are minor changes that should streamline the process. Thanks to @diondokter for pointing out how these could be improved. r? lang-ops
… r=RalfJung Avoid long iterator chain in all_rust_features This chain creates an absolute monster type that clutters my cachegrind diffs :) This should make it simpler. I believe we've also seen `chain` to optimize poorly, but I don't think that's a concern here. It might also compile faster, we know that deep types created with iterator chains tend to scale poorly.
Member
Author
|
@bors r+ p=5 force |
Contributor
This comment has been minimized.
This comment has been minimized.
rust-bors Bot
pushed a commit
that referenced
this pull request
Oct 3, 2026
Rollup of 6 pull requests Successful merges: - #163627 (Add documentation for the `no_main` and `repr` attributes) - #163663 (reflection: fix ICE when TypeId::info called on ADT) - #138744 (Add methods to TCP and UDP sockets to modify hop limit (refresh of #94678)) - #163633 (core: io: clean `unused_variables` lint under `no_io_statics`) - #163681 (Make the tracking issue template better suited for experiments) - #163685 (Avoid long iterator chain in all_rust_features)
Collaborator
|
The job Click to see the possible cause of the failure (guessed by this bot) |
Contributor
|
💔 Test for 384c251 failed: CI. Failed job:
|
Contributor
|
PR #138744, which is a member of this rollup, was unapproved. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Successful merges:
no_mainandreprattributes #163627 (Add documentation for theno_mainandreprattributes)unused_variableslint underno_io_statics#163633 (core: io: cleanunused_variableslint underno_io_statics)r? @ghost
Create a similar rollup