diff options
| author | Matthew Russo <matthew@edapp.com> | 2018-10-30 10:11:24 -0400 |
|---|---|---|
| committer | Matthew Russo <matthew@edapp.com> | 2018-12-04 17:24:12 -0500 |
| commit | 88130f1796e98837dc6f58aea9b9a0f49b85f426 (patch) | |
| tree | 5333ac7519b53da3b6e05fa16c8336fc07a2e211 /src/libsyntax/ext | |
| parent | 6ee4d3cafce0d46b2d76a3f96aa62ca985a3ab6c (diff) | |
| download | rust-88130f1796e98837dc6f58aea9b9a0f49b85f426.tar.gz rust-88130f1796e98837dc6f58aea9b9a0f49b85f426.zip | |
updates all Filename variants to take a fingerprint
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/quote.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libsyntax/ext/quote.rs b/src/libsyntax/ext/quote.rs index 69ed318b049..91818992fe1 100644 --- a/src/libsyntax/ext/quote.rs +++ b/src/libsyntax/ext/quote.rs @@ -353,27 +353,27 @@ pub mod rt { impl<'a> ExtParseUtils for ExtCtxt<'a> { fn parse_item(&self, s: String) -> P<ast::Item> { panictry!(parse::parse_item_from_source_str( - FileName::QuoteExpansion, + FileName::quote_expansion_source_code(&s), s, self.parse_sess())).expect("parse error") } fn parse_stmt(&self, s: String) -> ast::Stmt { panictry!(parse::parse_stmt_from_source_str( - FileName::QuoteExpansion, + FileName::quote_expansion_source_code(&s), s, self.parse_sess())).expect("parse error") } fn parse_expr(&self, s: String) -> P<ast::Expr> { panictry!(parse::parse_expr_from_source_str( - FileName::QuoteExpansion, + FileName::quote_expansion_source_code(&s), s, self.parse_sess())) } fn parse_tts(&self, s: String) -> Vec<TokenTree> { - let source_name = FileName::QuoteExpansion; + let source_name = FileName::quote_expansion_source_code(&s); parse::parse_stream_from_source_str(source_name, s, self.parse_sess(), None) .into_trees().collect() } |
