diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2018-06-30 01:53:17 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2018-06-30 01:53:32 +0300 |
| commit | 84f1bc8b662da4ceb0e448bf0d24ce627e6a462b (patch) | |
| tree | f43a60b5fbefba0ccb7fad613f5df8bfafebdc51 /src/libsyntax_pos | |
| parent | b69d51162b5391119e86d1c6e884aa09292a7806 (diff) | |
| download | rust-84f1bc8b662da4ceb0e448bf0d24ce627e6a462b.tar.gz rust-84f1bc8b662da4ceb0e448bf0d24ce627e6a462b.zip | |
Address comments
Diffstat (limited to 'src/libsyntax_pos')
| -rw-r--r-- | src/libsyntax_pos/hygiene.rs | 1 | ||||
| -rw-r--r-- | src/libsyntax_pos/symbol.rs | 10 |
2 files changed, 5 insertions, 6 deletions
diff --git a/src/libsyntax_pos/hygiene.rs b/src/libsyntax_pos/hygiene.rs index e7f1f31084a..33d02d0b10a 100644 --- a/src/libsyntax_pos/hygiene.rs +++ b/src/libsyntax_pos/hygiene.rs @@ -57,7 +57,6 @@ struct MarkData { pub enum Transparency { /// Identifier produced by a transparent expansion is always resolved at call-site. /// Call-site spans in procedural macros, hygiene opt-out in `macro` should use this. - /// (Not used yet.) Transparent, /// Identifier produced by a semi-transparent expansion may be resolved /// either at call-site or at definition-site. diff --git a/src/libsyntax_pos/symbol.rs b/src/libsyntax_pos/symbol.rs index fe0b479d161..9a0c92f6793 100644 --- a/src/libsyntax_pos/symbol.rs +++ b/src/libsyntax_pos/symbol.rs @@ -68,11 +68,11 @@ impl Ident { Ident::new(self.name, self.span.modern()) } - // "Normalize" ident for use in comparisons using "local variable hygiene". - // Identifiers with same string value become same if they came from the same non-transparent - // macro (e.g. `macro` or `macro_rules!` items) and stay different if they came from different - // non-transparent macros. - // Technically, this operation strips all transparent marks from ident's syntactic context. + /// "Normalize" ident for use in comparisons using "local variable hygiene". + /// Identifiers with same string value become same if they came from the same non-transparent + /// macro (e.g. `macro` or `macro_rules!` items) and stay different if they came from different + /// non-transparent macros. + /// Technically, this operation strips all transparent marks from ident's syntactic context. pub fn modern_and_legacy(self) -> Ident { Ident::new(self.name, self.span.modern_and_legacy()) } |
