-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Rollup of 10 pull requests #102449
Commits on Aug 29, 2022
-
`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`
Configuration menu - View commit details
-
Copy full SHA for c846a2a - Browse repository at this point
Copy the full SHA c846a2aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 09bbc42 - Browse repository at this point
Copy the full SHA 09bbc42View commit details -
Configuration menu - View commit details
-
Copy full SHA for bda1262 - Browse repository at this point
Copy the full SHA bda1262View commit details -
Re-introduce
unstable
attributes.Add `#[unstable(feature = "os_fd", issue = "98699")]` to the new `pub use` declarations.
Configuration menu - View commit details
-
Copy full SHA for 7d80510 - Browse repository at this point
Copy the full SHA 7d80510View commit details
Commits on Sep 2, 2022
-
Configuration menu - View commit details
-
Copy full SHA for a7f3ba9 - Browse repository at this point
Copy the full SHA a7f3ba9View commit details
Commits on Sep 21, 2022
-
Configuration menu - View commit details
-
Copy full SHA for f9ef7e2 - Browse repository at this point
Copy the full SHA f9ef7e2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7adfb44 - Browse repository at this point
Copy the full SHA 7adfb44View commit details
Commits on Sep 25, 2022
-
Configuration menu - View commit details
-
Copy full SHA for fdda7e0 - Browse repository at this point
Copy the full SHA fdda7e0View commit details -
Configuration menu - View commit details
-
Copy full SHA for db0877f - Browse repository at this point
Copy the full SHA db0877fView commit details
Commits on Sep 28, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 356a52c - Browse repository at this point
Copy the full SHA 356a52cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4fdc78e - Browse repository at this point
Copy the full SHA 4fdc78eView commit details -
Configuration menu - View commit details
-
Copy full SHA for a670897 - Browse repository at this point
Copy the full SHA a670897View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9ccb851 - Browse repository at this point
Copy the full SHA 9ccb851View commit details -
Configuration menu - View commit details
-
Copy full SHA for a913277 - Browse repository at this point
Copy the full SHA a913277View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5baceaf - Browse repository at this point
Copy the full SHA 5baceafView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for b707eff - Browse repository at this point
Copy the full SHA b707effView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for f55ea41 - Browse repository at this point
Copy the full SHA f55ea41View commit details -
rustdoc: remove bad CSS font-weight on
.impl
,.method
, etcThis 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.
Configuration menu - View commit details
-
Copy full SHA for 3f21f07 - Browse repository at this point
Copy the full SHA 3f21f07View commit details
Commits on Sep 29, 2022
-
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````
Configuration menu - View commit details
-
Copy full SHA for cfe8ee2 - Browse repository at this point
Copy the full SHA cfe8ee2View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 115b5c5 - Browse repository at this point
Copy the full SHA 115b5c5View commit details -
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``
Configuration menu - View commit details
-
Copy full SHA for 399d8c0 - Browse repository at this point
Copy the full SHA 399d8c0View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 8fdce46 - Browse repository at this point
Copy the full SHA 8fdce46View commit details -
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``
Configuration menu - View commit details
-
Copy full SHA for 5486864 - Browse repository at this point
Copy the full SHA 5486864View commit details -
Rollup merge of rust-lang#102416 - lcnr:specialization-fixme, r=compi…
…ler-errors remove FIXME, improve documentation r? types
Configuration menu - View commit details
-
Copy full SHA for 5a268b1 - Browse repository at this point
Copy the full SHA 5a268b1View commit details -
Rollup merge of rust-lang#102433 - RalfJung:temp-dir-typo, r=thomcc
env::temp_dir: fix a typo
Configuration menu - View commit details
-
Copy full SHA for d9097e1 - Browse repository at this point
Copy the full SHA d9097e1View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 5e7ba4f - Browse repository at this point
Copy the full SHA 5e7ba4fView commit details -
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)
Configuration menu - View commit details
-
Copy full SHA for 6d7e9e6 - Browse repository at this point
Copy the full SHA 6d7e9e6View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for e609c73 - Browse repository at this point
Copy the full SHA e609c73View commit details