3e303af86b
The path information was an optional "filename" component of crate directive AST. It is now replaced by an attribute with metadata named "path". With this commit, a directive mod foo = "foo.rs"; should be written as: #[path = "foo.rs"] mod foo; Closes issue #906.
12 lines
140 B
Plaintext
12 lines
140 B
Plaintext
#[name = "crate-attributes"];
|
|
#[vers = "1.0"];
|
|
|
|
#[attr1]
|
|
#[path = "crate-attributes-src"]
|
|
mod m {
|
|
#[attr_inner];
|
|
|
|
#[attr2]
|
|
mod foo;
|
|
}
|