-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
Rollup of 6 pull requests #102230
Commits on Sep 4, 2022
-
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
Configuration menu - View commit details
-
Copy full SHA for a2cdbf8 - Browse repository at this point
Copy the full SHA a2cdbf8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 495fa48 - Browse repository at this point
Copy the full SHA 495fa48View commit details -
Configuration menu - View commit details
-
Copy full SHA for 31b7181 - Browse repository at this point
Copy the full SHA 31b7181View commit details
Commits on Sep 9, 2022
-
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>
Configuration menu - View commit details
-
Copy full SHA for 77f564a - Browse repository at this point
Copy the full SHA 77f564aView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 0fb1bf0 - Browse repository at this point
Copy the full SHA 0fb1bf0View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for aa42c4d - Browse repository at this point
Copy the full SHA aa42c4dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 170a8de - Browse repository at this point
Copy the full SHA 170a8deView commit details
Commits on Sep 21, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 3e6c9e5 - Browse repository at this point
Copy the full SHA 3e6c9e5View commit details
Commits on Sep 22, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 98a3230 - Browse repository at this point
Copy the full SHA 98a3230View commit details
Commits on Sep 23, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 0b2f717 - Browse repository at this point
Copy the full SHA 0b2f717View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8e0ea60 - Browse repository at this point
Copy the full SHA 8e0ea60View commit details -
Configuration menu - View commit details
-
Copy full SHA for 53049f7 - Browse repository at this point
Copy the full SHA 53049f7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6267c60 - Browse repository at this point
Copy the full SHA 6267c60View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 8b0feb8 - Browse repository at this point
Copy the full SHA 8b0feb8View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for f570d31 - Browse repository at this point
Copy the full SHA f570d31View commit details -
Configuration menu - View commit details
-
Copy full SHA for d78bc41 - Browse repository at this point
Copy the full SHA d78bc41View commit details -
Configuration menu - View commit details
-
Copy full SHA for 84666af - Browse repository at this point
Copy the full SHA 84666afView commit details -
Configuration menu - View commit details
-
Copy full SHA for ac06d9c - Browse repository at this point
Copy the full SHA ac06d9cView commit details
Commits on Sep 24, 2022
-
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>
Configuration menu - View commit details
-
Copy full SHA for 299ef91 - Browse repository at this point
Copy the full SHA 299ef91View commit details -
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_
Configuration menu - View commit details
-
Copy full SHA for 40a5f1c - Browse repository at this point
Copy the full SHA 40a5f1cView commit details -
Rollup merge of rust-lang#102088 - oli-obk:cleanups, r=bjorn3
Fix wrongly refactored Lift impl see rust-lang#101858 (comment) r? `@bjorn3`
Configuration menu - View commit details
-
Copy full SHA for 6a92d4e - Browse repository at this point
Copy the full SHA 6a92d4eView commit details -
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``
Configuration menu - View commit details
-
Copy full SHA for e556f44 - Browse repository at this point
Copy the full SHA e556f44View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 3f84092 - Browse repository at this point
Copy the full SHA 3f84092View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 7414529 - Browse repository at this point
Copy the full SHA 7414529View commit details