rust/src/libregex
Alex Crichton 4e9e091e91 syntax: Tighten search paths for inner modules
This is an implementation of RFC 16. A module can now only be loaded if the
module declaring `mod name;` "owns" the current directory. A module is
considered as owning its directory if it meets one of the following criteria:

* It is the top-level crate file
* It is a `mod.rs` file
* It was loaded via `#[path]`
* It was loaded via `include!`
* The module was declared via an inline `mod foo { ... }` statement

For example, this directory structure is now invalid

    // lib.rs
    mod foo;

    // foo.rs
    mod bar;

    // bar.rs;
    fn bar() {}

With this change `foo.rs` must be renamed to `foo/mod.rs`, and `bar.rs` must be
renamed to `foo/bar.rs`. This makes it clear that `bar` is a submodule of `foo`,
and can only be accessed through `foo`.

RFC: 0016-module-file-system-hierarchy
Closes #14180

[breaking-change]
2014-05-17 01:01:47 -07:00
..
parse syntax: Tighten search paths for inner modules 2014-05-17 01:01:47 -07:00
test librand: Remove all uses of ~str from librand 2014-05-14 18:29:13 -07:00
testdata Add a regex crate to the Rust distribution. 2014-04-25 00:27:24 -04:00
compile.rs libregex: Remove all uses of ~str from libregex 2014-05-14 18:29:12 -07:00
lib.rs Add the patch number to version strings. Closes #13289 2014-05-12 19:52:29 -07:00
re.rs Updates with core::fmt changes 2014-05-15 23:22:06 -07:00
vm.rs regex: General style tweaks. 2014-04-30 10:35:20 +10:00