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 #82577

Merged
merged 40 commits into from
Feb 27, 2021
Merged

Rollup of 14 pull requests #82577

merged 40 commits into from
Feb 27, 2021

Commits on Feb 13, 2021

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

Commits on Feb 21, 2021

  1. Configuration menu
    Copy the full SHA
    fece59b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    17176cc View commit details
    Browse the repository at this point in the history
  3. Apply tidy check

    0yoyoyo committed Feb 21, 2021
    Configuration menu
    Copy the full SHA
    ce1a521 View commit details
    Browse the repository at this point in the history

Commits on Feb 22, 2021

  1. ⬆️ rust-analyzer

    lnicola committed Feb 22, 2021
    Configuration menu
    Copy the full SHA
    5f7d663 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    888811b View commit details
    Browse the repository at this point in the history
  3. Update test cases

    0yoyoyo committed Feb 22, 2021
    Configuration menu
    Copy the full SHA
    75d1e30 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    24c23f5 View commit details
    Browse the repository at this point in the history
  5. Add tests

    petrochenkov committed Feb 22, 2021
    Configuration menu
    Copy the full SHA
    c02d210 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    fc9d578 View commit details
    Browse the repository at this point in the history
  7. Add a size() function to WASI's MetadataExt.

    WASI's `filestat` type includes a size field, so expose it in
    `MetadataExt` via a `size()` function, similar to the corresponding Unix
    function.
    sunfishcode committed Feb 22, 2021
    Configuration menu
    Copy the full SHA
    e8dcc02 View commit details
    Browse the repository at this point in the history

Commits on Feb 23, 2021

  1. Enable API documentation for std::os::wasi.

    This adds API documentation support for `std::os::wasi` modeled after
    how `std::os::unix` works, so that WASI can be documented [here] along
    with the other platforms.
    
    [here]: https://doc.rust-lang.org/stable/std/os/index.html
    
    Two changes of particular interest:
    
     - This changes the `AsRawFd` for `io::Stdin` for WASI to return
       `libc::STDIN_FILENO` instead of `sys::stdio::Stdin.as_raw_fd()` (and
       similar for `Stdout` and `Stderr`), which matches how the `unix`
       version works. `STDIN_FILENO` etc. may not always be explicitly
       reserved at the WASI level, but as long as we have Rust's `std` and
       `libc`, I think it's reasonable to guarantee that we'll always use
       `libc::STDIN_FILENO` for stdin.
    
     - This duplicates the `osstr2str` utility function, rather than
       trying to share it across all the configurations that need it.
    sunfishcode committed Feb 23, 2021
    Configuration menu
    Copy the full SHA
    132ec26 View commit details
    Browse the repository at this point in the history
  2. Skip emitting closure diagnostic when closure_kind_origins has no entry

    Fixes rust-lang#82438
    
    This map is not guarnateed to have an entry for a closure.
    Aaron1011 committed Feb 23, 2021
    Configuration menu
    Copy the full SHA
    46db4ba View commit details
    Browse the repository at this point in the history

Commits on Feb 24, 2021

  1. Use small hash set in mir_inliner_callees

    Use small hash set in `mir_inliner_callees` to avoid temporary
    allocation when possible and quadratic behaviour for large number of
    callees.
    tmiasko committed Feb 24, 2021
    Configuration menu
    Copy the full SHA
    ef731b3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3ac62ca View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f291131 View commit details
    Browse the repository at this point in the history
  4. Use Oxform comma

    Co-authored-by: Nathan Nguyen <43092380+nhwn@users.noreply.github.com>
    pickfire and nhwn authored Feb 24, 2021
    Configuration menu
    Copy the full SHA
    e56364f View commit details
    Browse the repository at this point in the history
  5. Update cargo

    ehuss committed Feb 24, 2021
    Configuration menu
    Copy the full SHA
    ce80f28 View commit details
    Browse the repository at this point in the history
  6. Cast libc::STDIN_FILENO to RawFd.

    WASI's `RawFd` is a `u32`, while `libc` uses `c_int`.
    sunfishcode committed Feb 24, 2021
    Configuration menu
    Copy the full SHA
    9ce567e View commit details
    Browse the repository at this point in the history
  7. Use super:: to refer to WASI-specific names.

    This ensures that these names resolve to the right place even when
    building the WASI support on other platforms for generating the
    documentation.
    sunfishcode committed Feb 24, 2021
    Configuration menu
    Copy the full SHA
    0208fca View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    e66e263 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    94e75ac View commit details
    Browse the repository at this point in the history
  10. x.py fmt

    sunfishcode committed Feb 24, 2021
    Configuration menu
    Copy the full SHA
    7d5242a View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    5ad6088 View commit details
    Browse the repository at this point in the history

