syntax: Rename 'module' extension to 'module_path'
This commit is contained in:
parent
2cfe8fb357
commit
7d18369804
2 changed files with 2 additions and 2 deletions
|
@ -103,7 +103,7 @@ fn syntax_expander_table() -> hashmap<~str, syntax_extension> {
|
||||||
builtin(ext::source_util::expand_include_str));
|
builtin(ext::source_util::expand_include_str));
|
||||||
syntax_expanders.insert(~"include_bin",
|
syntax_expanders.insert(~"include_bin",
|
||||||
builtin(ext::source_util::expand_include_bin));
|
builtin(ext::source_util::expand_include_bin));
|
||||||
syntax_expanders.insert(~"module",
|
syntax_expanders.insert(~"module_path",
|
||||||
builtin(ext::source_util::expand_mod));
|
builtin(ext::source_util::expand_mod));
|
||||||
syntax_expanders.insert(~"proto",
|
syntax_expanders.insert(~"proto",
|
||||||
builtin_item_tt(ext::pipes::expand_proto));
|
builtin_item_tt(ext::pipes::expand_proto));
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
mod m1 {
|
mod m1 {
|
||||||
mod m2 {
|
mod m2 {
|
||||||
fn where_am_i() -> ~str { module!{} }
|
fn where_am_i() -> ~str { module_path!{} }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue