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 6 pull requests #89703

Merged
merged 23 commits into from
Oct 9, 2021
Merged

Commits on Jul 28, 2021

  1. stack overflow handler specific openbsd fix.

    On this platform, when doing stack allocation, MAP_STACK is needed
     otherwise the mapping fails.
    devnexen committed Jul 28, 2021
    Configuration menu
    Copy the full SHA
    853ffc7 View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2021

  1. std: Stabilize command_access

    Tracking issue: rust-lang#44434
    lf- committed Aug 28, 2021
    Configuration menu
    Copy the full SHA
    af83a96 View commit details
    Browse the repository at this point in the history

Commits on Sep 30, 2021

  1. Configuration menu
    Copy the full SHA
    4be574e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fdccc7d View commit details
    Browse the repository at this point in the history
  3. Improve previous commit

    steffahn committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    325025e View commit details
    Browse the repository at this point in the history
  4. Merge pull request #2 from steffahn/collect_into_array_fix_ub

    Improve last commit of rust_lang#75644
    c410-f3r committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    13bfcb7 View commit details
    Browse the repository at this point in the history
  5. Remove an unnecessary use of unwrap_unchecked

    also add a new SAFETY comment and simplify/remove a closure
    steffahn authored and c410-f3r committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    355c7e9 View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2021

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

Commits on Oct 5, 2021

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

Commits on Oct 6, 2021

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

Commits on Oct 7, 2021

  1. Let unicode-table-generator fail gracefully for bitsets

    The "Alphabetic" property in Unicode 14 grew too big for the bitset
    representation, panicking "cannot pack 264 into 8 bits". However, we
    were already choosing the skiplist for that anyway, so this doesn't need
    to be a hard failure. That panic is now a returned `Err`, and then in
    `emit_codepoints` we automatically defer to skiplist.
    cuviper committed Oct 7, 2021
    Configuration menu
    Copy the full SHA
    6b0b417 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    459a7e3 View commit details
    Browse the repository at this point in the history

Commits on Oct 8, 2021

  1. Add documentation to boxed conversions

    Among other changes, documents whether allocations are necessary
    to complete the type conversion.
    
    Part of rust-lang#51430
    
    Co-authored-by: Giacomo Stevanato <giaco.stevanato@gmail.com>
    
    Co-authored-by: Joshua Nelson <github@jyn.dev>
    timClicks and jyn514 committed Oct 8, 2021
    Configuration menu
    Copy the full SHA
    6a52fb7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    85c4a52 View commit details
    Browse the repository at this point in the history

Commits on Oct 9, 2021

  1. Simplify wording

    Co-authored-by: Josh Triplett <josh@joshtriplett.org>
    Co-authored-by: Laurențiu Nicola <lnicola@users.noreply.github.com>
    3 people committed Oct 9, 2021
    Configuration menu
    Copy the full SHA
    fa5a212 View commit details
    Browse the repository at this point in the history
  2. Remove unnecessary hyphen

    Co-authored-by: Laurențiu Nicola <lnicola@users.noreply.github.com>
    timClicks and lnicola committed Oct 9, 2021
    Configuration menu
    Copy the full SHA
    020ec0a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3214253 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#75644 - c410-f3r:array, r=yaahc

    Add 'core::array::from_fn' and 'core::array::try_from_fn'
    
    These auxiliary methods fill uninitialized arrays in a safe way and are particularly useful for elements that don't implement `Default`.
    
    ```rust
    // Foo doesn't implement Default
    struct Foo(usize);
    
    let _array = core::array::from_fn::<_, _, 2>(|idx| Foo(idx));
    ```
    
    Different from `FromIterator`, it is guaranteed that the array will be fully filled and no error regarding uninitialized state will be throw. In certain scenarios, however, the creation of an **element** can fail and that is why the `try_from_fn` function is also provided.
    
    ```rust
    #[derive(Debug, PartialEq)]
    enum SomeError {
        Foo,
    }
    
    let array = core::array::try_from_fn(|i| Ok::<_, SomeError>(i));
    assert_eq!(array, Ok([0, 1, 2, 3, 4]));
    
    let another_array = core::array::try_from_fn(|_| Err(SomeError::Foo));
    assert_eq!(another_array, Err(SomeError::Foo));
     ```
    GuillaumeGomez committed Oct 9, 2021
    Configuration menu
    Copy the full SHA
    86bf3ce View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#87528 - :stack_overflow_obsd, r=joshtriplett

    stack overflow handler specific openbsd change.
    GuillaumeGomez committed Oct 9, 2021
    Configuration menu
    Copy the full SHA
    3e4f956 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#88436 - lf-:stabilize-command-access, r=yaahc

    std: Stabilize command_access
    
    Tracking issue: rust-lang#44434 (not yet closed but the FCP is done so that should be soon).
    GuillaumeGomez committed Oct 9, 2021
    Configuration menu
    Copy the full SHA
    703cb97 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#89614 - cuviper:unicode-14, r=joshtriplett

    Update to Unicode 14.0
    
    The Unicode Standard [announced Version 14.0](https://home.unicode.org/announcing-the-unicode-standard-version-14-0/) on September 14, 2021, and this pull request updates the generated tables in `core` accordingly.
    
    This did require a little prep-work in `unicode-table-generator`. First, rust-lang#81358 had modified the generated file instead of the tool, so that change is now reflected in the tool as well. Next, I found that the "Alphabetic" property in version 14 was panicking when generating a bitset, "cannot pack 264 into 8 bits". We've been using the skiplist for that anyway, so I changed this to fail gracefully. Finally, I confirmed that the tool still created the exact same tables for 13 before moving to 14.
    GuillaumeGomez committed Oct 9, 2021
    Configuration menu
    Copy the full SHA
    21a5101 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#89664 - timClicks:51430-document-boxed-conv…

    …ersions, r=m-ou-se
    
    Add documentation to boxed conversions
    
    Among other changes, documents whether allocations are necessary
    to complete the type conversion.
    
    Part of rust-lang#51430, supersedes rust-lang#89199
    GuillaumeGomez committed Oct 9, 2021
    Configuration menu
    Copy the full SHA
    9f32ab8 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#89700 - GuillaumeGomez:fix-rustdoc-higher-b…

    …ound-html-gen, r=notriddle
    
    Fix invalid HTML generation for higher bounds
    
    Considering this is a bug, I cherry-picked the commit from rust-lang#89676 so it's merged more quickly.
    
    r? ``@notriddle``
    GuillaumeGomez committed Oct 9, 2021
    Configuration menu
    Copy the full SHA
    3e93472 View commit details
    Browse the repository at this point in the history