Skip to content

Rollup of 6 pull requests #103510

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
wants to merge 20 commits into from
Closed
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
59be3e8
Stabilized Option::unzip()
Kixiron Jun 17, 2022
df8a62d
Use `CURRENT_RUSTC_VERSION`
Kixiron Sep 7, 2022
093b075
rustc: Use `unix_sigpipe` instead of `rustc_driver::set_sigpipe_handler`
Enselic Oct 2, 2022
7280f3d
Truncate thread names on Linux and Apple targets
cuviper Oct 22, 2022
12e4584
Move truncation next to other thread tests for tidy
cuviper Oct 22, 2022
8f8f74d
Name impl trait in region bound suggestion
compiler-errors Oct 22, 2022
4bd9844
remove misc_cast and validate types
ouz-a Oct 16, 2022
15cfeb3
Only test pthread_getname_np on linux-gnu
cuviper Oct 23, 2022
e521a8d
Prevent foreign Rust exceptions from being caught
nbdd0121 Oct 5, 2022
86c65d2
Implement Rust foreign exception protection for EMCC and SEH
nbdd0121 Oct 5, 2022
daf3063
Add test case for foreign Rust exceptions
nbdd0121 Oct 5, 2022
979d1a2
Apply suggestion
nbdd0121 Oct 11, 2022
4e6d60c
Fix alloc size
nbdd0121 Oct 12, 2022
c9cca33
Fix windows compilation
nbdd0121 Oct 23, 2022
03bd9c9
Rollup merge of #98204 - Kixiron:stable-unzip, r=thomcc
Dylan-DPC Oct 25, 2022
7459409
Rollup merge of #102587 - Enselic:rustc-unix_sigpipe, r=jackh726
Dylan-DPC Oct 25, 2022
7665f3c
Rollup merge of #102721 - nbdd0121:panic, r=Amanieu
Dylan-DPC Oct 25, 2022
1c8201c
Rollup merge of #103122 - ouz-a:mir-technical-debt, r=oli-obk
Dylan-DPC Oct 25, 2022
d0d9c86
Rollup merge of #103379 - cuviper:truncate-thread-name, r=thomcc
Dylan-DPC Oct 25, 2022
d6d6cb7
Rollup merge of #103416 - compiler-errors:rpit-named, r=cjgillot
Dylan-DPC Oct 25, 2022
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
11 changes: 7 additions & 4 deletions library/core/src/option.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1713,17 +1713,20 @@ impl<T, U> Option<(T, U)> {
/// # Examples
///
/// ```
/// #![feature(unzip_option)]
///
/// let x = Some((1, "hi"));
/// let y = None::<(u8, u32)>;
///
/// assert_eq!(x.unzip(), (Some(1), Some("hi")));
/// assert_eq!(y.unzip(), (None, None));
/// ```
#[inline]
#[unstable(feature = "unzip_option", issue = "87800", reason = "recently added")]
pub const fn unzip(self) -> (Option<T>, Option<U>) {
#[stable(feature = "unzip_option", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_unstable(feature = "const_option", issue = "67441")]
pub const fn unzip(self) -> (Option<T>, Option<U>)
where
T: ~const Destruct,
U: ~const Destruct,
{
match self {
Some((a, b)) => (Some(a), Some(b)),
None => (None, None),
Expand Down
1 change: 0 additions & 1 deletion library/core/tests/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@
#![feature(strict_provenance_atomic_ptr)]
#![feature(trusted_random_access)]
#![feature(unsize)]
#![feature(unzip_option)]
#![feature(const_array_from_ref)]
#![feature(const_slice_from_ref)]
#![feature(waker_getters)]
Expand Down