-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Rollup of 5 pull requests #97537
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
Closed
Closed
Rollup of 5 pull requests #97537
Conversation
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
- `from_ptr_range` uses `#![feature(slice_from_ptr_range_const)]` - `from_mut_ptr_range` uses `#![feature(slice_from_mut_ptr_range_const)]`
At first I was confused why `std::slice::from_ptr_range` didn't work :D
This is in line with other `const fn` features.
The function doesn't need the lifetimes of the two arguments be bound together.
…r=oli-obk Make `from{,_mut}_ptr_range` const This PR makes the following APIs `const`: ```rust // core::slice pub const unsafe fn from_ptr_range<'a, T>(range: Range<*const T>) -> &'a [T]; pub const unsafe fn from_mut_ptr_range<'a, T>(range: Range<*mut T>) -> &'a mut [T]; ``` Tracking issue: rust-lang#89792. Feature for `from_ptr_range` as a `const fn`: `slice_from_ptr_range_const`. Feature for `from_mut_ptr_range` as a `const fn`: `slice_from_mut_ptr_range_const`. r? `@oli-obk`
Use `type_is_copy_modulo_regions` check in intrisicck This one canoncalizes region variables correctly, preventing an ICE Fixes rust-lang#97490
Fix order of closing HTML elements in rustdoc output Initially reported here: https://users.rust-lang.org/t/documentation-itself-parsed-error/76232
…r=jsha Add more eslint checks Here is a new batch of eslint checks: * [no-const-assign](https://eslint.org/docs/rules/no-const-assign) * [no-debugger](https://eslint.org/docs/rules/no-debugger) * [no-dupe-args](https://eslint.org/docs/rules/no-dupe-args) * [no-duple-else-if](https://eslint.org/docs/rules/no-dupe-else-if) * [no-dupe-keys](https://eslint.org/docs/rules/no-dupe-keys) * [no-duplicate-case](https://eslint.org/docs/rules/no-duplicate-case) * [no-ex-assign](https://eslint.org/docs/rules/no-ex-assign) r? `@notriddle`
…mpiler-errors Remove unused lifetimes from expand_macro The function doesn't need the lifetimes of the two arguments be bound together.
@bors r+ rollup=never p=5 |
📌 Commit 6dfa8be has been approved by |
⌛ Testing commit 6dfa8be with merge 9abb1579009e497ac6728ce442a5dbc5b47cef8f... |
💔 Test failed - checks-actions |
The job Click to see the possible cause of the failure (guessed by this bot)
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
rollup
A PR which is a rollup
S-waiting-on-review
Status: Awaiting review from the assignee but also interested parties.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
T-libs
Relevant to the library team, which will review and decide on the PR/issue.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
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:
from{,_mut}_ptr_range
const #97419 (Makefrom{,_mut}_ptr_range
const)type_is_copy_modulo_regions
check in intrisicck #97493 (Usetype_is_copy_modulo_regions
check in intrisicck)Failed merges:
r? @ghost
@rustbot modify labels: rollup
Create a similar rollup