-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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 8 pull requests #101282
Rollup of 8 pull requests #101282
Commits on Aug 23, 2022
-
Support eager and lazy methods for providing references and values
There are times where computing a value may be cheap, or where computing a reference may be expensive, so this fills out the possibilities.
Configuration menu - View commit details
-
Copy full SHA for 38de102 - Browse repository at this point
Copy the full SHA 38de102View commit details -
Add `Provider::{would_be_satisfied_by_value_of,would_be_satisfied_by_…
…ref_of}` While the `provide_*` methods already short-circuit when a value has been provided, there are times where an expensive computation is needed to determine if the `provide_*` method can even be called.
Configuration menu - View commit details
-
Copy full SHA for 260ec93 - Browse repository at this point
Copy the full SHA 260ec93View commit details
Commits on Aug 29, 2022
-
Try normalizing types without RevealAll in ParamEnv in mir validation
Before, the MIR validator used RevealAll in its ParamEnv for type checking. This could cause false negatives in some cases due to RevealAll ParamEnvs not always use all predicates as expected here. Since some MIR passes like inlining use RevealAll as well, keep using it in the MIR validator too, but when it fails usign RevealAll, also try the check without it, to stop false negatives.
Configuration menu - View commit details
-
Copy full SHA for 81a583c - Browse repository at this point
Copy the full SHA 81a583cView commit details -
Only normalize once in mir validator typechecker
Before, it called `normalize_erasing_regions` twice since `equal_up_to_regions` called it as well for both types.
Configuration menu - View commit details
-
Copy full SHA for 96d4137 - Browse repository at this point
Copy the full SHA 96d4137View commit details -
`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 Aug 30, 2022
-
[drop tracking] Use parent expression for scope
Previously we were just using the parent node as the scope for a temporary value, but it turns out this is too narrow. For example, in an expression like Foo { b: &42, a: async { 0 }.await, } the scope for the &42 was set to the ExprField node for `b: &42`, when we actually want to use the Foo struct expression. We fix this by recursively searching through parent nodes until we find a Node::Expr. It may be that we don't find one, and if so that's okay, we will just fall back on the enclosing temporary scope which is always sufficient.
Configuration menu - View commit details
-
Copy full SHA for b9d3f65 - Browse repository at this point
Copy the full SHA b9d3f65View commit details
Commits on Aug 31, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 803e35a - Browse repository at this point
Copy the full SHA 803e35aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4304d1d - Browse repository at this point
Copy the full SHA 4304d1dView commit details -
Configuration menu - View commit details
-
Copy full SHA for b112bfe - Browse repository at this point
Copy the full SHA b112bfeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 54645e8 - Browse repository at this point
Copy the full SHA 54645e8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3ed9310 - Browse repository at this point
Copy the full SHA 3ed9310View commit details -
Configuration menu - View commit details
-
Copy full SHA for f7e462a - Browse repository at this point
Copy the full SHA f7e462aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 32e1823 - Browse repository at this point
Copy the full SHA 32e1823View commit details -
Configuration menu - View commit details
-
Copy full SHA for bd8e312 - Browse repository at this point
Copy the full SHA bd8e312View commit details -
port of locator.rs to SessionDiagnostics, fix some of the errors
revealed by tests, manually add a panic to test for dead code
Configuration menu - View commit details
-
Copy full SHA for d0ba1fb - Browse repository at this point
Copy the full SHA d0ba1fbView commit details -
respond to review feedback: mainly eliminate as many conversions as p…
…ossible... - ... when creating diagnostics in rustc_metadata - use the error_code! macro - pass macro output to diag.code() - use fluent from within manual implementation of SessionDiagnostic - emit the untested errors in case they occur in the wild - stop panicking in the probably-not-dead code, add fixme to write test
Configuration menu - View commit details
-
Copy full SHA for 0d65819 - Browse repository at this point
Copy the full SHA 0d65819View commit details -
Configuration menu - View commit details
-
Copy full SHA for 30adfd6 - Browse repository at this point
Copy the full SHA 30adfd6View commit details -
Configuration menu - View commit details
-
Copy full SHA for f921f56 - Browse repository at this point
Copy the full SHA f921f56View commit details -
Fix bad target name in Walkthrough
Walkthrough currently say: ``` rustup target add aarch_64-fuchsia ``` but should say ``` rustup target add aarch64-fuchsia ```
Configuration menu - View commit details
-
Copy full SHA for a928255 - Browse repository at this point
Copy the full SHA a928255View commit details
Commits on Sep 1, 2022
-
Configuration menu - View commit details
-
Copy full SHA for d8b572b - Browse repository at this point
Copy the full SHA d8b572bView commit details -
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 eb14b5d - Browse repository at this point
Copy the full SHA eb14b5dView commit details -
Rollup merge of rust-lang#99583 - shepmaster:provider-plus-plus, r=yaahc
Add additional methods to the Demand type This adds on to the original tracking issue rust-lang#96024 r? ``````@yaahc``````
Configuration menu - View commit details
-
Copy full SHA for fbe63c2 - Browse repository at this point
Copy the full SHA fbe63c2View commit details -
Rollup merge of rust-lang#100121 - Nilstrieb:mir-validator-param-env,…
… r=oli-obk Try normalizing types without RevealAll in ParamEnv in MIR validation Before, the MIR validator used RevealAll in its ParamEnv for type checking. This could cause false negatives in some cases due to RevealAll ParamEnvs not always use all predicates as expected here. Since some MIR passes like inlining use RevealAll as well, keep using it in the MIR validator too, but when it fails usign RevealAll, also try the check without it, to stop false negatives. Fixes rust-lang#99866 cc `````@compiler-errors````` who nicely helped me on zulip
Configuration menu - View commit details
-
Copy full SHA for 6a3a886 - Browse repository at this point
Copy the full SHA 6a3a886View commit details -
Rollup merge of rust-lang#100928 - CleanCut:rustc_metadata_diagnostic…
…s, r=davidtwco Migrate rustc_metadata to SessionDiagnostics Migrate rustc_metadata to SessionDiagnostics. Part of rust-lang#100717
Configuration menu - View commit details
-
Copy full SHA for 1116b4d - Browse repository at this point
Copy the full SHA 1116b4dView commit details -
Rollup merge of rust-lang#101217 - eholk:drop-tracking-73137, r=jyn514
[drop tracking] Use parent expression for scope, not parent node Previously we were just using the parent node as the scope for a temporary value, but it turns out this is too narrow. For example, in an expression like Foo { b: &42, a: async { 0 }.await, } the scope for the &42 was set to the ExprField node for `b: &42`, when we actually want to use the Foo struct expression. We fix this by recursively searching through parent nodes until we find a Node::Expr. It may be that we don't find one, and if so that's okay, we will just fall back on the enclosing temporary scope which is always sufficient. Helps with rust-lang#97331 r? `@jyn514`
Configuration menu - View commit details
-
Copy full SHA for 7298451 - Browse repository at this point
Copy the full SHA 7298451View commit details -
Rollup merge of rust-lang#101245 - GuillaumeGomez:remove-unneeded-whe…
…re-whitespace, r=notriddle Remove unneeded where whitespace It fixes these two bugs: ![Screenshot from 2022-08-31 18-14-40](https://user-images.githubusercontent.com/3050060/187727950-94657419-abfa-454c-9d27-004280fbcb45.png) ![Screenshot from 2022-08-31 18-14-49](https://user-images.githubusercontent.com/3050060/187727956-21d1b39d-62d7-4e7b-8f6f-631ceda67a19.png) It's a relic from a very old time (this commit: rust-lang@bfd01b7). You can test the result [here](https://rustdoc.crud.net/imperio/remove-unneeded-where-whitespace/lib2/struct.WhereWhitespace.html). cc ``````@jsha`````` r? ``````@notriddle``````
Configuration menu - View commit details
-
Copy full SHA for 4e07938 - Browse repository at this point
Copy the full SHA 4e07938View commit details -
Rollup merge of rust-lang#101251 - diminishedprime:patch-1, r=JohnTitor
Fix bad target name in Walkthrough Walkthrough currently say: ``` rustup target add aarch_64-fuchsia ``` but should say ``` rustup target add aarch64-fuchsia ```
Configuration menu - View commit details
-
Copy full SHA for 4c92e64 - Browse repository at this point
Copy the full SHA 4c92e64View commit details -
Rollup merge of rust-lang#101256 - andrewpollack:fuchsia-docs-adding,…
… r=tmandry Fixes/adjustments to Fuchsia doc walkthrough Small fixes/adjustments missed during rust-lang#100927
Configuration menu - View commit details
-
Copy full SHA for 8c9564e - Browse repository at this point
Copy the full SHA 8c9564eView commit details