diff options
author | Florian Diebold <[email protected]> | 2019-09-07 13:31:43 +0100 |
---|---|---|
committer | Florian Diebold <[email protected]> | 2019-09-07 13:31:43 +0100 |
commit | 60bdb66ef23f78d8c73afa1897a4542e7e722ed2 (patch) | |
tree | cc5dc599d3c369a4769c792a2c440749ed4b7771 /crates/ra_hir/src/name.rs | |
parent | 4ae4d9c311084e3092eb4c2d35e98f6c2c70315b (diff) |
Lower bounds on trait definition, and resolve assoc types from super traits
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#"; |