mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 21:35:20 +00:00
internal: add default to minicore
This commit is contained in:
parent
ce926aebc4
commit
08c220ab2c
6 changed files with 94 additions and 78 deletions
|
@ -22,6 +22,7 @@
|
|||
//! result:
|
||||
//! iterator: option
|
||||
//! iterators: iterator
|
||||
//! default: sized
|
||||
|
||||
pub mod marker {
|
||||
// region:sized
|
||||
|
@ -37,6 +38,14 @@ pub mod marker {
|
|||
// endregion:unsize
|
||||
}
|
||||
|
||||
// region:default
|
||||
pub mod default {
|
||||
pub trait Default: Sized {
|
||||
fn default() -> Self;
|
||||
}
|
||||
}
|
||||
// endregion:default
|
||||
|
||||
pub mod ops {
|
||||
// region:coerce_unsized
|
||||
mod unsize {
|
||||
|
@ -309,6 +318,7 @@ pub mod iter {
|
|||
pub mod prelude {
|
||||
pub mod v1 {
|
||||
pub use crate::{
|
||||
default::Default, // :default
|
||||
iter::{IntoIterator, Iterator}, // :iterator
|
||||
marker::Sized, // :sized
|
||||
ops::{Fn, FnMut, FnOnce}, // :fn
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue