diff options
| author | Lukas Wirth <me@lukaswirth.dev> | 2025-08-13 06:10:45 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-13 06:10:45 +0000 |
| commit | 6e4644fd31d3bd1e0ece59112d84f9c7ed1ebb67 (patch) | |
| tree | 0680d32e88e25ee45cafdddcba470b700d0e224f /src/tools/rust-analyzer/crates/test-utils | |
| parent | 40b8d413672af5ff3668e825a56cde1f24149095 (diff) | |
| parent | eb2bbbb9134ae3fc4d043ea12b3546b73cd90efd (diff) | |
| download | rust-6e4644fd31d3bd1e0ece59112d84f9c7ed1ebb67.tar.gz rust-6e4644fd31d3bd1e0ece59112d84f9c7ed1ebb67.zip | |
Merge pull request #20329 from jackh726/next-trait-solver-querify
Switch from Chalk to the next trait solver
Diffstat (limited to 'src/tools/rust-analyzer/crates/test-utils')
| -rw-r--r-- | src/tools/rust-analyzer/crates/test-utils/src/minicore.rs | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/tools/rust-analyzer/crates/test-utils/src/minicore.rs b/src/tools/rust-analyzer/crates/test-utils/src/minicore.rs index c1f2b08be94..26e0f46705b 100644 --- a/src/tools/rust-analyzer/crates/test-utils/src/minicore.rs +++ b/src/tools/rust-analyzer/crates/test-utils/src/minicore.rs @@ -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; |
