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 11 pull requests #111165

Closed
wants to merge 34 commits into from
Closed

Commits on Feb 16, 2023

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

Commits on Apr 17, 2023

  1. Configuration menu
    Copy the full SHA
    1a7132d View commit details
    Browse the repository at this point in the history
  2. rustdoc: restructure type search engine to pick-and-use IDs

    This change makes it so, instead of mixing string distance with
    type unification, function signature search works by
    mapping names to IDs at the start, reporting to the user any
    cases where it had to make corrections, and then matches with
    IDs when going through the items.
    
    This only changes function searches. Name searches are left alone,
    and corrections are only done when there's a single item in the
    search query.
    notriddle committed Apr 17, 2023
    Configuration menu
    Copy the full SHA
    4c11822 View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2023

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

Commits on Apr 20, 2023

  1. Configuration menu
    Copy the full SHA
    e0a7462 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7529d87 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    395840c View commit details
    Browse the repository at this point in the history

Commits on Apr 29, 2023

  1. Remove ENTRY_LIMIT maximum checking and set it to 900

    The number 900 is safely below github's limit of 1000 entries for a directory.
    PRs to move tests can still decrease the sizes of various directories,
    but adjusting the limit won't be neccessary any more.
    
    In general, the limit is a bad tool to direct people to put tests into
    fitting directories because when those are available, usually the limit
    is not hit, while the limit is hit in directories that have a weak
    substructure themselves.
    est31 committed Apr 29, 2023
    Configuration menu
    Copy the full SHA
    e498402 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4375d3b View commit details
    Browse the repository at this point in the history

