From 1ec6de3ecf55e86b77b27c3384a91dfdac797f00 Mon Sep 17 00:00:00 2001 From: klutzy Date: Wed, 4 Jun 2014 01:42:11 +0900 Subject: 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 --- src/libregex_macros/lib.rs | 1 - 1 file changed, 1 deletion(-) (limited to 'src/libregex_macros') 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; -- cgit 1.4.1-3-g733a5