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 10 pull requests #102449

Closed
wants to merge 28 commits into from
Closed

Commits on Aug 29, 2022

  1. Make std::os::fd public.

    `std::os::fd` defines types like `OwnedFd` and `RawFd` and is common
    between Unix and non-Unix platforms that share a basic file-descriptor
    concept. Rust currently uses this internally to simplify its own code,
    but it would be useful for external users in the same way, so make it
    public.
    
    This means that `OwnedFd` etc. will all appear in three places, for
    example on unix platforms:
     - `std::os::fd::OwnedFd`
     - `std::os::unix::io::OwnedFd`
     - `std::os::unix::prelude::OwnedFd`
    sunfishcode committed Aug 29, 2022
    Configuration menu
    Copy the full SHA
    c846a2a View commit details
    Browse the repository at this point in the history
  2. Update asrawfd.js.

    sunfishcode committed Aug 29, 2022
    Configuration menu
    Copy the full SHA
    09bbc42 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    bda1262 View commit details
    Browse the repository at this point in the history
  4. Re-introduce unstable attributes.

    Add `#[unstable(feature = "os_fd", issue = "98699")]` to the new
    `pub use` declarations.
    sunfishcode committed Aug 29, 2022
    Configuration menu
    Copy the full SHA
    7d80510 View commit details
    Browse the repository at this point in the history

Commits on Sep 2, 2022

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

Commits on Sep 21, 2022

  1. Configuration menu
    Copy the full SHA
    f9ef7e2 View commit details
    Browse the repository at this point in the history
  2. add trivial comments

    chenyukang committed Sep 21, 2022
    Configuration menu
    Copy the full SHA
    7adfb44 View commit details
    Browse the repository at this point in the history

Commits on Sep 25, 2022

  1. Configuration menu
    Copy the full SHA
    fdda7e0 View commit details
    Browse the repository at this point in the history
  2. trivial fix on fallback

    chenyukang committed Sep 25, 2022
    Configuration menu
    Copy the full SHA
    db0877f View commit details
    Browse the repository at this point in the history

Commits on Sep 28, 2022

  1. add regression test

    Rageking8 committed Sep 28, 2022
    Configuration menu
    Copy the full SHA
    356a52c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4fdc78e View commit details
    Browse the repository at this point in the history
  3. add test

    b-naber committed Sep 28, 2022
    Configuration menu
    Copy the full SHA
    a670897 View commit details
    Browse the repository at this point in the history
  4. update fixme

    lcnr committed Sep 28, 2022
    Configuration menu
    Copy the full SHA
    9ccb851 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a913277 View commit details
    Browse the repository at this point in the history
  6. env::temp_dir: fix a typo

    RalfJung committed Sep 28, 2022
    Configuration menu
    Copy the full SHA
    5baceaf View commit details
    Browse the repository at this point in the history
  7. rustdoc: cut margin-top from first header in docblock

    Fixes a regression caused by 8846c08, where
    a header's top margin used to be collapsed, but isn't any more.
    notriddle committed Sep 28, 2022
    Configuration menu
    Copy the full SHA
    b707eff View commit details
    Browse the repository at this point in the history
  8. rustdoc: clean up "normalize.css 8" input override CSS

    These rules were copied from normalize.css 3, and are mostly redundant.
    
    * `optgroup` isn't used in rustdoc at all
    * `textarea` is only used for the "copy" button, so it's not visible
    * The remaining buttons and inputs mostly have styles set anyway.
    * We should never be setting `color` without also setting the
      background to something. Otherwise, you get white-on-gray
      text. That seems to be [the reason] why `normalize.css` changed this.
    
    [the reason]: necolas/normalize.css#502
    notriddle committed Sep 28, 2022
    Configuration menu
    Copy the full SHA
    f55ea41 View commit details
    Browse the repository at this point in the history
  9. rustdoc: remove bad CSS font-weight on .impl, .method, etc

    This line was added in c494a06, because at
    the time, the headers had these classes on them. Now, the headers are
    children of the `<section>` with the class on it.
    
    This commit also adds a test case, to make sure the srclink font weight does
    not regress again.
    notriddle committed Sep 28, 2022
    Configuration menu
    Copy the full SHA
    3f21f07 View commit details
    Browse the repository at this point in the history

