-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Rollup of 11 pull requests #142133
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 11 pull requests #142133
Conversation
These are unstably available in `core` and should be in `std` too, but are not currently reexported. Resolve this here.
These date back to 2014. I don't think they're needed any more.
It's barely used, and the places that use it are better if they don't.
A `Vec` is fine, the additional word (vector vs. boxed slice) doesn't matter here.
It's no longer used.
Keep the `P` constructor function for now, to minimize immediate churn. All the `into_inner` calls are removed, which is nice.
``` error[E0747]: type provided when a constant was expected --> $DIR/invalid-const-arguments.rs:10:19 | LL | impl<N> Foo for B<N> {} | ^ | help: consider changing this type parameter to a const parameter | LL - impl<N> Foo for B<N> {} LL + impl<const N: u8> Foo for B<N> {} | ```
As suggested by Ralf in 142005.
"Basic usage" implies there is an example that shows advanced usage
Co-authored-by: Ralf Jung <[email protected]>
In addition to adhering to normal Rust casing idioms, I ran `rustfmt`.
…get to choose its safety contract
…bilee Reexport types from `c_size_t` in `std` These are unstably available in `core` and should be in `std` too, but are not currently reexported. Resolve this here. Tracking issue: rust-lang#88345
…viscross unsafe keyword docs: emphasize that an unsafe fn in a trait does not get to choose its safety contract Inspired by discussion in rust-lang#139368. Cc `@hanna-kruppe`
Reduce `ast::ptr::P` to a typedef of `Box` As per the MCP at rust-lang/compiler-team#878. r? `@fee1-dead`
…ywiser Verbose suggestion to make param `const` ``` error[E0747]: type provided when a constant was expected --> $DIR/invalid-const-arguments.rs:10:19 | LL | impl<N> Foo for B<N> {} | ^ | help: consider changing this type parameter to a const parameter | LL - impl<N> Foo for B<N> {} LL + impl<const N: u8> Foo for B<N> {} | ``` Part of rust-lang#141973.
…p, r=oli-obk duduplicate more AST visitor methods r? oli-obk
…-obk Update `InterpCx::project_field` to take `FieldIdx` As suggested by Ralf in rust-lang#142005 (comment)
…ilee remove extraneous text
…on, r=jieyouxu Reduce confusion of some drop order tests In addition to adhering to normal Rust casing idioms, I ran `rustfmt`. Closes rust-lang#141604 r? `@jieyouxu`
Compute number of digits instead of relying on constant value for u128 display code As discussed in https://github.com/rust-lang/rust/pull/142098/files#r2132084991, the code should reuse the same logic as the rest of file instead of using a constant value. r? `@tamird`
rustc_lexer: typo fix + small cleanups
@bors r+ p=5 rollup=never |
☀️ Test successful - checks-actions |
What is this?This is an experimental post-merge analysis report that shows differences in test outcomes between the merged PR and its parent PR.Comparing 868bf2d (parent) -> 775e0c8 (this PR) Test differencesShow 864 test diffs864 doctest diffs were found. These are ignored, as they are noisy. Test dashboardRun cargo run --manifest-path src/ci/citool/Cargo.toml -- \
test-dashboard 775e0c8aeb8f63192854b27156f8b05a06b51814 --output-dir test-dashboard And then open Job duration changes
How to interpret the job duration changes?Job durations can vary a lot, based on the actual runner instance |
📌 Perf builds for each rolled up PR:
previous master: 868bf2da31 In the case of a perf regression, run the following command for each PR you suspect might be the cause: |
Finished benchmarking commit (775e0c8): comparison URL. Overall result: ✅ improvements - no action needed@rustbot label: -perf-regression Instruction countThis is the most reliable metric that we have; it was used to determine the overall result at the top of this comment. However, even this metric can sometimes exhibit noise.
Max RSS (memory usage)Results (primary -2.6%)This 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.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 751.358s -> 752.833s (0.20%) |
Successful merges:
c_size_t
instd
#140418 (Reexport types fromc_size_t
instd
)ast::ptr::P
to a typedef ofBox
#141603 (Reduceast::ptr::P
to a typedef ofBox
)const
#142043 (Verbose suggestion to make paramconst
)InterpCx::project_field
to takeFieldIdx
#142103 (UpdateInterpCx::project_field
to takeFieldIdx
)r? @ghost
@rustbot modify labels: rollup
Create a similar rollup