Uh oh!
There was an error while loading. Please reload this page.
Rollup of 6 pull requests - #114264
Conversation
The invalid suggestion came from a wrongly created span in `rustc_parse' for closure arguments that didn't have a type specified. Specifically, the span in this case was the last token span, but in the case of tuples, the span represented the last parenthesis instead of the whole tuple, which is fixed by taking the more accurate span of the pattern.
merge functionality of `io::Sink` into `io::Empty` Many times, there is a need for a simple dummy `io::Read`er + `io::Write`r, but currently the only options are `io::Empty` and `io::Sink` respectively. Having both of their functionality together requires writing your own boilerplate for something that makes sense to have in the standard library. This PR adds the functionality of `io::Sink` to `io::Empty`, making `io::Empty` be able to perform the tasks of both of the previous structs. (This idea was first mentioned in rust-lang#24235) Note: I also updated some doc comments in `io::utils` in this pull request to fix inconsistencies between `io::Sink` and `io::Empty`. API Change Proposal: rust-lang/libs-team#49
`const`-stablilize `NonNull::as_ref` A bunch of pointer to reference methods have been made unstably const some time ago in rust-lang#91823 under the feature gate `const_ptr_as_ref`. Out of these, `NonNull::as_ref` can be implemented as a `const fn` in stable rust today, so i hereby propose to const stabilize this function only. Tracking issue: rust-lang#91822 ``@rustbot`` label +T-libs-api -T-libs
…affleLapkin inline format!() args from rustc_middle up to and including rustc_codegen_llvm (3) r? `@WaffleLapkin`
…, r=petrochenkov Weaken unnameable_types lint `unnameable_types` lint is no longer emitted for - associated types - internal types r? ``@petrochenkov``
…pkin Fix invalid suggestion for mismatched types in closure arguments This PR fixes the invalid suggestion for mismatched types in closure arguments. The invalid suggestion came from a wrongly created span in the parser for closure arguments that don't have a type specified. Specifically, the span in this case was the last token span, but in the case of tuples, the span represented the last parenthesis instead of the whole tuple, which is fixed by taking the more accurate span of the pattern. There is one unfortunate downside of this fix, it worsens even more the diagnostic for mismatched types in closure args without an explicit type. This happens because there is no correct span for implied inferred type. I tried also fixing this but it's a rabbit hole. Fixesrust-lang#114180
…sion, r=petrochenkov Simplify `Span::can_be_used_for_suggestions` a little tiny bit Just something I saw randomly.
matthiaskrgr
commented
Jul 30, 2023
@bors r+ rollup=never p=6 |
bors
commented
Jul 30, 2023
bors
commented
Jul 30, 2023
klensy
commented
Jul 30, 2023
#98154 probably should fix |
bors
commented
Jul 30, 2023
☀️ Test successful - checks-actions |
rust-timer
commented
Jul 30, 2023
📌 Perf builds for each rolled up PR:
previous master: a8be6e070f In the case of a perf regression, run the following command for each PR you suspect might be the cause: |
rust-timer
commented
Jul 30, 2023
Finished benchmarking commit (a17c796): comparison URL. Overall result: ❌✅ regressions and improvements - ACTION NEEDEDNext Steps: If you can justify the regressions found in this perf run, please indicate this with @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: 651.129s -> 653.169s (0.31%) |
rylev
commented
Aug 5, 2023
Changes are a wash so not worth investigating. @rustbot label: +perf-regression-triaged |
Successful merges:
io::Sinkintoio::Empty#98154 (merge functionality ofio::Sinkintoio::Empty)const-stablilizeNonNull::as_ref#102198 (const-stablilizeNonNull::as_ref)Span::can_be_used_for_suggestionsa little tiny bit #114258 (SimplifySpan::can_be_used_for_suggestionsa little tiny bit)r? @ghost
@rustbot modify labels: rollup
Create a similar rollup