mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-27 10:17:15 +00:00
minicore: Add size_of to prelude and add rust_2024 prelude
This commit is contained in:
parent
4815ab0c62
commit
0aa623e108
2 changed files with 6 additions and 0 deletions
|
|
@ -1920,6 +1920,7 @@ fn bar() {
|
|||
md rust_2015 (use core::prelude::rust_2015)
|
||||
md rust_2018 (use core::prelude::rust_2018)
|
||||
md rust_2021 (use core::prelude::rust_2021)
|
||||
md rust_2024 (use core::prelude::rust_2024)
|
||||
tt Clone
|
||||
tt Copy
|
||||
tt IntoIterator
|
||||
|
|
|
|||
|
|
@ -1874,6 +1874,7 @@ pub mod prelude {
|
|||
marker::Sized, // :sized
|
||||
marker::Sync, // :sync
|
||||
mem::drop, // :drop
|
||||
mem::size_of, // :size_of
|
||||
ops::Drop, // :drop
|
||||
ops::{AsyncFn, AsyncFnMut, AsyncFnOnce}, // :async_fn
|
||||
ops::{Fn, FnMut, FnOnce}, // :fn
|
||||
|
|
@ -1895,6 +1896,10 @@ pub mod prelude {
|
|||
pub mod rust_2021 {
|
||||
pub use super::v1::*;
|
||||
}
|
||||
|
||||
pub mod rust_2024 {
|
||||
pub use super::v1::*;
|
||||
}
|
||||
}
|
||||
|
||||
#[prelude_import]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue