Skip to content

Commit 53c32cd

Browse files
committed
Remove usage of the mod_path compiler plugin.
rust-lang/rust#20179 makes its use case much weaker.
1 parent 1060cfd commit 53c32cd

File tree

6 files changed

+4
-23
lines changed

6 files changed

+4
-23
lines changed

components/servo/Cargo.lock

Lines changed: 0 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/style/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ encoding = "0.2"
3232
rustc-serialize = "0.3"
3333
matches = "0.1"
3434
url = "0.2.16"
35-
mod_path = "0.1"
3635
bitflags = "*"
3736
cssparser = "0.3.1"
3837
num = "0.1.24"

components/style/lib.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#![feature(rustc_private)]
1212

1313
#![plugin(string_cache_plugin)]
14-
#![plugin(mod_path)]
1514

1615
#[macro_use] extern crate log;
1716
#[macro_use] extern crate bitflags;
@@ -44,7 +43,10 @@ pub mod selector_matching;
4443
#[macro_use] pub mod values;
4544

4645
// Generated from the properties.mako.rs template by build.rs
47-
mod_path! properties (concat!(env!("OUT_DIR"), "/properties.rs"));
46+
#[macro_use]
47+
pub mod properties {
48+
include!(concat!(env!("OUT_DIR"), "/properties.rs"));
49+
}
4850

4951
pub mod node;
5052
pub mod media_queries;

components/style/properties.mako.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
// This file is a Mako template: http://www.makotemplates.org/
66

7-
#![macro_use]
8-
97
use std::ascii::AsciiExt;
108
use std::borrow::ToOwned;
119
use std::default::Default;

ports/cef/Cargo.lock

Lines changed: 0 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ports/gonk/Cargo.lock

Lines changed: 0 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)