Commits on May 2, 2023

  1. Configuration menu
    Copy the full SHA
    9fba262 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4d04a06 View commit details
    Browse the repository at this point in the history
  3. Remove [] <-> () From convertions

    ... with this convertions some tests fail :(
    WaffleLapkin committed May 2, 2023
    Configuration menu
    Copy the full SHA
    04305c0 View commit details
    Browse the repository at this point in the history
  4. --bless tests

    WaffleLapkin committed May 2, 2023
    Configuration menu
    Copy the full SHA
    36f8693 View commit details
    Browse the repository at this point in the history
  5. Update ICU4X to 1.2

    Manishearth committed May 2, 2023
    Configuration menu
    Copy the full SHA
    522eeba View commit details
    Browse the repository at this point in the history
  6. Regen baked data

    Manishearth committed May 2, 2023
    Configuration menu
    Copy the full SHA
    6382876 View commit details
    Browse the repository at this point in the history

Commits on May 3, 2023

  1. Correctly convert an NT path to a Win32 path

    This can be done by simply changing the `\??\` prefix to `\\?\` and then attempting to convert to a user path.
    
    Currently it simply strips off the prefix which could lead to the wrong path being returned (e.g. if it's not a drive path or if the path contains trailing spaces, etc).
    ChrisDenton committed May 3, 2023
    Configuration menu
    Copy the full SHA
    6e37784 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    109a47f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4fec8a3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6f6c379 View commit details
    Browse the repository at this point in the history
  5. Use builtin FFX isolation for Fuchsia test runner

    FFX has new builtin support for isolating the daemon's environment. This
    switches the manual isolation originally written to that new builtin
    feature.
    David Koloski committed May 3, 2023
    Configuration menu
    Copy the full SHA
    e973836 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    de10516 View commit details
    Browse the repository at this point in the history
  7. Add cross-language LLVM CFI support to the Rust compiler

    This commit adds cross-language LLVM Control Flow Integrity (CFI)
    support to the Rust compiler by adding the
    `-Zsanitizer-cfi-normalize-integers` option to be used with Clang
    `-fsanitize-cfi-icall-normalize-integers` for normalizing integer types
    (see https://reviews.llvm.org/D139395).
    
    It provides forward-edge control flow protection for C or C++ and Rust
    -compiled code "mixed binaries" (i.e., for when C or C++ and Rust
    -compiled code share the same virtual address space). For more
    information about LLVM CFI and cross-language LLVM CFI support for the
    Rust compiler, see design document in the tracking issue rust-lang#89653.
    
    Cross-language LLVM CFI can be enabled with -Zsanitizer=cfi and
    -Zsanitizer-cfi-normalize-integers, and requires proper (i.e.,
    non-rustc) LTO (i.e., -Clinker-plugin-lto).
    rcvalle committed May 3, 2023
    Configuration menu
    Copy the full SHA
    004aa15 View commit details
    Browse the repository at this point in the history
  8. Update documentation for LLVM CFI support

    This commit updates the documentation for the LLVM Control Flow
    Integrity (CFI) support in the Rust compiler.
    rcvalle committed May 3, 2023
    Configuration menu
    Copy the full SHA
    9a02f65 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#97594 - WaffleLapkin:array_tuple_conv, r=Ch…

    …risDenton
    
    Implement tuple<->array convertions via `From`
    
    This PR adds the following impls that convert between homogeneous tuples and arrays of the corresponding lengths:
    ```rust
    impl<T> From<[T; 1]> for (T,) { ... }
    impl<T> From<[T; 2]> for (T, T) { ... }
    /* ... */
    impl<T> From<[T; 12]> for (T, T, T, T, T, T, T, T, T, T, T, T) { ... }
    
    impl<T> From<(T,)> for [T; 1] { ... }
    impl<T> From<(T, T)> for [T; 2] { ... }
    /* ... */
    impl<T> From<(T, T, T, T, T, T, T, T, T, T, T, T)> for [T; 12] { ... }
    ```
    
    IMO these are quite uncontroversial but note that they are, just like any other trait impls, insta-stable.
    Manishearth committed May 3, 2023
    Configuration menu
    Copy the full SHA
    0830f35 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#105452 - rcvalle:rust-cfi-3, r=bjorn3

    Add cross-language LLVM CFI support to the Rust compiler
    
    This PR adds cross-language LLVM Control Flow Integrity (CFI) support to the Rust compiler by adding the `-Zsanitizer-cfi-normalize-integers` option to be used with Clang `-fsanitize-cfi-icall-normalize-integers` for normalizing integer types (see https://reviews.llvm.org/D139395).
    
    It provides forward-edge control flow protection for C or C++ and Rust -compiled code "mixed binaries" (i.e., for when C or C++ and Rust -compiled code share the same virtual address space). For more information about LLVM CFI and cross-language LLVM CFI support for the Rust compiler, see design document in the tracking issue rust-lang#89653.
    
    Cross-language LLVM CFI can be enabled with -Zsanitizer=cfi and -Zsanitizer-cfi-normalize-integers, and requires proper (i.e., non-rustc) LTO (i.e., -Clinker-plugin-lto).
    
    Thank you again, `@bjorn3,` `@nikic,` `@samitolvanen,` and the Rust community for all the help!
    Manishearth committed May 3, 2023
    Configuration menu
    Copy the full SHA
    3e797ec View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#105695 - joboet:remove_generic_parker, r=m-…

    …ou-se
    
    Replace generic thread parker with explicit no-op parker
    
    With rust-lang#98391 merged, all platforms supporting threads now have their own parking implementations. Therefore, the generic implementation can be removed. On the remaining platforms (really just WASM without atomics), parking is not supported, so calls to `thread::park` now return instantly, which is [allowed by their API](https://doc.rust-lang.org/nightly/std/thread/fn.park.html). This is a change in behaviour, as spurious wakeups do not currently occur since all platforms guard against them. It is invalid to depend on this, but I'm still going to tag this as libs-api for confirmation.
    
    ```@rustbot``` label +T-libs +T-libs-api +A-atomic
    
    r? rust-lang/libs
    Manishearth committed May 3, 2023
    Configuration menu
    Copy the full SHA
    faa3169 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#107978 - ChrisDenton:nt-to-win32, r=m-ou-se

    Correctly convert an NT path to a Win32 path in `read_link`
    
    This can be done by simply changing the `\??\` prefix to `\\?\`.
    
    Currently it strips off the prefix which could lead to the wrong path being returned (e.g. if it's not a drive path or if the path contains trailing spaces, etc).
    
    r? libs
    Manishearth committed May 3, 2023
    Configuration menu
    Copy the full SHA
    c0f08bb View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#110371 - notriddle:notriddle/search-correct…

    …ions, r=GuillaumeGomez
    
    rustdoc: restructure type search engine to pick-and-use IDs
    
    Fixes rust-lang#110029
    
    Preview: https://notriddle.com/rustdoc-demo-html-3/search-corrections/std/index.html?search=-%3E%20streaming
    
    ![image](https://user-images.githubusercontent.com/1593513/233494900-ae77d5b4-e395-41f8-bbac-53ee55bb4a76.png)
    
    This change makes it so, instead of mixing string distance with type unification, function signature search works by mapping names to IDs at the start, reporting to the user any cases where it had to make corrections, and then matches with IDs when going through the items.
    
    This only changes function searches. Name searches are left alone, and corrections are only done when there's a single item in the search query.
    Manishearth committed May 3, 2023
    Configuration menu
    Copy the full SHA
    fa8aeb1 View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#110928 - loongarch-rs:tests, r=petrochenkov

    tests: Add tests for LoongArch64
    Manishearth committed May 3, 2023
    Configuration menu
    Copy the full SHA
    f135949 View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#110970 - est31:test_dirs_relax, r=petrochenkov

    tidy: remove ENTRY_LIMIT maximum checking and set it to 900
    
    Removes checking of `ENTRY_LIMIT` towards an actually reached maximum, and sets it to 900.
    
    The number 900 is safely below github's limit of 1000 entries for a directory.
    PRs to move tests can still decrease the sizes of various directories,
    but adjusting the limit won't be neccessary any more. In fact, such reduction PRs are a great idea so that no unrelated PR is hitting the limit: ideally there would always be a (manually maintained) safety margin between the actually reached maximum and `ENTRY_LIMIT`, for all directories.
    
    In general, the limit is a bad tool to direct people to put tests into
    fitting directories because when those are available, usually the limit
    is not hit, while the limit is hit in directories that have a weak
    substructure themselves. I got into this situation myself when writing rust-lang#110694: tests/ui/parser is hitting the limit, but has few directories of its own.
    
    Suggested by ``@petrochenkov`` in rust-lang#110694 (comment).
    
    r? ``@petrochenkov``
    Manishearth committed May 3, 2023
    Configuration menu
    Copy the full SHA
    10e7825 View commit details
    Browse the repository at this point in the history
  16. Rollup merge of rust-lang#111104 - Manishearth:icuup, r=compiler-errors

    Update ICU4X to 1.2
    
    Was released a couple weeks ago.
    
    Also needed to make progress on rust-lang#109302 (though this PR does not achieve that part just yet)
    Manishearth committed May 3, 2023
    Configuration menu
    Copy the full SHA
    8c53320 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    2986ec1 View commit details
    Browse the repository at this point in the history
  18. Rollup merge of rust-lang#111146 - petrochenkov:decident, r=compiler-…

    …errors
    
    rustc_middle: Fix `opt_item_ident` for non-local def ids
    
    Noticed while working on rust-lang#110855.
    Manishearth committed May 3, 2023
    Configuration menu
    Copy the full SHA
    26d0790 View commit details
    Browse the repository at this point in the history
  19. Rollup merge of rust-lang#111154 - djkoloski:use_builtin_ffx_isolatio…

    …n, r=tmandry
    
    Use builtin FFX isolation for Fuchsia test runner
    
    FFX has new builtin support for isolating the daemon's environment. This switches the manual isolation originally written to that new builtin feature.
    
    r? ```@tmandry```
    Manishearth committed May 3, 2023
    Configuration menu
    Copy the full SHA
    d66a026 View commit details
    Browse the repository at this point in the history