diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2017-03-27 15:24:14 -0500 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2017-03-27 15:56:23 -0700 |
| commit | 666bb1959ec072665d2e8765b01dd96127589177 (patch) | |
| tree | d8a4596b9bcc6328ab30c9c0406a5b1c3bc8fe8a /src/libsyntax/ext | |
| parent | 76cc08b45a11d0c3d8839ba458fb5685b97cd5cb (diff) | |
| parent | eb447f4ef436f0c6211a13de1e6150a09228a9c6 (diff) | |
Rollup merge of #40606 - oli-obk:interned_str_usability, r=jseyfried
Improve `InternedString` usability
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/tt/macro_rules.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/ext/tt/macro_rules.rs b/src/libsyntax/ext/tt/macro_rules.rs index 021c5398a42..66f5520b882 100644 --- a/src/libsyntax/ext/tt/macro_rules.rs +++ b/src/libsyntax/ext/tt/macro_rules.rs @@ -119,7 +119,7 @@ fn generic_extension<'cx>(cx: &'cx ExtCtxt, }; let mut p = Parser::new(cx.parse_sess(), tts, Some(directory), false); p.root_module_name = cx.current_expansion.module.mod_path.last() - .map(|id| (*id.name.as_str()).to_owned()); + .map(|id| id.name.as_str().to_string()); p.check_unknown_macro_variable(); // Let the context choose how to interpret the result. |