Commits on Feb 26, 2021

  1. Configuration menu
    Copy the full SHA
    67f1734 View commit details
    Browse the repository at this point in the history
  2. Add for example word to spotlight doc

    As suggested by GuillaumeGomez
    pickfire authored Feb 26, 2021
    Configuration menu
    Copy the full SHA
    27f7a2e View commit details
    Browse the repository at this point in the history

Commits on Feb 27, 2021

  1. Rollup merge of rust-lang#81794 - lcnr:relaxed_adt_unsize-tracking-is…

    …sue, r=camelid
    
    update tracking issue for `relaxed_struct_unsize`
    
    forgot to do this before rust-lang#80726 got merged. The tracking issue is rust-lang#81793
    Dylan-DPC authored Feb 27, 2021
    Configuration menu
    Copy the full SHA
    db8ac16 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#82057 - upsuper-forks:cstr, r=davidtwco,wes…

    …leywiser
    
    Replace const_cstr with cstr crate
    
    This PR replaces the `const_cstr` macro inside `rustc_data_structures` with `cstr` macro from [cstr](https://crates.io/crates/cstr) crate.
    
    The two macros basically serve the same purpose, which is to generate `&'static CStr` from a string literal. `cstr` is better because it validates the literal at compile time, while the existing `const_cstr` does it at runtime when `debug_assertions` is enabled. In addition, the value `cstr` generates can be used in constant context (which is seemingly not needed anywhere currently, though).
    Dylan-DPC authored Feb 27, 2021
    Configuration menu
    Copy the full SHA
    cabe972 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#82370 - 0yoyoyo:update-issue-81650-point-an…

    …onymous-lifetime, r=estebank
    
    Improve anonymous lifetime note to indicate the target span
    
    Improvement for  rust-lang#81650
    Cc rust-lang#81995
    
    Message after this improvement:
    (Improve note in the middle)
    
    ```
    error[E0311]: the parameter type `T` may not live long enough
      --> src/main.rs:25:11
       |
    24 | fn play_with<T: Animal + Send>(scope: &Scope, animal: T) {
       |              -- help: consider adding an explicit lifetime bound...: `T: 'a +`
    25 |     scope.spawn(move |_| {
       |           ^^^^^
       |
    note: the parameter type `T` must be valid for the anonymous lifetime defined on the function body at 24:40...
      --> src/main.rs:24:40
       |
    24 | fn play_with<T: Animal + Send>(scope: &Scope, animal: T) {
       |                                        ^^^^^
    note: ...so that the type `[closure@src/main.rs:25:17: 27:6]` will meet its required lifetime bounds
      --> src/main.rs:25:11
       |
    25 |     scope.spawn(move |_| {
       |           ^^^^^
    ```
    
    r? ``````@estebank``````
    Dylan-DPC authored Feb 27, 2021
    Configuration menu
    Copy the full SHA
    f0c98b1 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#82394 - lnicola:rust-analyzer-2021-02-22, r…

    …=jonas-schievink
    
    ⬆️ rust-analyzer
    Dylan-DPC authored Feb 27, 2021
    Configuration menu
    Copy the full SHA
    b89357b View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#82396 - pickfire:patch-5, r=GuillaumeGomez

    Add Future trait for doc_spotlight feature doc
    Dylan-DPC authored Feb 27, 2021
    Configuration menu
    Copy the full SHA
    9f95666 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#82404 - nagisa:nagisa/hexagon-enums-llvm-co…

    …mps, r=petrochenkov
    
    Test hexagon-enum only when llvm target is present
    
    See rust-lang#82379 (comment)
    
    r? ``````@petrochenkov``````
    
    ``````@bors`````` rollup
    Dylan-DPC authored Feb 27, 2021
    Configuration menu
    Copy the full SHA
    2d175bb View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#82419 - petrochenkov:inertord, r=Aaron1011

    expand: Preserve order of inert attributes during expansion
    
    Fixes rust-lang#67839
    Fixes rust-lang#81871
    r? `````@Aaron1011`````
    Dylan-DPC authored Feb 27, 2021
    Configuration menu
    Copy the full SHA
    76b40d2 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#82420 - sunfishcode:wasi-docs, r=alexcrichton

    Enable API documentation for `std::os::wasi`.
    
    This adds API documentation support for `std::os::wasi` modeled after
    how `std::os::unix` works, so that WASI can be documented [here] along
    with the other platforms.
    
    [here]: https://doc.rust-lang.org/stable/std/os/index.html
    
    Two changes of particular interest:
    
     - This changes the `AsRawFd` for `io::Stdin` for WASI to return
       `libc::STDIN_FILENO` instead of `sys::stdio::Stdin.as_raw_fd()` (and
       similar for `Stdout` and `Stderr`), which matches how the `unix`
       version works. `STDIN_FILENO` etc. may not always be explicitly
       reserved at the WASI level, but as long as we have Rust's `std` and
       `libc`, I think it's reasonable to guarantee that we'll always use
       `libc::STDIN_FILENO` for stdin.
    
     - This duplicates the `osstr2str` utility function, rather than
       trying to share it across all the configurations that need it.
    
    r? ```@alexcrichton```
    Dylan-DPC authored Feb 27, 2021
    Configuration menu
    Copy the full SHA
    f5b68a4 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#82421 - sunfishcode:wasi-metadata-size, r=a…

    …lexcrichton
    
    Add a `size()` function to WASI's `MetadataExt`.
    
    WASI's `filestat` type includes a size field, so expose it in
    `MetadataExt` via a `size()` function, similar to the corresponding Unix
    function.
    
    r? ``````@alexcrichton``````
    Dylan-DPC authored Feb 27, 2021
    Configuration menu
    Copy the full SHA
    d80033f View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#82442 - Aaron1011:fix/closure-mut-crash, r=…

    …matthewjasper
    
    Skip emitting closure diagnostic when closure_kind_origins has no entry
    
    Fixes rust-lang#82438
    
    This map is not guarnateed to have an entry for a closure.
    Dylan-DPC authored Feb 27, 2021
    Configuration menu
    Copy the full SHA
    5c7b383 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#82473 - de-vri-es:android-x86-accept4, r=m-…

    …ou-se
    
    Use libc::accept4 on Android instead of raw syscall.
    
    This PR replaces the use of a raw `accept4` syscall with `libc::accept4`. This was originally added (by me) because `std` couldn't update to the latest `libc` with `accept4` support for android. By now, libc is already on 0.2.85, so the workaround can be removed.
    
    `@rustbot` label +O-android +T-libs-impl
    Dylan-DPC authored Feb 27, 2021
    Configuration menu
    Copy the full SHA
    b664e4b View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#82482 - tmiasko:small-cycles, r=varkor

    Use small hash set in `mir_inliner_callees`
    
    Use small hash set in `mir_inliner_callees` to avoid temporary
    allocation when possible and quadratic behaviour for large number of
    callees.
    Dylan-DPC authored Feb 27, 2021
    Configuration menu
    Copy the full SHA
    2942cf5 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#82490 - ehuss:update-cargo, r=ehuss

    Update cargo
    
    11 commits in bf5a5d5e5d3ae842a63bfce6d070dfd438cf6070..572e201536dc2e4920346e28037b63c0f4d88b3c
    2021-02-18 15:49:14 +0000 to 2021-02-24 16:51:20 +0000
    - Pass the error message format to rustdoc (rust-lang/cargo#9128)
    - Fix test target_in_environment_contains_lower_case (rust-lang/cargo#9203)
    - Fix hang on broken stderr. (rust-lang/cargo#9201)
    - Make it more clear which module is being tested when running cargo test (rust-lang/cargo#9195)
    - Updates to edition handling. (rust-lang/cargo#9184)
    - Add --cfg and --rustc-cfg flags to output compiler configuration (rust-lang/cargo#9002)
    - Run rustdoc doctests relative to the workspace (rust-lang/cargo#9105)
    - Add support for [env] section in .cargo/config.toml (rust-lang/cargo#9175)
    - Add schema field and `features2` to the index. (rust-lang/cargo#9161)
    - Document the default location where cargo install emitting build artifacts (rust-lang/cargo#9189)
    - Do not exit prematurely if anything failed installing. (rust-lang/cargo#9185)
    Dylan-DPC authored Feb 27, 2021
    Configuration menu
    Copy the full SHA
    a1f7540 View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#82494 - estebank:issue-82455, r=petrochenkov

    Substitute erased lifetimes on bad placeholder type
    
    Fix rust-lang#82455.
    Dylan-DPC authored Feb 27, 2021
    Configuration menu
    Copy the full SHA
    95b31cf View commit details
    Browse the repository at this point in the history