mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Initial support for implicit drop inlay hint
This commit is contained in:
parent
56abc0a29c
commit
4d55cac466
12 changed files with 284 additions and 25 deletions
|
@ -1054,6 +1054,10 @@ pub mod option {
|
|||
Some(T),
|
||||
}
|
||||
|
||||
// region:copy
|
||||
impl<T: Copy> Copy for Option<T> {}
|
||||
// endregion:copy
|
||||
|
||||
impl<T> Option<T> {
|
||||
pub const fn unwrap(self) -> T {
|
||||
match self {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue