diff options
Diffstat (limited to 'crates/ra_hir/src/name.rs')
-rw-r--r-- | crates/ra_hir/src/name.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/crates/ra_hir/src/name.rs b/crates/ra_hir/src/name.rs index 9c4822d91..13bc901bc 100644 --- a/crates/ra_hir/src/name.rs +++ b/crates/ra_hir/src/name.rs | |||
@@ -38,11 +38,6 @@ impl Name { | |||
38 | Name::new(idx.to_string().into()) | 38 | Name::new(idx.to_string().into()) |
39 | } | 39 | } |
40 | 40 | ||
41 | // Needed for Deref | ||
42 | pub(crate) fn target() -> Name { | ||
43 | Name::new("Target".into()) | ||
44 | } | ||
45 | |||
46 | // There's should be no way to extract a string out of `Name`: `Name` in the | 41 | // There's should be no way to extract a string out of `Name`: `Name` in the |
47 | // future, `Name` will include hygiene information, and you can't encode | 42 | // future, `Name` will include hygiene information, and you can't encode |
48 | // hygiene into a String. | 43 | // hygiene into a String. |
@@ -123,6 +118,7 @@ pub(crate) const FUTURE_TYPE: Name = Name::new(SmolStr::new_inline_from_ascii(6, | |||
123 | pub(crate) const RESULT_MOD: Name = Name::new(SmolStr::new_inline_from_ascii(6, b"result")); | 118 | pub(crate) const RESULT_MOD: Name = Name::new(SmolStr::new_inline_from_ascii(6, b"result")); |
124 | pub(crate) const RESULT_TYPE: Name = Name::new(SmolStr::new_inline_from_ascii(6, b"Result")); | 119 | pub(crate) const RESULT_TYPE: Name = Name::new(SmolStr::new_inline_from_ascii(6, b"Result")); |
125 | pub(crate) const OUTPUT: Name = Name::new(SmolStr::new_inline_from_ascii(6, b"Output")); | 120 | pub(crate) const OUTPUT: Name = Name::new(SmolStr::new_inline_from_ascii(6, b"Output")); |
121 | pub(crate) const TARGET: Name = Name::new(SmolStr::new_inline_from_ascii(6, b"Target")); | ||
126 | 122 | ||
127 | fn resolve_name(text: &SmolStr) -> SmolStr { | 123 | fn resolve_name(text: &SmolStr) -> SmolStr { |
128 | let raw_start = "r#"; | 124 | let raw_start = "r#"; |