On 19/10/2012 12:23 AM, John Mija wrote:

It would make sense to have an attribute at file-level in cases where
you have a lot of tests or code for a specific system/architecture, or
just because you want to have all more organized.

This is already possible. Attribute the 'mod' item that links the file into the crate namespace itself. "Files" don't really exist much in the rust compiler's brain; it's dimly aware of them during initial parse, after that it just works on a single module tree, and the residue of a "file" is a module-boundary in the module tree. Any module can have attributes on it.

-Graydon

_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to