diff --git a/src/chmod/chmod.rs b/src/chmod/chmod.rs index 00a36382a..a3ee27d44 100644 --- a/src/chmod/chmod.rs +++ b/src/chmod/chmod.rs @@ -12,11 +12,11 @@ #![allow(unused_variables)] // only necessary while the TODOs still exist #![feature(plugin)] +#![plugin(regex_macros)] extern crate getopts; extern crate libc; extern crate regex; -#[plugin] #[no_link] extern crate regex_macros; use std::ffi::CString; use std::old_io::fs; diff --git a/src/nl/nl.rs b/src/nl/nl.rs index 3cfb30531..46cc8cfc6 100644 --- a/src/nl/nl.rs +++ b/src/nl/nl.rs @@ -1,5 +1,6 @@ #![crate_name = "nl"] #![feature(collections, core, io, path, rustc_private)] +#![plugin(regex_macros)] /* * This file is part of the uutils coreutils package. @@ -12,7 +13,6 @@ */ #![feature(plugin)] -#[plugin] #[no_link] extern crate regex_macros; extern crate regex; extern crate getopts;