mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-02 21:04:18 +00:00
Merge pull request #20329 from jackh726/next-trait-solver-querify
Some checks are pending
metrics / build_metrics (push) Waiting to run
metrics / other_metrics (diesel-1.4.8) (push) Blocked by required conditions
metrics / other_metrics (hyper-0.14.18) (push) Blocked by required conditions
metrics / other_metrics (ripgrep-13.0.0) (push) Blocked by required conditions
metrics / other_metrics (self) (push) Blocked by required conditions
metrics / other_metrics (webrender-2022) (push) Blocked by required conditions
metrics / generate_final_metrics (push) Blocked by required conditions
rustdoc / rustdoc (push) Waiting to run
Some checks are pending
metrics / build_metrics (push) Waiting to run
metrics / other_metrics (diesel-1.4.8) (push) Blocked by required conditions
metrics / other_metrics (hyper-0.14.18) (push) Blocked by required conditions
metrics / other_metrics (ripgrep-13.0.0) (push) Blocked by required conditions
metrics / other_metrics (self) (push) Blocked by required conditions
metrics / other_metrics (webrender-2022) (push) Blocked by required conditions
metrics / generate_final_metrics (push) Blocked by required conditions
rustdoc / rustdoc (push) Waiting to run
Switch from Chalk to the next trait solver
This commit is contained in:
commit
a9450ebba3
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
|
||||
|
|
@ -326,6 +326,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
|
||||
|
|
@ -1036,6 +1048,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