diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-12-13 19:49:01 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2019-12-13 19:49:01 +0000 |
commit | 9c9f4635b4eb7d987717b4064a7de789f7983e2a (patch) | |
tree | a90ec3dd748d8e4f9fcd6e808bf39c234a25c6d7 /crates/ra_hir_expand | |
parent | ebc95af2b5b91239fc1d8a5fc8344ded6f6ef3e4 (diff) | |
parent | 77052090515c1bb2a00236b3a57cdd778e581c8c (diff) |
Merge #2550
2550: Infer - and ! using std::ops::{Neg, Not} r=flodiebold a=kiljacken
Found some low hanging fruit while taking a cursory look at index inferring.
Co-authored-by: Emil Lauridsen <[email protected]>
Diffstat (limited to 'crates/ra_hir_expand')
-rw-r--r-- | crates/ra_hir_expand/src/name.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/ra_hir_expand/src/name.rs b/crates/ra_hir_expand/src/name.rs index 4f2f702c0..9e68dd98d 100644 --- a/crates/ra_hir_expand/src/name.rs +++ b/crates/ra_hir_expand/src/name.rs | |||
@@ -152,6 +152,8 @@ pub const RANGE_INCLUSIVE_TYPE: Name = Name::new_inline_ascii(b"RangeInclusive") | |||
152 | pub const RANGE_TO_INCLUSIVE_TYPE: Name = Name::new_inline_ascii(b"RangeToInclusive"); | 152 | pub const RANGE_TO_INCLUSIVE_TYPE: Name = Name::new_inline_ascii(b"RangeToInclusive"); |
153 | pub const RANGE_TO_TYPE: Name = Name::new_inline_ascii(b"RangeTo"); | 153 | pub const RANGE_TO_TYPE: Name = Name::new_inline_ascii(b"RangeTo"); |
154 | pub const RANGE_TYPE: Name = Name::new_inline_ascii(b"Range"); | 154 | pub const RANGE_TYPE: Name = Name::new_inline_ascii(b"Range"); |
155 | pub const NEG_TYPE: Name = Name::new_inline_ascii(b"Neg"); | ||
156 | pub const NOT_TYPE: Name = Name::new_inline_ascii(b"Not"); | ||
155 | 157 | ||
156 | // Builtin Macros | 158 | // Builtin Macros |
157 | pub const FILE_MACRO: Name = Name::new_inline_ascii(b"file"); | 159 | pub const FILE_MACRO: Name = Name::new_inline_ascii(b"file"); |