Commits on Sep 29, 2022

  1. Rollup merge of rust-lang#98368 - sunfishcode:sunfishcode/std-os-fd, …

    …r=joshtriplett
    
    Make `std::os::fd` public.
    
    `std::os::fd` defines types like `OwnedFd` and `RawFd` and is common
    between Unix and non-Unix platforms that share a basic file-descriptor
    concept. Rust currently uses this internally to simplify its own code,
    but it would be useful for external users in the same way, so make it
    public.
    
    This means that `OwnedFd` etc. will all appear in three places, for
    example on unix platforms:
     - `std::os::fd::OwnedFd`
     - `std::os::unix::io::OwnedFd`
     - `std::os::unix::prelude::OwnedFd`
    
    r? ````@joshtriplett````
    JohnTitor authored Sep 29, 2022
    Configuration menu
    Copy the full SHA
    cfe8ee2 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#102085 - chenyukang:code-refactor, r=cjgillot

    Code refactoring smart_resolve_report_errors
    
    `smart_resolve_report_errors` https://github.com/rust-lang/rust/blob/4ecfdfac51b159f68fce608792affb34a70e6f73/compiler/rustc_resolve/src/late/diagnostics.rs#L143
    is almost 600 lines of code, we should do some code refactoring.
    JohnTitor authored Sep 29, 2022
    Configuration menu
    Copy the full SHA
    115b5c5 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#102368 - beetrees:nano-niche, r=joshtriplett

    Add a niche to `Duration`, unix `SystemTime`, and non-apple `Instant`
    
    As the nanoseconds fields is always between `0` and `(NANOS_PER_SEC - 1)` inclusive, use the `rustc_layout_scalar_valid_range` attributes to create a niche in the nanosecond field of `Duration` and `Timespec` (which is used to implement unix `SystemTime` and non-apple unix `Instant`; windows `Instant` is implemented with `Duration` and therefore will also benefit). This change has the benefit of making `Option<T>` the same size as `T` for the previously mentioned types. Also shrinks the nanoseconds field of `Timespec` to a `u32` as nanoseconds do not need the extra range of an `i64`, shrinking `Timespec` by 4 bytes on 32-bit platforms.
    
    r? ``@joshtriplett``
    JohnTitor authored Sep 29, 2022
    Configuration menu
    Copy the full SHA
    399d8c0 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#102393 - Rageking8:add-regression-test-for-…

    …issue-94923, r=JohnTitor
    
    Add regression test for issue 94923
    
    Fixes rust-lang#94923
    JohnTitor authored Sep 29, 2022
    Configuration menu
    Copy the full SHA
    8fdce46 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#102399 - b-naber:binder-print-ice, r=lcnr

    Account for use of index-based lifetime names in print of binder
    
    Fixes rust-lang#102374
    
    r? ``@lcnr``
    
    cc ``@steffahn``
    JohnTitor authored Sep 29, 2022
    Configuration menu
    Copy the full SHA
    5486864 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#102416 - lcnr:specialization-fixme, r=compi…

    …ler-errors
    
    remove FIXME, improve documentation
    
    r? types
    JohnTitor authored Sep 29, 2022
    Configuration menu
    Copy the full SHA
    5a268b1 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#102433 - RalfJung:temp-dir-typo, r=thomcc

    env::temp_dir: fix a typo
    JohnTitor authored Sep 29, 2022
    Configuration menu
    Copy the full SHA
    d9097e1 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#102436 - notriddle:notriddle/normalize-form…

    …, r=GuillaumeGomez
    
    rustdoc: clean up "normalize.css 8" input override CSS
    
    These rules were copied from normalize.css 3, and are mostly redundant.
    
    * `optgroup` isn't used in rustdoc at all
    * `textarea` is only used for the "copy" button, so it's not visible
    * The remaining buttons and inputs mostly have styles set anyway.
    * We should never be setting `color` without also setting the background to something. Otherwise, you get white-on-gray text. That seems to be [the reason] why `normalize.css` changed this.
    
    [the reason]: necolas/normalize.css#502
    JohnTitor authored Sep 29, 2022
    Configuration menu
    Copy the full SHA
    5e7ba4f View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#102437 - notriddle:notriddle/margin-top-h2,…

    … r=jsha
    
    rustdoc: cut margin-top from first header in docblock
    
    Fixes a regression caused by 8846c08, where a header's top margin used to be collapsed, but isn't any more.
    
    ## Before
    
    ![image](https://user-images.githubusercontent.com/1593513/192893092-8e158bf7-ae18-41ef-8f11-6f34c724d345.png)
    
    ## After
    
    ![image](https://user-images.githubusercontent.com/1593513/192893139-d6ee06bf-9c0b-4194-bd5d-636312c89367.png)
    JohnTitor authored Sep 29, 2022
    Configuration menu
    Copy the full SHA
    6d7e9e6 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#102442 - notriddle:notriddle/header-weight,…

    … r=GuillaumeGomez
    
    rustdoc: remove bad CSS font-weight on `.impl`, `.method`, etc
    
    This line was added in c494a06, because at the time, the headers had these classes on them. Now, the headers are children of the `<section>` with the class on it.
    
    This commit also adds a test case, to make sure the srclink font weight does not regress again.
    JohnTitor authored Sep 29, 2022
    Configuration menu
    Copy the full SHA
    e609c73 View commit details
    Browse the repository at this point in the history