File tree Expand file tree Collapse file tree 3 files changed +12
-18
lines changed Expand file tree Collapse file tree 3 files changed +12
-18
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ mod middle {
104
104
mod ty;
105
105
#[ legacy_exports]
106
106
mod resolve;
107
- #[ path2 = "typeck/mod.rs" ]
107
+ #[ path = "typeck/mod.rs" ]
108
108
pub mod typeck;
109
109
#[ legacy_exports]
110
110
mod check_loop;
@@ -114,7 +114,7 @@ mod middle {
114
114
mod check_const;
115
115
#[ legacy_exports]
116
116
mod lint;
117
- #[ path2 = "borrowck/mod.rs" ]
117
+ #[ path = "borrowck/mod.rs" ]
118
118
pub mod borrowck;
119
119
#[ legacy_exports]
120
120
mod mem_categorization;
Original file line number Diff line number Diff line change @@ -3038,23 +3038,17 @@ impl Parser {
3038
3038
let prefix = prefix.dir_path();
3039
3039
let mod_path = Path(" . ").push_many(self.mod_path_stack);
3040
3040
let default_path = self.sess.interner.get(id) + ~" . rs";
3041
- // XXX path2 and path are synonyms. Remove path2 after snapshot
3042
3041
let file_path = match ::attr::first_attr_value_str_by_name(
3043
- outer_attrs, ~" path2") {
3044
-
3045
- Some(ref d) => mod_path.push(*d),
3046
- None => match ::attr::first_attr_value_str_by_name(
3047
- outer_attrs, ~" path") {
3048
- Some(ref d) => {
3049
- let path = Path(*d);
3050
- if !path.is_absolute {
3051
- mod_path.push(*d)
3052
- } else {
3053
- path
3054
- }
3042
+ outer_attrs, ~" path") {
3043
+ Some(ref d) => {
3044
+ let path = Path(*d);
3045
+ if !path.is_absolute {
3046
+ mod_path.push(*d)
3047
+ } else {
3048
+ path
3055
3049
}
3056
- None => mod_path.push(default_path)
3057
3050
}
3051
+ None => mod_path.push(default_path)
3058
3052
};
3059
3053
3060
3054
self.eval_src_mod_from_path(prefix, file_path,
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ mod fold;
55
55
mod util {
56
56
#[legacy_exports];
57
57
#[legacy_exports]
58
- #[path2 = "interner.rs"]
58
+ #[path = "interner.rs"]
59
59
mod interner;
60
60
}
61
61
@@ -110,7 +110,7 @@ mod ext {
110
110
mod source_util;
111
111
112
112
#[legacy_exports]
113
- #[path2 = "pipes/mod.rs"]
113
+ #[path = "pipes/mod.rs"]
114
114
mod pipes;
115
115
116
116
#[legacy_exports]
You can’t perform that action at this time.
0 commit comments