diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-12-18 17:00:26 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-12-18 17:00:26 -0800 |
| commit | 9057e98a0103e9d13d9320cdf33af938fb83e080 (patch) | |
| tree | 8548f18f07051280575124e7ce3db3896efab62e /src/libsyntax/parse | |
| parent | 80a4769318c76242b89f17e172673dfc83761e15 (diff) | |
| download | rust-9057e98a0103e9d13d9320cdf33af938fb83e080.tar.gz rust-9057e98a0103e9d13d9320cdf33af938fb83e080.zip | |
Make #[path] work with absolute paths again. Fix check-fast
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index d5aec079d16..8622222e49b 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -3045,7 +3045,14 @@ impl Parser { Some(ref d) => mod_path.push(*d), None => match ::attr::first_attr_value_str_by_name( outer_attrs, ~"path") { - Some(ref d) => mod_path.push(*d), + Some(ref d) => { + let path = Path(*d); + if !path.is_absolute { + mod_path.push(*d) + } else { + path + } + } None => mod_path.push(default_path) } }; |
