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

Closed
wants to merge 24 commits into from
Closed

Commits on Sep 4, 2022

  1. Make code worling w/ pointers in `library/std/src/sys/sgx/abi/usercal…

    …ls/alloc.rs` nicer
    
    - Use `.addr()` instead of `as`-cast
    - Use `add` instead of `offset` and remove some `as isize` casts by doing that
    - Remove some casts
    WaffleLapkin committed Sep 4, 2022
    Configuration menu
    Copy the full SHA
    a2cdbf8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    495fa48 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    31b7181 View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2022

  1. Add IsTerminal trait to determine if a descriptor or handle is a te…

    …rminal
    
    The UNIX and WASI implementations use `isatty`. The Windows
    implementation uses the same logic the `atty` crate uses, including the
    hack needed to detect msys terminals.
    
    Implement this trait for `File` and for `Stdin`/`Stdout`/`Stderr` and
    their locked counterparts on all platforms. On UNIX and WASI, implement
    it for `BorrowedFd`/`OwnedFd`. On Windows, implement it for
    `BorrowedHandle`/`OwnedHandle`.
    
    Based on rust-lang#91121
    
    Co-authored-by: Matt Wilkinson <mattwilki17@gmail.com>
    joshtriplett and mattwilkinsonn committed Sep 9, 2022
    Configuration menu
    Copy the full SHA
    77f564a View commit details
    Browse the repository at this point in the history
  2. Make is_terminal fail fast if a process has no console at all

    If a process has no console, it'll have NULL in place of a console
    handle, so return early with `false` in that case without making any OS
    calls.
    joshtriplett committed Sep 9, 2022
    Configuration menu
    Copy the full SHA
    0fb1bf0 View commit details
    Browse the repository at this point in the history
  3. Rewrite FILE_NAME_INFO handling to avoid enlarging slice reference

    Rather than referencing a slice's pointer and then creating a new slice
    with a longer length, offset from the base structure pointer instead.
    This makes some choices of Rust semantics happier.
    joshtriplett committed Sep 9, 2022
    Configuration menu
    Copy the full SHA
    aa42c4d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    170a8de View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2022

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

Commits on Sep 22, 2022

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

Commits on Sep 23, 2022

  1. Added const_closure

    onestacked committed Sep 23, 2022
    Configuration menu
    Copy the full SHA
    0b2f717 View commit details
    Browse the repository at this point in the history
  2. Constifed Try trait

    onestacked committed Sep 23, 2022
    Configuration menu
    Copy the full SHA
    8e0ea60 View commit details
    Browse the repository at this point in the history
  3. Fixed Doc-Tests

    onestacked committed Sep 23, 2022
    Configuration menu
    Copy the full SHA
    53049f7 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6267c60 View commit details
    Browse the repository at this point in the history
  5. rustdoc: remove no-op mobile CSS #source-sidebar { z-index: 11 }

    This rule became redundant in 07e3f99.
    When `#source-sidebar` became nested below `.sidebar`, it went from being
    `position: fixed` to `position: static`, and according to MDN's [z-index]
    documentation, this means it has no effect.
    
    [z-index]: https://developer.mozilla.org/en-US/docs/Web/CSS/z-index
    notriddle committed Sep 23, 2022
    Configuration menu
    Copy the full SHA
    8b0feb8 View commit details
    Browse the repository at this point in the history
  6. rustdoc: remove no-op CSS rule #source-sidebar { z-index: 1 }

    This rule became redundant in 07e3f99.
    When `#source-sidebar` became nested below `.sidebar`, it went from being
    `position: fixed` to `position: static`, and according to MDN's [z-index]
    documentation, this means it has no effect.
    
    [z-index]: https://developer.mozilla.org/en-US/docs/Web/CSS/z-index
    notriddle committed Sep 23, 2022
    Configuration menu
    Copy the full SHA
    f570d31 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    d78bc41 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    84666af View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    ac06d9c View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2022

  1. Rollup merge of rust-lang#98033 - joshtriplett:is-terminal-fd-handle,…

    … r=thomcc
    
    Add `IsTerminal` trait to determine if a descriptor or handle is a terminal
    
    The UNIX implementation uses `isatty`. The Windows implementation uses
    the same logic the `atty` crate uses, including the hack needed to
    detect msys terminals.
    
    Implement this trait for `Stdin`/`Stdout`/`Stderr`/`File` on all
    platforms. On Unix, implement it for `BorrowedFd`/`OwnedFd`. On Windows,
    implement it for `BorrowedHandle`/`OwnedHandle`.
    
    Based on rust-lang#91121
    
    Co-authored-by: Matt Wilkinson <mattwilki17@gmail.com>
    Dylan-DPC and mattwilkinsonn committed Sep 24, 2022
    Configuration menu
    Copy the full SHA
    299ef91 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#100823 - WaffleLapkin:less_offsets, r=scottmcm

    Refactor some `std` code that works with pointer offstes
    
    This PR replaces `pointer::offset` in standard library with `pointer::add` and `pointer::sub`, [re]moving some casts and using `.addr()` while we are at it.
    
    This is a more complicated refactor than all other sibling PRs, so take a closer look when reviewing, please 😃  (though I've checked this multiple times and it looks fine).
    
    r? ```@scottmcm```
    
    _split off from rust-lang#100746, continuation of #100822_
    Dylan-DPC committed Sep 24, 2022
    Configuration menu
    Copy the full SHA
    40a5f1c View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#102088 - oli-obk:cleanups, r=bjorn3

    Fix wrongly refactored Lift impl
    
    see rust-lang#101858 (comment)
    
    r? `@bjorn3`
    Dylan-DPC committed Sep 24, 2022
    Configuration menu
    Copy the full SHA
    6a92d4e View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#102186 - ink-feather-org:const_try_trait, r…

    …=fee1-dead
    
    Add const_closure, Constify Try trait
    
    Adds a struct for creating const `FnMut` closures (for now just copy pasted form my [const_closure](https://crates.io/crates/const_closure) crate).
    I'm not sure if this way is how it should be done.
    The `ConstFnClosure` and `ConstFnOnceClosure` structs can probably also be entirely removed.
    
    This is then used to constify the try trait.
    
    Not sure if i should add const_closure in its own pr and maybe make it public behind a perma-unstable feature gate.
    
    cc ``@fee1-dead``  ``@rust-lang/wg-const-eval``
    Dylan-DPC committed Sep 24, 2022
    Configuration menu
    Copy the full SHA
    e556f44 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#102203 - notriddle:notriddle/source-sidebar…

    …, r=GuillaumeGomez
    
    rustdoc: remove no-op CSS `#source-sidebar { z-index }`
    
    This rule became redundant in 07e3f99. When `#source-sidebar` became nested below `.sidebar`, it went from being `position: fixed` to `position: static`, and according to MDN's [z-index] documentation, this means it has no effect.
    
    [z-index]: https://developer.mozilla.org/en-US/docs/Web/CSS/z-index
    Dylan-DPC committed Sep 24, 2022
    Configuration menu
    Copy the full SHA
    3f84092 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#102210 - notriddle:notriddle/did-you-mean, …

    …r=cjgillot
    
    diagnostics: avoid syntactically invalid suggestion in if conditionals
    
    Fixes rust-lang#101065
    Dylan-DPC committed Sep 24, 2022
    Configuration menu
    Copy the full SHA
    7414529 View commit details
    Browse the repository at this point in the history