about summary refs log tree commit diff
path: root/src/test/compile-fail/circular_modules_main.rs
AgeCommit message (Collapse)AuthorLines
2015-02-06Move compile-fail tests that are rejected by the parser to parse-failFlorian Hahn-20/+0
2014-05-27std: Remove String's to_ownedRicho Healey-1/+1
2014-05-24core: rename strbuf::StrBuf to string::StringRicho Healey-1/+1
[breaking-change]
2014-05-17syntax: Tighten search paths for inner modulesAlex Crichton-1/+1
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-14test: Remove all uses of `~str` from the test suite.Patrick Walton-1/+1
2014-04-18Replace all ~"" with "".to_owned()Richo Healey-1/+1
2013-07-04libsyntax: fix infinite loop when recursively including modulesPhilipp Brüschweiler-0/+20
Fixes #7276