mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 05:45:12 +00:00
Correctly infer - and ! using std::ops::{Neg,Not}
This commit is contained in:
parent
95dc2de8e9
commit
7705209051
5 changed files with 114 additions and 23 deletions
|
@ -152,6 +152,8 @@ pub const RANGE_INCLUSIVE_TYPE: Name = Name::new_inline_ascii(b"RangeInclusive")
|
|||
pub const RANGE_TO_INCLUSIVE_TYPE: Name = Name::new_inline_ascii(b"RangeToInclusive");
|
||||
pub const RANGE_TO_TYPE: Name = Name::new_inline_ascii(b"RangeTo");
|
||||
pub const RANGE_TYPE: Name = Name::new_inline_ascii(b"Range");
|
||||
pub const NEG_TYPE: Name = Name::new_inline_ascii(b"Neg");
|
||||
pub const NOT_TYPE: Name = Name::new_inline_ascii(b"Not");
|
||||
|
||||
// Builtin Macros
|
||||
pub const FILE_MACRO: Name = Name::new_inline_ascii(b"file");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue