diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-08-11 02:20:18 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-08-15 20:39:26 +0300 |
| commit | 6cb28b6617e25b74389f1cee2ec0335c2ccfb865 (patch) | |
| tree | 907989a12ba0e76bb06749599e45a61d8c7e4b3b /src/libsyntax/attr | |
| parent | 67d6ce42063732d7c7b12d94f872dcafb5efb607 (diff) | |
| download | rust-6cb28b6617e25b74389f1cee2ec0335c2ccfb865.tar.gz rust-6cb28b6617e25b74389f1cee2ec0335c2ccfb865.zip | |
`Ident::with_empty_ctxt` -> `Ident::with_dummy_span`
`Ident` has had a full span rather than just a `SyntaxContext` for a long time now.
Diffstat (limited to 'src/libsyntax/attr')
| -rw-r--r-- | src/libsyntax/attr/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/attr/mod.rs b/src/libsyntax/attr/mod.rs index 85c661d320a..bcf03b5237a 100644 --- a/src/libsyntax/attr/mod.rs +++ b/src/libsyntax/attr/mod.rs @@ -327,7 +327,7 @@ impl Attribute { if self.is_sugared_doc { let comment = self.value_str().unwrap(); let meta = mk_name_value_item_str( - Ident::with_empty_ctxt(sym::doc), + Ident::with_dummy_span(sym::doc), Symbol::intern(&strip_doc_comment_decoration(&comment.as_str())), DUMMY_SP, ); @@ -412,7 +412,7 @@ pub fn mk_sugared_doc_attr(text: Symbol, span: Span) -> Attribute { Attribute { id: mk_attr_id(), style, - path: Path::from_ident(Ident::with_empty_ctxt(sym::doc).with_span_pos(span)), + path: Path::from_ident(Ident::with_dummy_span(sym::doc).with_span_pos(span)), tokens: MetaItemKind::NameValue(lit).tokens(span), is_sugared_doc: true, span, |
