Skip to content
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 8 pull requests #109652

Merged
merged 17 commits into from
Mar 27, 2023
Merged
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
39eb148
Follow C-RW-VALUE in std::io::Cursor example
mattfbacon Jun 29, 2022
22a456a
Stabilize `nonnull_slice_from_raw_parts`
JohnTitor May 29, 2022
5e49f09
Use an IndexVec to debug fingerprints.
cjgillot Mar 12, 2023
08f3deb
fix type suggestions in match arms
Mar 25, 2023
28982a1
Fix "Directly go to item in search if there is only one result" setting
GuillaumeGomez Mar 26, 2023
bc9eec0
Add GUI test for "Directly go to item in search if there is only one …
GuillaumeGomez Mar 26, 2023
b874502
Remove unnecessary raw pointer in __rust_start_panic arg
bjorn3 Oct 6, 2022
72c917d
debuginfo: Get pointer size/align from tcx.data_layout instead of lay…
Noratrieb Mar 26, 2023
1ce4b37
Don't elaborate non-obligations into obligations
compiler-errors Mar 26, 2023
102bbbd
Rollup merge of #97506 - JohnTitor:stabilize-nonnull-slice-from-raw-p…
matthiaskrgr Mar 27, 2023
fe0b042
Rollup merge of #98651 - mattfbacon:master, r=ChrisDenton
matthiaskrgr Mar 27, 2023
704991c
Rollup merge of #102742 - bjorn3:cleanup_rust_start_panic, r=ChrisDenton
matthiaskrgr Mar 27, 2023
32aa4c0
Rollup merge of #109587 - cjgillot:no-hashmap-fingerprint, r=Nilstrieb
matthiaskrgr Mar 27, 2023
04b8523
Rollup merge of #109613 - lukas-code:match-str-to-char-suggestion, r=…
matthiaskrgr Mar 27, 2023
b39db70
Rollup merge of #109633 - GuillaumeGomez:fix-go-to-only-setting, r=no…
matthiaskrgr Mar 27, 2023
2b7dc94
Rollup merge of #109635 - Nilstrieb:debrrruginfo, r=compiler=errors
matthiaskrgr Mar 27, 2023
6535e66
Rollup merge of #109641 - compiler-errors:dont-elaborate-non-obl, r=o…
matthiaskrgr Mar 27, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Stabilize nonnull_slice_from_raw_parts
JohnTitor committed Sep 29, 2022

Verified

This commit was signed with the committer’s verified signature.
JohnTitor Yuki Okushi
commit 22a456ad47f42179268165b009e8925a84d4c43f
1 change: 0 additions & 1 deletion library/alloc/src/lib.rs
Original file line number Diff line number Diff line change
@@ -129,7 +129,6 @@
#![feature(maybe_uninit_slice)]
#![feature(maybe_uninit_uninit_array)]
#![cfg_attr(test, feature(new_uninit))]
#![feature(nonnull_slice_from_raw_parts)]
#![feature(pattern)]
#![feature(pointer_byte_offsets)]
#![feature(provide_any)]
3 changes: 1 addition & 2 deletions library/alloc/tests/lib.rs
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@
#![feature(const_cow_is_borrowed)]
#![feature(const_heap)]
#![feature(const_mut_refs)]
#![feature(const_nonnull_slice_from_raw_parts)]
#![feature(const_slice_from_raw_parts_mut)]
#![feature(const_ptr_write)]
#![feature(const_try)]
#![feature(core_intrinsics)]
@@ -36,7 +36,6 @@
#![feature(const_default_impls)]
#![feature(const_trait_impl)]
#![feature(const_str_from_utf8)]
#![feature(nonnull_slice_from_raw_parts)]
#![feature(panic_update_hook)]
#![feature(pointer_is_aligned)]
#![feature(slice_flatten)]
13 changes: 5 additions & 8 deletions library/core/src/ptr/non_null.rs
Original file line number Diff line number Diff line change
@@ -467,8 +467,6 @@ impl<T> NonNull<[T]> {
/// # Examples
///
/// ```rust
/// #![feature(nonnull_slice_from_raw_parts)]
///
/// use std::ptr::NonNull;
///
/// // create a slice pointer when starting out with a pointer to the first element
@@ -480,8 +478,8 @@ impl<T> NonNull<[T]> {
///
/// (Note that this example artificially demonstrates a use of this method,
/// but `let slice = NonNull::from(&x[..]);` would be a better way to write code like this.)
#[unstable(feature = "nonnull_slice_from_raw_parts", issue = "71941")]
#[rustc_const_unstable(feature = "const_nonnull_slice_from_raw_parts", issue = "71941")]
#[stable(feature = "nonnull_slice_from_raw_parts", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_unstable(feature = "const_slice_from_raw_parts_mut", issue = "67456")]
#[must_use]
#[inline]
pub const fn slice_from_raw_parts(data: NonNull<T>, len: usize) -> Self {
@@ -499,7 +497,6 @@ impl<T> NonNull<[T]> {
/// # Examples
///
/// ```rust
/// #![feature(nonnull_slice_from_raw_parts)]
/// use std::ptr::NonNull;
///
/// let slice: NonNull<[i8]> = NonNull::slice_from_raw_parts(NonNull::dangling(), 3);
@@ -519,7 +516,7 @@ impl<T> NonNull<[T]> {
/// # Examples
///
/// ```rust
/// #![feature(slice_ptr_get, nonnull_slice_from_raw_parts)]
/// #![feature(slice_ptr_get)]
/// use std::ptr::NonNull;
///
/// let slice: NonNull<[i8]> = NonNull::slice_from_raw_parts(NonNull::dangling(), 3);
@@ -539,7 +536,7 @@ impl<T> NonNull<[T]> {
/// # Examples
///
/// ```rust
/// #![feature(slice_ptr_get, nonnull_slice_from_raw_parts)]
/// #![feature(slice_ptr_get)]
/// use std::ptr::NonNull;
///
/// let slice: NonNull<[i8]> = NonNull::slice_from_raw_parts(NonNull::dangling(), 3);
@@ -673,7 +670,7 @@ impl<T> NonNull<[T]> {
/// # Examples
///
/// ```
/// #![feature(slice_ptr_get, nonnull_slice_from_raw_parts)]
/// #![feature(slice_ptr_get)]
/// use std::ptr::NonNull;
///
/// let x = &mut [1, 2, 4];
1 change: 0 additions & 1 deletion library/std/src/lib.rs
Original file line number Diff line number Diff line change
@@ -294,7 +294,6 @@
#![feature(is_some_with)]
#![feature(maybe_uninit_slice)]
#![feature(maybe_uninit_write_slice)]
#![feature(nonnull_slice_from_raw_parts)]
#![feature(panic_can_unwind)]
#![feature(panic_info_message)]
#![feature(panic_internals)]