We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80a4769 commit 9057e98Copy full SHA for 9057e98
src/libsyntax/parse/parser.rs
@@ -3045,7 +3045,14 @@ impl Parser {
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) => mod_path.push(*d),
+ Some(ref d) => {
3049
+ let path = Path(*d);
3050
+ if !path.is_absolute {
3051
+ mod_path.push(*d)
3052
+ } else {
3053
+ path
3054
+ }
3055
3056
None => mod_path.push(default_path)
3057
}
3058
};
0 commit comments