libsyntax: De-@str
literal strings in the AST
This commit is contained in:
parent
70c5a0fbf7
commit
8e52b85d5a
45 changed files with 432 additions and 275 deletions
|
@ -45,7 +45,7 @@ impl ParserAttr for Parser {
|
|||
}
|
||||
token::DOC_COMMENT(s) => {
|
||||
let attr = ::attr::mk_sugared_doc_attr(
|
||||
self.id_to_str(s),
|
||||
self.id_to_interned_str(s),
|
||||
self.span.lo,
|
||||
self.span.hi
|
||||
);
|
||||
|
@ -133,7 +133,7 @@ impl ParserAttr for Parser {
|
|||
}
|
||||
token::DOC_COMMENT(s) => {
|
||||
self.bump();
|
||||
::attr::mk_sugared_doc_attr(self.id_to_str(s),
|
||||
::attr::mk_sugared_doc_attr(self.id_to_interned_str(s),
|
||||
self.span.lo,
|
||||
self.span.hi)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue