about summary refs log tree commit diff
path: root/src/libregex_macros/lib.rs
diff options
context:
space:
mode:
authorklutzy <klutzytheklutzy@gmail.com>2014-06-04 01:42:11 +0900
committerklutzy <klutzytheklutzy@gmail.com>2014-06-04 02:00:03 +0900
commit1ec6de3ecf55e86b77b27c3384a91dfdac797f00 (patch)
tree2714a9b338d0e5e63aa62514c2083a831de375d4 /src/libregex_macros/lib.rs
parent918dbfea60e84868537a1951ad38a782502d39c2 (diff)
downloadrust-1ec6de3ecf55e86b77b27c3384a91dfdac797f00.tar.gz
rust-1ec6de3ecf55e86b77b27c3384a91dfdac797f00.zip
syntax: Make quasiquoter use absolute paths
As part of removing `pub use` glob, two extra import globs were
injected to make `quote_expr!` work. However the globs caused
`unused_import` warning in some places.

Quasiquoter needed the globs since it generated idents (e.g. `TyU`)
rather than absolute paths (`::syntax::ast::TyU`).
This patch removes the extra globs and makes quasiquoter use absolute
paths.

Fixes #14618
Diffstat (limited to 'src/libregex_macros/lib.rs')
-rw-r--r--src/libregex_macros/lib.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/libregex_macros/lib.rs b/src/libregex_macros/lib.rs
index 452d1d74e52..71e3d06cf96 100644
--- a/src/libregex_macros/lib.rs
+++ b/src/libregex_macros/lib.rs
@@ -20,7 +20,6 @@
        html_root_url = "http://doc.rust-lang.org/")]
 
 #![feature(macro_registrar, managed_boxes, quote)]
-#![allow(unused_imports)] // `quote_expr!` adds some `use` globs which may be unused
 
 extern crate regex;
 extern crate syntax;