Guillaume Gomez
|
f666fd6417
|
Update UI tests
|
2025-02-15 13:38:16 +01:00 |
|
Mara Bos
|
9ad75b327a
|
Update tests.
|
2025-01-07 16:04:14 +01:00 |
|
Philipp Krones
|
6ced8c33c0
|
Merge commit 'f712eb5cdc' into clippy-subtree-update
|
2024-11-07 22:37:01 +01:00 |
|
Trevor Gross
|
3c43a60d06
|
Stabilize const_option
This makes the following API stable in const contexts:
impl<T> Option<T> {
pub const fn as_mut(&mut self) -> Option<&mut T>;
pub const fn expect(self, msg: &str) -> T;
pub const fn unwrap(self) -> T;
pub const unsafe fn unwrap_unchecked(self) -> T;
pub const fn take(&mut self) -> Option<T>;
pub const fn replace(&mut self, value: T) -> Option<T>;
}
impl<T> Option<&T> {
pub const fn copied(self) -> Option<T>
where T: Copy;
}
impl<T> Option<&mut T> {
pub const fn copied(self) -> Option<T>
where T: Copy;
}
impl<T, E> Option<Result<T, E>> {
pub const fn transpose(self) -> Result<Option<T>, E>
}
impl<T> Option<Option<T>> {
pub const fn flatten(self) -> Option<T>;
}
The following functions make use of the unstable
`const_precise_live_drops` feature:
- `expect`
- `unwrap`
- `unwrap_unchecked`
- `transpose`
- `flatten`
Fixes: <https://github.com/rust-lang/rust/issues/67441>
|
2024-10-12 17:07:13 -04:00 |
|
Philipp Krones
|
4e6851e50b
|
Merge commit '37f4fbb929' into clippy-subtree-update
|
2024-07-25 18:29:17 +02:00 |
|
Philipp Krones
|
f67f72695a
|
Merge commit 'c9139bd546' into clippy-subtree-update
|
2024-05-30 10:49:05 +02:00 |
|
Philipp Krones
|
a5aaf33422
|
Merge commit 'ca3b393750' into clippy-subtree-update
|
2024-04-18 17:48:52 +02:00 |
|
Philipp Krones
|
7e83df4068
|
Merge commit '93f0a9a91f' into clippy-subtree-update
|
2024-03-07 17:19:29 +01:00 |
|
Philipp Krones
|
798865c593
|
Merge commit '66c29b973b' into clippy-subtree-update
|
2024-01-25 19:17:36 +01:00 |
|
Philipp Krones
|
15b1edb209
|
Merge commit 'ac4c2094a6' into clippy-subtree-sync
|
2023-12-28 19:33:07 +01:00 |
|
Philipp Krones
|
3596d44988
|
Merge commit 'a859e5cc1c' into clippyup
|
2023-12-16 14:12:50 +01:00 |
|
Philipp Krones
|
77c1e3aaa1
|
Merge commit '09ac14c901' into clippyup
|
2023-11-02 17:35:56 +01:00 |
|
Alex Macleod
|
e88a556124
|
Reuse rustdoc's doc comment handling in Clippy
|
2023-09-08 23:42:57 +00:00 |
|
Philipp Krones
|
cc61aeea54
|
Merge commit '080b587854' into clippyup
|
2023-08-24 21:32:12 +02:00 |
|
Philipp Krones
|
cb3ecf7b79
|
Merge commit '37f4c1725d' into clippyup
|
2023-07-02 14:59:02 +02:00 |
|
Philipp Krones
|
a1b75c5108
|
Merge commit 'a3ed905928' into clippyup
|
2023-04-23 13:28:56 +02:00 |
|
Jason Newcomb
|
0413fb35ba
|
Merge commit '149392b0ba' into clippyup
|
2023-02-25 19:28:50 -05:00 |
|
flip1995
|
e674d0a599
|
Merge commit 'e181011378' into clippyup
|
2021-11-04 12:52:36 +00:00 |
|