Skip to content
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

Closed
wants to merge 35 commits into from

Commits on Jun 18, 2021

  1. Add Ipv6Addr::is_benchmarking

    CDirkx committed Jun 18, 2021
    Configuration menu
    Copy the full SHA
    e2d6334 View commit details
    Browse the repository at this point in the history
  2. Add IpAddr::is_benchmarking

    CDirkx committed Jun 18, 2021
    Configuration menu
    Copy the full SHA
    cbaccc1 View commit details
    Browse the repository at this point in the history

Commits on Aug 17, 2021

  1. BTree: refine some comments

    ssomers committed Aug 17, 2021
    Configuration menu
    Copy the full SHA
    e394bb7 View commit details
    Browse the repository at this point in the history

Commits on Aug 24, 2021

  1. Configuration menu
    Copy the full SHA
    22112e4 View commit details
    Browse the repository at this point in the history
  2. 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>
    ijackson committed Aug 24, 2021
    Configuration menu
    Copy the full SHA
    848a38a View commit details
    Browse the repository at this point in the history

Commits on Aug 26, 2021

  1. Partially stabilize array_methods

    This also makes `<[T; N]>::as_slice` const due to its trivial nature.
    jhpratt committed Aug 26, 2021
    Configuration menu
    Copy the full SHA
    905c2ba View commit details
    Browse the repository at this point in the history
  2. Add missing # Panics section to Vec method

    namely `Vec::extend_from_within`
    Seppel3210 committed Aug 26, 2021
    Configuration menu
    Copy the full SHA
    ca88f10 View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2021

  1. 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
    Lamb authored and lambinoo committed Aug 29, 2021
    Configuration menu
    Copy the full SHA
    10ddabc View commit details
    Browse the repository at this point in the history

Commits on Sep 10, 2021

  1. 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`)
    WaffleLapkin committed Sep 10, 2021
    Configuration menu
    Copy the full SHA
    eeee5a8 View commit details
    Browse the repository at this point in the history
  2. Update library/std/src/primitive_docs.rs

    Co-authored-by: fmease <liehr.exchange@gmx.net>
    WaffleLapkin and fmease committed Sep 10, 2021
    Configuration menu
    Copy the full SHA
    aba3608 View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2021

  1. Configuration menu
    Copy the full SHA
    74c4c01 View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2021

  1. Configuration menu
    Copy the full SHA
    a993d7d View commit details
    Browse the repository at this point in the history

Commits on Oct 2, 2021

  1. Fix typos in rustdoc/lints

    tniessen committed Oct 2, 2021
    Configuration menu
    Copy the full SHA
    e017e45 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    83ddedf View commit details
    Browse the repository at this point in the history
  3. 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.
    bjorn3 committed Oct 2, 2021
    Configuration menu
    Copy the full SHA
    998753c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e98f289 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    9a6f2e6 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    b7d2b46 View commit details
    Browse the repository at this point in the history
  7. 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.
    nagisa committed Oct 2, 2021
    Configuration menu
    Copy the full SHA
    5b4873a View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2021

  1. Replace Fn impls with RPIT impls in rustc_index

    This is cleaner and removes an unstable feature usage
    bjorn3 committed Oct 3, 2021
    Configuration menu
    Copy the full SHA
    9f4cb86 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5b66048 View commit details
    Browse the repository at this point in the history

Commits on Oct 4, 2021

  1. 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.
    Manishearth committed Oct 4, 2021
    Configuration menu
    Copy the full SHA
    484032f View commit details
    Browse the repository at this point in the history
  2. 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!
    Manishearth committed Oct 4, 2021
    Configuration menu
    Copy the full SHA
    1c4129d View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#87679 - ssomers:btree_comments, r=joshtriplett

    BTree: refine some comments
    Manishearth committed Oct 4, 2021
    Configuration menu
    Copy the full SHA
    ba39a0a View commit details
    Browse the repository at this point in the history
  4. 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.
    Manishearth committed Oct 4, 2021
    Configuration menu
    Copy the full SHA
    deac382 View commit details
    Browse the repository at this point in the history
  5. 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.
    Manishearth committed Oct 4, 2021
    Configuration menu
    Copy the full SHA
    f8ef948 View commit details
    Browse the repository at this point in the history
  6. 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
    Manishearth committed Oct 4, 2021
    Configuration menu
    Copy the full SHA
    7fc48c7 View commit details
    Browse the repository at this point in the history
  7. 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.
    Manishearth committed Oct 4, 2021
    Configuration menu
    Copy the full SHA
    cb835c8 View commit details
    Browse the repository at this point in the history
  8. 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`)
    Manishearth committed Oct 4, 2021
    Configuration menu
    Copy the full SHA
    bfdaab8 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#88370 - Seppel3210:master, r=dtolnay

    Add missing `# Panics` section to `Vec` method
    
    namely `Vec::extend_from_within`
    Manishearth committed Oct 4, 2021
    Configuration menu
    Copy the full SHA
    96245bc View commit details
    Browse the repository at this point in the history
  10. 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.
    Manishearth committed Oct 4, 2021
    Configuration menu
    Copy the full SHA
    7f79fea View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#89138 - newpavlov:patch-2, r=dtolnay

    Fix link in Ipv6Addr::to_ipv4 docs
    Manishearth committed Oct 4, 2021
    Configuration menu
    Copy the full SHA
    262f75e View commit details
    Browse the repository at this point in the history
  12. 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
    Manishearth committed Oct 4, 2021
    Configuration menu
    Copy the full SHA
    58c60a8 View commit details
    Browse the repository at this point in the history
  13. 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
    Manishearth committed Oct 4, 2021
    Configuration menu
    Copy the full SHA
    43c4355 View commit details
    Browse the repository at this point in the history
  14. 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
    Manishearth committed Oct 4, 2021
    Configuration menu
    Copy the full SHA
    33178d2 View commit details
    Browse the repository at this point in the history