mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-27 18:26:19 +00:00
Implement next trait solver
This commit is contained in:
parent
44bdfdf768
commit
9418a3f2df
109 changed files with 19148 additions and 1317 deletions
|
|
@ -35,7 +35,7 @@
|
|||
//! error: fmt
|
||||
//! fmt: option, result, transmute, coerce_unsized, copy, clone, derive
|
||||
//! fmt_before_1_89_0: fmt
|
||||
//! fn: tuple
|
||||
//! fn: sized, tuple
|
||||
//! from: sized, result
|
||||
//! future: pin
|
||||
//! coroutine: pin
|
||||
|
|
@ -325,6 +325,18 @@ pub mod clone {
|
|||
*self
|
||||
}
|
||||
}
|
||||
|
||||
impl<T: Clone> Clone for [T; 0] {
|
||||
fn clone(&self) -> Self {
|
||||
[]
|
||||
}
|
||||
}
|
||||
|
||||
impl<T: Clone> Clone for [T; 1] {
|
||||
fn clone(&self) -> Self {
|
||||
[self[0].clone()]
|
||||
}
|
||||
}
|
||||
// endregion:builtin_impls
|
||||
|
||||
// region:derive
|
||||
|
|
@ -1035,6 +1047,7 @@ pub mod ops {
|
|||
|
||||
#[lang = "coroutine"]
|
||||
pub trait Coroutine<R = ()> {
|
||||
#[lang = "coroutine_yield"]
|
||||
type Yield;
|
||||
#[lang = "coroutine_return"]
|
||||
type Return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue