Merged
Conversation
… to use the feature
…rom tests Rebase commit
Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
to avoid panic for invalid Unicode scalar values
Improve the documentation of drain members hopefully fixes rust-lang#92765
Stabilize `#[cfg(panic = "...")]` [Stabilization PR](https://rustc-dev-guide.rust-lang.org/stabilization_guide.html#stabilization-pr) for rust-lang#77443
…imulacrum rustdoc-json: buffer output It turns out we were doing syscalls for each part of the json syntax Before: ``` ... [pid 1801267] write(5, "\"", 1) = 1 [pid 1801267] write(5, ",", 1) = 1 [pid 1801267] write(5, "\"", 1) = 1 ... ``` After: ``` [pid 1974821] write(5, "{\"root\":\"0:0\",\"crate_version\":nu"..., 1575) = 1575 ``` In one benchmark (one struct, almost all time in `std`), this gives ~2x perf r? `@CraftSpider` `@rustbot` modify labels: +A-rustdoc-json +T-rustdoc -A-testsuite
Add debug assertions to validate NUL terminator in c strings The `unchecked` variants from the stdlib usually perform the check anyway if debug assertions are on (for example, `unwrap_unchecked`). This PR does the same thing for `CStr` and `CString`, validating the correctness for the NUL byte in debug mode.
pre rust-lang#89862 cleanup changes used in rust-lang#89862 which can be landed without the rest of this PR being finished. r? `@estebank`
Use a `Field` in `ConstraintCategory::ClosureUpvar` As part of rust-lang#90317, we do not want `HirId` to implement `Ord`, `PartialOrd`. This line of code has made that difficult https://github.com/rust-lang/rust/blob/1b27144afc77031ba9c05d86c06c64485589775a/compiler/rustc_borrowck/src/region_infer/mod.rs#L2184 since it sorts a [`ConstraintCategory::ClosureUpvar(HirId)`](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/enum.ConstraintCategory.html#variant.ClosureUpvar). This PR makes that variant take a [`Field`](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/struct.Field.html) instead. r? `@nikomatsakis`
…=davidtwco Fix ScalarInt to char conversion to avoid panic for invalid Unicode scalar values
Member
Author
|
@bors r+ rollup=never p=7 |
Collaborator
|
📌 Commit 5a083db has been approved by |
Collaborator
|
⌛ Testing commit 5a083db with merge 3eff72ca75f434a7c0ce866a203b91af7f325f95... |
Collaborator
|
💔 Test failed - checks-actions |
Collaborator
Member
Author
|
@bors retry no output from dist-aarch64-apple |
Collaborator
Collaborator
|
☀️ Test successful - checks-actions |
This was referenced Feb 19, 2022
Collaborator
|
Finished benchmarking commit (e08d569): comparison url. Summary: This benchmark run did not return any relevant results. If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Successful merges:
#[cfg(panic = "...")]#93658 (Stabilize#[cfg(panic = "...")])FieldinConstraintCategory::ClosureUpvar#94006 (Use aFieldinConstraintCategory::ClosureUpvar)Failed merges:
r? @ghost
@rustbot modify labels: rollup
Create a similar rollup