rust/src/comp/syntax
Haitao Li 3e303af86b rustc: Add a path attribute for crate directives
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.
2011-11-24 15:31:18 -08:00
..
ext Update stdlib, compiler, and tests to new kind system 2011-11-18 12:49:01 +01:00
parse rustc: Add a path attribute for crate directives 2011-11-24 15:31:18 -08:00
print Add some changes that *should* have been in e98286b594 2011-11-23 21:22:56 +01:00
util Update stdlib, compiler, and tests to new kind system 2011-11-18 12:49:01 +01:00
ast.rs rustc: Add a path attribute for crate directives 2011-11-24 15:31:18 -08:00
ast_util.rs Allow import directives in any block 2011-11-23 20:57:34 +01:00
codemap.rs rustc: Fix position of diagnostic highlight lines 2011-11-24 08:10:11 +01:00
fold.rs rustc: Add a path attribute for crate directives 2011-11-24 15:31:18 -08:00
visit.rs rustc: Add a path attribute for crate directives 2011-11-24 15:31:18 -08:00