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

Closed
wants to merge 14 commits into from

Commits on Jun 8, 2022

  1. Don't build the compiler before building rust-demangler

    This saves a lot of time compiling.
    jyn514 committed Jun 8, 2022
    Configuration menu
    Copy the full SHA
    37f9cdb View commit details
    Browse the repository at this point in the history

Commits on Jun 11, 2022

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

Commits on Jun 16, 2022

  1. Configuration menu
    Copy the full SHA
    7c360dc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c1a2db3 View commit details
    Browse the repository at this point in the history

Commits on Jun 17, 2022

  1. impl<T: AsRawFd> for {Arc,Box}<T>

    This allows implementing traits that require a raw FD on Arc and Box.
    
    Previously, you'd have to add the function to the trait itself:
    
    ```rust
    trait MyTrait {
        fn as_raw_fd(&self) -> RawFd;
    }
    
    impl<T: MyTrait> MyTrait for Arc<T> {
        fn as_raw_fd(&self) -> RawFd {
            (**self).as_raw_fd()
        }
    }
    ```
    jyn514 committed Jun 17, 2022
    Configuration menu
    Copy the full SHA
    8f23586 View commit details
    Browse the repository at this point in the history
  2. Update cargo

    4 commits in 4d92f07f34ba7fb7d7f207564942508f46c225d3..8d42b0e8794ce3787c9f7d6d88b02ae80ebe8d19
    2022-06-10 01:11:04 +0000 to 2022-06-17 16:46:26 +0000
    - Use specific terminology for sparse HTTP-based registry (rust-lang/cargo#10764)
    - chore: Upgrade to clap 3.2 (rust-lang/cargo#10753)
    - Improve testing framework for http registries (rust-lang/cargo#10738)
    - doc: Improve example of using the links field (rust-lang/cargo#10728)
    arlosi committed Jun 17, 2022
    Configuration menu
    Copy the full SHA
    b59abdc View commit details
    Browse the repository at this point in the history

Commits on Jun 18, 2022

  1. Configuration menu
    Copy the full SHA
    86f979b View commit details
    Browse the repository at this point in the history
  2. Adding new eslint checks:

     * no-sequences
     * no-throw-literal
    GuillaumeGomez committed Jun 18, 2022
    Configuration menu
    Copy the full SHA
    ec78ff4 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#97437 - jyn514:impl-asrawfd-arc, r=dtolnay

    `impl<T: AsRawFd> AsRawFd for {Arc,Box}<T>`
    
    This allows implementing traits that require a raw FD on Arc and Box.
    
    Previously, you'd have to add the function to the trait itself:
    
    ```rust
    trait MyTrait {
        fn as_raw_fd(&self) -> RawFd;
    }
    
    impl<T: MyTrait> MyTrait for Arc<T> {
        fn as_raw_fd(&self) -> RawFd {
            (**self).as_raw_fd()
        }
    }
    ```
    
    In particular, this leads to lots of "multiple applicable items in scope" errors because you have to disambiguate `MyTrait::as_raw_fd` from `AsRawFd::as_raw_fd` at each call site. In generic contexts, when passing the type to a function that takes `impl AsRawFd` it's also sometimes required to use `T: MyTrait + AsRawFd`, which wouldn't be necessary if I could write `MyTrait: AsRawFd`.
    
    After this PR, the code can be simpler:
    ```rust
    trait MyTrait: AsRawFd {}
    
    impl<T: MyTrait> MyTrait for Arc<T> {}
    ```
    matthiaskrgr authored Jun 18, 2022
    Configuration menu
    Copy the full SHA
    15faca8 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#97511 - jyn514:faster-cargo-build, r=Mark-S…

    …imulacrum
    
    Don't build the compiler before building rust-demangler
    
    This saves a lot of time compiling, since rust-demangler doesn't actually use any unstable features.
    
    This is not quite ideal because it uses ToolStd, not ToolBootstrap, so rust-demangler would be able to add unstable library features in the future. But it's a lot better than before, and `builder.cargo` doesn't currently know how to handle stages other than 0.
    matthiaskrgr authored Jun 18, 2022
    Configuration menu
    Copy the full SHA
    33e04c1 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#98005 - compiler-errors:impossible-bounds, …

    …r=Mark-Simulacrum
    
    Add some tests for impossible bounds
    
    Adds test for rust-lang#93008
    Adds test for rust-lang#94680
    Closes rust-lang#94999
    Closes rust-lang#95640
    matthiaskrgr authored Jun 18, 2022
    Configuration menu
    Copy the full SHA
    1dad353 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#98165 - WaffleLapkin:once_things_renamings,…

    … r=m-ou-se
    
    once cell renamings
    
    This PR does the renamings proposed in rust-lang#74465 (comment)
    
    - Move/rename `lazy::{OnceCell, Lazy}` to `cell::{OnceCell, LazyCell}`
    - Move/rename `lazy::{SyncOnceCell, SyncLazy}` to `sync::{OnceLock, LazyLock}`
    
    (I used `Lazy...` instead of `...Lazy` as it seems to be more consistent, easier to pronounce, etc)
    
    `@rustbot` label +T-libs-api -T-libs
    matthiaskrgr authored Jun 18, 2022
    Configuration menu
    Copy the full SHA
    2be5797 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#98207 - arlosi:update-cargo, r=Dylan-DPC

    Update cargo
    
    4 commits in 4d92f07f34ba7fb7d7f207564942508f46c225d3..8d42b0e8794ce3787c9f7d6d88b02ae80ebe8d19
    2022-06-10 01:11:04 +0000 to 2022-06-17 16:46:26 +0000
    - Use specific terminology for sparse HTTP-based registry (rust-lang/cargo#10764)
    - chore: Upgrade to clap 3.2 (rust-lang/cargo#10753)
    - Improve testing framework for http registries (rust-lang/cargo#10738)
    - doc: Improve example of using the links field (rust-lang/cargo#10728)
    matthiaskrgr authored Jun 18, 2022
    Configuration menu
    Copy the full SHA
    896ea6c View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#98229 - GuillaumeGomez:eslint-checks, r=Dyl…

    …an-DPC
    
    Add new eslint checks
    
    r? `@Dylan-DPC`
    matthiaskrgr authored Jun 18, 2022
    Configuration menu
    Copy the full SHA
    965f499 View commit details
    Browse the repository at this point in the history