-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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 14 pull requests #89510
Rollup of 14 pull requests #89510
Commits on Jun 18, 2021
-
Configuration menu - View commit details
-
Copy full SHA for e2d6334 - Browse repository at this point
Copy the full SHA e2d6334View commit details -
Configuration menu - View commit details
-
Copy full SHA for cbaccc1 - Browse repository at this point
Copy the full SHA cbaccc1View commit details
Commits on Aug 17, 2021
-
Configuration menu - View commit details
-
Copy full SHA for e394bb7 - Browse repository at this point
Copy the full SHA e394bb7View commit details
Commits on Aug 24, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 22112e4 - Browse repository at this point
Copy the full SHA 22112e4View commit details -
Manual Debug for Unix ExitCode ExitStatus ExitStatusError
These structs have misleading names. An ExitStatus[Error] is actually a Unix wait status; an ExitCode is actually an exit status. The Display impls are fixed, but the Debug impls are still misleading, as reported in rust-lang#74832. Fix this by pretending that these internal structs are called `unix_exit_status` and `unix_wait_status` as applicable. (We can't actually rename the structs because of the way that the cross-platform machinery works: the names are cross-platform.) Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Configuration menu - View commit details
-
Copy full SHA for 848a38a - Browse repository at this point
Copy the full SHA 848a38aView commit details
Commits on Aug 26, 2021
-
Partially stabilize
array_methods
This also makes `<[T; N]>::as_slice` const due to its trivial nature.
Configuration menu - View commit details
-
Copy full SHA for 905c2ba - Browse repository at this point
Copy the full SHA 905c2baView commit details -
Add missing # Panics section to
Vec
methodnamely `Vec::extend_from_within`
Configuration menu - View commit details
-
Copy full SHA for ca88f10 - Browse repository at this point
Copy the full SHA ca88f10View commit details
Commits on Aug 29, 2021
-
const fn for option copied, take & replace + tests
fix: move test that require mut to another Adding TODOs for Option::take and Option::copied TODO to FIXME + moving const stability under normal Moving const stability attr under normal stab attr move more rustc stability attributes
Configuration menu - View commit details
-
Copy full SHA for 10ddabc - Browse repository at this point
Copy the full SHA 10ddabcView commit details
Commits on Sep 10, 2021
-
Makes docs for references a little less confusing
- Make clear that the `Pointer` trait is related to formatting - Make clear that `&T` (shared reference) implements `Send` (if `T: Send + Sync`)
Configuration menu - View commit details
-
Copy full SHA for eeee5a8 - Browse repository at this point
Copy the full SHA eeee5a8View commit details -
Update library/std/src/primitive_docs.rs
Co-authored-by: fmease <liehr.exchange@gmx.net>
Configuration menu - View commit details
-
Copy full SHA for aba3608 - Browse repository at this point
Copy the full SHA aba3608View commit details
Commits on Sep 20, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 74c4c01 - Browse repository at this point
Copy the full SHA 74c4c01View commit details
Commits on Sep 21, 2021
-
Configuration menu - View commit details
-
Copy full SHA for a993d7d - Browse repository at this point
Copy the full SHA a993d7dView commit details
Commits on Oct 2, 2021
-
Configuration menu - View commit details
-
Copy full SHA for e017e45 - Browse repository at this point
Copy the full SHA e017e45View commit details -
Configuration menu - View commit details
-
Copy full SHA for 83ddedf - Browse repository at this point
Copy the full SHA 83ddedfView commit details -
Swap out unboxed_closures feature gate for min_specialization
For some reason unboxed_closures supresses the feature gate for min_specialization when implementing TrustedStep. min_specialization is the true feature that is used.
Configuration menu - View commit details
-
Copy full SHA for 998753c - Browse repository at this point
Copy the full SHA 998753cView commit details -
Configuration menu - View commit details
-
Copy full SHA for e98f289 - Browse repository at this point
Copy the full SHA e98f289View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9a6f2e6 - Browse repository at this point
Copy the full SHA 9a6f2e6View commit details -
Configuration menu - View commit details
-
Copy full SHA for b7d2b46 - Browse repository at this point
Copy the full SHA b7d2b46View commit details -
Run the rust-lang#85441 regression test on MSVC only
On MinGW toolchains the various features (such as function sections) necessary to eliminate dead function references are disabled due to various bugs. This means that the windows sockets library will most likely remain linked to any mingw toolchain built program that also utilizes libstd. That said, I made an attempt to also enable `function-sections` and `--gc-sections` during my experiments, but the symbol references remained, sadly.
Configuration menu - View commit details
-
Copy full SHA for 5b4873a - Browse repository at this point
Copy the full SHA 5b4873aView commit details
Commits on Oct 3, 2021
-
Replace Fn impls with RPIT impls in rustc_index
This is cleaner and removes an unstable feature usage
Configuration menu - View commit details
-
Copy full SHA for 9f4cb86 - Browse repository at this point
Copy the full SHA 9f4cb86View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5b66048 - Browse repository at this point
Copy the full SHA 5b66048View commit details
Commits on Oct 4, 2021
-
Rollup merge of rust-lang#86434 - CDirkx:ipv6-benchmarking, r=joshtri…
…plett Add `Ipv6Addr::is_benchmarking` This PR adds the unstable method `Ipv6Addr::is_benchmarking`. This method is added for parity with `Ipv4Addr::is_benchmarking`, and I intend to use it in a future rework of `Ipv6Addr::is_global` (edit: rust-lang#86634) to more accurately follow the [IANA Special Address Registry](https://www.iana.org/assignments/iana-ipv6-special-registry/iana-ipv6-special-registry.xhtml) (like is done in `Ipv4Addr::is_global`). With `Ipv6Addr::is_benchmarking` and `Ipv4Addr::is_benchmarking` now both existing, `IpAddr::is_benchmarking` is also added.
Configuration menu - View commit details
-
Copy full SHA for 484032f - Browse repository at this point
Copy the full SHA 484032fView commit details -
Rollup merge of rust-lang#86828 - lambinoo:67441-const-fn-copied-take…
…-replace, r=joshtriplett const fn for option copied, take & replace Tracking issue: [rust-lang#67441](rust-lang#67441) Adding const fn for the copied, take and replace method of Option. Also adding necessary unit test. It's my first contribution so I am pretty sure I don't know what I'm doing but there's a first for everything!
Configuration menu - View commit details
-
Copy full SHA for 1c4129d - Browse repository at this point
Copy the full SHA 1c4129dView commit details -
Rollup merge of rust-lang#87679 - ssomers:btree_comments, r=joshtriplett
BTree: refine some comments
Configuration menu - View commit details
-
Copy full SHA for ba39a0a - Browse repository at this point
Copy the full SHA ba39a0aView commit details -
Rollup merge of rust-lang#87910 - iago-lito:mark_unsafe_nonzero_arith…
…metics_as_const, r=joshtriplett Mark unsafe methods NonZero*::unchecked_(add|mul) as const. Now that rust-lang/rfcs#3016 has landed, these two unstable `std` function can be marked `const`, according to this detail of rust-lang#84186.
Configuration menu - View commit details
-
Copy full SHA for deac382 - Browse repository at this point
Copy the full SHA deac382View commit details -
Rollup merge of rust-lang#88286 - LeSeulArtichaut:unnecessary-unsafe-…
…block-std, r=dtolnay Remove unnecessary unsafe block in `process_unix` Because it's nested under this unsafe fn! This block isn't detected as unnecessary because of a bug in the compiler: rust-lang#88260.
Configuration menu - View commit details
-
Copy full SHA for f8ef948 - Browse repository at this point
Copy the full SHA f8ef948View commit details -
Rollup merge of rust-lang#88305 - ijackson:exitstatus-debug, r=dtolnay
Manual Debug for Unix ExitCode ExitStatus ExitStatusError These structs have misleading names. An ExitStatus[Error] is actually a Unix wait status; an ExitCode is actually an exit status. These misleading names appear in the `Debug` output. The `Display` impls on Unix have been improved, but the `Debug` impls are still misleading, as reported in rust-lang#74832. Fix this by pretending that these internal structs are called `unix_exit_status` and `unix_wait_status` as applicable. (We can't actually rename the structs because of the way that the cross-platform machinery works: the names are cross-platform.) After this change, this program ``` #![feature(exit_status_error)] fn main(){ let x = std::process::Command::new("false").status().unwrap(); dbg!(x.exit_ok()); eprintln!("x={:?}",x); } ``` produces this output ``` [src/main.rs:4] x.exit_ok() = Err( ExitStatusError( unix_wait_status( 256, ), ), ) x=ExitStatus(unix_wait_status(256)) ``` Closes rust-lang#74832
Configuration menu - View commit details
-
Copy full SHA for 7fc48c7 - Browse repository at this point
Copy the full SHA 7fc48c7View commit details -
Rollup merge of rust-lang#88353 - jhpratt:stabilize-array-as-ref, r=j…
…oshtriplett Partially stabilize `array_methods` This stabilizes `<[T; N]>::as_slice` and `<[T; N]>::as_mut_slice`, which is forms part of the `array_methods` feature: rust-lang#76118. This also makes `<[T; N]>::as_slice` const due to its trivial nature.
Configuration menu - View commit details
-
Copy full SHA for cb835c8 - Browse repository at this point
Copy the full SHA cb835c8View commit details -
Rollup merge of rust-lang#88361 - WaffleLapkin:patch-2, r=joshtriplett
Makes docs for references a little less confusing - Make clear that the `Pointer` trait is related to formatting - Make clear that the `Pointer` trait is implemented for references (previously it was confusing to first see that it's implemented and then see it in "expect") - Make clear that `&T` (shared reference) implements `Send` (if `T: Send + Sync`)
Configuration menu - View commit details
-
Copy full SHA for bfdaab8 - Browse repository at this point
Copy the full SHA bfdaab8View commit details -
Rollup merge of rust-lang#88370 - Seppel3210:master, r=dtolnay
Add missing `# Panics` section to `Vec` method namely `Vec::extend_from_within`
Configuration menu - View commit details
-
Copy full SHA for 96245bc - Browse repository at this point
Copy the full SHA 96245bcView commit details -
Rollup merge of rust-lang#88481 - bjorn3:remove_feature_gates, r=cjgi…
…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.
Configuration menu - View commit details
-
Copy full SHA for 7f79fea - Browse repository at this point
Copy the full SHA 7f79feaView commit details -
Rollup merge of rust-lang#89138 - newpavlov:patch-2, r=dtolnay
Fix link in Ipv6Addr::to_ipv4 docs
Configuration menu - View commit details
-
Copy full SHA for 262f75e - Browse repository at this point
Copy the full SHA 262f75eView commit details -
Rollup merge of rust-lang#89467 - tniessen:rustdoc-unecessary, r=jyn514
Fix typos in rustdoc/lints This PR merely fixes a few typos in a recently introduced change :) Refs: rust-lang#85223
Configuration menu - View commit details
-
Copy full SHA for 58c60a8 - Browse repository at this point
Copy the full SHA 58c60a8View commit details -
Rollup merge of rust-lang#89472 - nagisa:nagisa/wsa-cleanup, r=dtolnay
Only register `WSACleanup` if `WSAStartup` is actually ever called See rust-lang#85595 Fixes rust-lang#85441
Configuration menu - View commit details
-
Copy full SHA for 43c4355 - Browse repository at this point
Copy the full SHA 43c4355View commit details -
Rollup merge of rust-lang#89505 - Aaron1011:nll-const-test, r=Mark-Si…
…mulacrum Add regression test for spurious const error with NLL Fixes rust-lang#55825
Configuration menu - View commit details
-
Copy full SHA for 33178d2 - Browse repository at this point
Copy the full SHA 33178d2View commit details