-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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 7 pull requests #123869
Rollup of 7 pull requests #123869
Conversation
This can cause rustfix to crash because the `?` suggestion previously could point into non-local spans, such as into the stdlib.
This test contains conflicting MaybeIncorrect suggestions which will cause the fixed file to not compile.
- Remove cmath from zkvm module since cmath was moved to sys and is shared by all platforms (see rust-lang#120109)
The suggestion to use `let else` with an uninitialized refutable `let` statement was erroneous: `let else` cannot be used with deferred initialization.
…rieril typeck: fix `?` suggestion span Noticed in <rust-lang#112043 (comment)>, if the ``` use the `?` operator to extract the `Result<(), std::fmt::Error>` value, propagating a `Result::Err` value to the caller ``` suggestion is applied to a macro that comes from a non-local crate (e.g. the stdlib), the suggestion span can become non-local, which will cause newer rustfix versions to fail. This PR tries to remedy the problem by recursively probing ancestors of the expression span, trying to identify the most ancestor span that is (1) still local, and (2) still shares the same syntax context as the expression. This is the same strategy used in rust-lang#112043. The test unfortunately cannot `//@ run-rustfix` because there are two conflicting MaybeIncorrect suggestions that when collectively applied, cause the fixed source file to become non-compilable. Also avoid running `//@ run-rustfix` for `tests/ui/typeck/issue-112007-leaked-writeln-macro-internals.rs` because that also contains conflicting suggestions. cc `@ehuss` who noticed this. This question mark span fix + not running rustfix on the tests containing conflicting MaybeIncorrect suggestions should hopefully unblock rustfix from updating.
Remove `sys_common::thread` Part of rust-lang#117276. The stack size calculation isn't system-specific at all and can just live together with the rest of the spawn logic.
…-tainted-body, r=oli-obk Don't do coroutine-closure-specific upvar analysis if tainted by errors See the comment Fixes rust-lang#123821 Fixes rust-lang#123818
Suppress `let else` suggestion for uninitialized refutable `let`s Fixes rust-lang#123844 r? `@CAD97`
…og, r=ChrisDenton std::net: TcpListener shrinks the backlog argument to 32 for Haiku.
…boet zkvm: fix path to cmath in zkvm module I don't know why the original author decided to use relative paths. I think it would be better to use `use crate::sys::cmath;` The according issue can be found here risc0/risc0#1647
Add `unsafe` to two functions with safety invariants
@bors r+ rollup=never p=7 |
☀️ Test successful - checks-actions |
📌 Perf builds for each rolled up PR:
previous master: 22a2425c10 In the case of a perf regression, run the following command for each PR you suspect might be the cause: |
Finished benchmarking commit (7942405): comparison URL. Overall result: ❌ regressions - no action needed@rustbot label: -perf-regression Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Binary sizeResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Bootstrap: 676.361s -> 676.092s (-0.04%) |
Successful merges:
?
suggestion span #123654 (typeck: fix?
suggestion span)sys_common::thread
#123807 (Removesys_common::thread
)let else
suggestion for uninitialized refutablelet
s #123847 (Suppresslet else
suggestion for uninitialized refutablelet
s)unsafe
to two functions with safety invariants #123867 (Addunsafe
to two functions with safety invariants)r? @ghost
@rustbot modify labels: rollup
Create a similar rollup