-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
Rollup of 11 pull requests #104418
Rollup of 11 pull requests #104418
Commits on Sep 18, 2022
-
Configuration menu - View commit details
-
Copy full SHA for fc380ec - Browse repository at this point
Copy the full SHA fc380ecView commit details -
3
Configuration menu - View commit details
-
Copy full SHA for 8f1e6eb - Browse repository at this point
Copy the full SHA 8f1e6ebView commit details
Commits on Sep 29, 2022
-
Split out from_u32_unchecked from const_char_convert
It relies on the Option::unwrap function which is not const-stable (yet).
Configuration menu - View commit details
-
Copy full SHA for 12c15a2 - Browse repository at this point
Copy the full SHA 12c15a2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 176c44c - Browse repository at this point
Copy the full SHA 176c44cView commit details
Commits on Nov 10, 2022
-
Configuration menu - View commit details
-
Copy full SHA for f902b49 - Browse repository at this point
Copy the full SHA f902b49View commit details
Commits on Nov 11, 2022
-
Configuration menu - View commit details
-
Copy full SHA for c2b906b - Browse repository at this point
Copy the full SHA c2b906bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 93921dd - Browse repository at this point
Copy the full SHA 93921ddView commit details
Commits on Nov 12, 2022
-
Configuration menu - View commit details
-
Copy full SHA for d8c0fef - Browse repository at this point
Copy the full SHA d8c0fefView commit details
Commits on Nov 13, 2022
-
Signed-off-by: cui fliter <imcusg@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 442f848 - Browse repository at this point
Copy the full SHA 442f848View commit details -
Configuration menu - View commit details
-
Copy full SHA for 56dfb70 - Browse repository at this point
Copy the full SHA 56dfb70View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7982d6a - Browse repository at this point
Copy the full SHA 7982d6aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8e81cc2 - Browse repository at this point
Copy the full SHA 8e81cc2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6de5f62 - Browse repository at this point
Copy the full SHA 6de5f62View commit details -
Configuration menu - View commit details
-
Copy full SHA for 36a1068 - Browse repository at this point
Copy the full SHA 36a1068View commit details
Commits on Nov 14, 2022
-
Rollup merge of rust-lang#101967 - jmillikin:linux-abstract-socket-ad…
…dr, r=joshtriplett Move `unix_socket_abstract` feature API to `SocketAddrExt`. The pre-stabilized API for abstract socket addresses exposes methods on `SocketAddr` that are only enabled for `cfg(any(target_os = "android", target_os = "linux"))`. Per discussion in <rust-lang#85410>, moving these methods to an OS-specific extension trait is required before stabilization can be considered. This PR makes four changes: 1. The internal module `std::os::net` contains logic for the unstable feature `tcp_quickack` (rust-lang#96256). I moved that code into `linux_ext/tcp.rs` and tried to adjust the module tree so it could accommodate a second unstable feature there. 2. Moves the public API out of `impl SocketAddr`, into `impl SocketAddrExt for SocketAddr` (the headline change). 3. The existing function names and docs for `unix_socket_abstract` refer to addresses as being created from abstract namespaces, but a more accurate description is that they create sockets in *the* abstract namespace. I adjusted the function signatures correspondingly and tried to update the docs to be clearer. 4. I also tweaked `from_abstract_name` so it takes an `AsRef<[u8]>` instead of `&[u8]`, allowing `b""` literals to be passed directly. Issues: 1. The public module `std::os::linux::net` is marked as part of `tcp_quickack`. I couldn't figure out how to mark a module as being part of two unstable features, so I just left the existing attributes in place. My hope is that this will be fixed as a side-effect of stabilizing either feature.
Configuration menu - View commit details
-
Copy full SHA for 9f3786b - Browse repository at this point
Copy the full SHA 9f3786bView commit details -
Rollup merge of rust-lang#102470 - est31:stabilize_const_char_convert…
…, r=joshtriplett Stabilize const char convert Split out `const_char_from_u32_unchecked` from `const_char_convert` and stabilize the rest, i.e. stabilize the following functions: ```Rust impl char { pub const fn from_u32(self, i: u32) -> Option<char>; pub const fn from_digit(self, num: u32, radix: u32) -> Option<char>; pub const fn to_digit(self, radix: u32) -> Option<u32>; } // Available through core::char and std::char mod char { pub const fn from_u32(i: u32) -> Option<char>; pub const fn from_digit(num: u32, radix: u32) -> Option<char>; } ``` And put the following under the `from_u32_unchecked` const stability gate as it needs `Option::unwrap` which isn't const-stable (yet): ```Rust impl char { pub const unsafe fn from_u32_unchecked(i: u32) -> char; } // Available through core::char and std::char mod char { pub const unsafe fn from_u32_unchecked(i: u32) -> char; } ``` cc the tracking issue rust-lang#89259 (which I'd like to keep open for `const_char_from_u32_unchecked`).
Configuration menu - View commit details
-
Copy full SHA for 8c77da8 - Browse repository at this point
Copy the full SHA 8c77da8View commit details -
Rollup merge of rust-lang#104223 - fmease:recover-fn-ptr-with-generic…
…s, r=estebank Recover from function pointer types with generic parameter list Give a more helpful error when encountering function pointer types with a generic parameter list like `fn<'a>(&'a str) -> bool` or `fn<T>(T) -> T` and suggest moving lifetime parameters to a `for<>` parameter list. I've added a bunch of extra code to properly handle (unlikely?) corner cases like `for<'a> fn<'b>()` (where there already exists a `for<>` parameter list) correctly suggesting `for<'a, 'b> fn()` (merging the lists). If you deem this useless, I can simplify the code by suggesting nothing at all in this case. I am quite open to suggestions regarding the wording of the diagnostic messages. Fixes rust-lang#103487. ``@rustbot`` label A-diagnostics r? diagnostics
Configuration menu - View commit details
-
Copy full SHA for a86bdb4 - Browse repository at this point
Copy the full SHA a86bdb4View commit details -
Rollup merge of rust-lang#104229 - compiler-errors:overlap-full-path,…
… r=davidtwco Don't print full paths in overlap errors We don't print the full path in other diagnostics -- I don't think it particularly helps with the error message. I also delayed the printing until actually needing to render the error message. r? diagnostics
Configuration menu - View commit details
-
Copy full SHA for abda584 - Browse repository at this point
Copy the full SHA abda584View commit details -
Rollup merge of rust-lang#104294 - compiler-errors:inline-ct-err-in-m…
…ir-build, r=davidtwco Don't ICE with inline const errors during MIR build Fixes rust-lang#104277
Configuration menu - View commit details
-
Copy full SHA for f8e5b1c - Browse repository at this point
Copy the full SHA f8e5b1cView commit details -
Rollup merge of rust-lang#104332 - Elarcis:maybe_uninit_doc_fix, r=m-…
…ou-se Fixed some `_i32` notation in `maybe_uninit`’s doc This PR just changed two lines in the documentation for `MaybeUninit`: ```rs let val = 0x12345678i32; ``` was changed to: ```rs let val = 0x12345678_i32; ``` in two doctests, making the values a tad easier to read. It does not seem like there are other literals needing this change in the file.
Configuration menu - View commit details
-
Copy full SHA for 43bb507 - Browse repository at this point
Copy the full SHA 43bb507View commit details -
Rollup merge of rust-lang#104349 - rustaceanclub:master, r=oli-obk
fix some typos in comments
Configuration menu - View commit details
-
Copy full SHA for 5763fa7 - Browse repository at this point
Copy the full SHA 5763fa7View commit details -
Rollup merge of rust-lang#104350 - SparkyPotato:fix-x-wrapper, r=jyn514
Fix x finding Python on Windows `x` searches through the path for `{dir}/python{2|3}?`, but this fails on Windows because the appropriate path is `{dir}/python.exe`. This PR adds the expected `.exe` extension on Windows while searching.
Configuration menu - View commit details
-
Copy full SHA for aa29a8b - Browse repository at this point
Copy the full SHA aa29a8bView commit details -
Rollup merge of rust-lang#104356 - RalfJung:interpret-check-mplace, r…
…=oli-obk interpret: make check_mplace public This helps avoid code duplication in rust-lang/miri#2661.
Configuration menu - View commit details
-
Copy full SHA for 050ece6 - Browse repository at this point
Copy the full SHA 050ece6View commit details -
Rollup merge of rust-lang#104364 - petrochenkov:docice2, r=GuillaumeG…
…omez rustdoc: Resolve doc links in external traits having local impls For external impls it was done in rust-lang#103192 right away, but the local impl case was forgotten. Fixes rust-lang#104145.
Configuration menu - View commit details
-
Copy full SHA for dc869fc - Browse repository at this point
Copy the full SHA dc869fcView commit details -
Rollup merge of rust-lang#104378 - compiler-errors:chalk-up, r=jackh726
Bump chalk to v0.87 1. Removes `ReEmpty` from chalk 2. Adds support for the `std::marker::Tuple` trait
Configuration menu - View commit details
-
Copy full SHA for c389097 - Browse repository at this point
Copy the full SHA c389097View commit details