Implement next trait solver

This commit is contained in:
jackh726 2025-08-01 14:29:21 +00:00
parent 44bdfdf768
commit 9418a3f2df
109 changed files with 19148 additions and 1317 deletions

View file

@ -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;