diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2013-06-18 09:39:16 -0700 |
|---|---|---|
| committer | Corey Richardson <corey@octayn.net> | 2013-06-28 10:44:16 -0400 |
| commit | e015bee2866a802f17c84bd6d3a06212945a9d17 (patch) | |
| tree | 676f45de5bbcc9420fb0417719b262953c8d808c /src/libstd/os.rs | |
| parent | 89eb9951958dc2cd652645cea5badf4bb9edc6f9 (diff) | |
| download | rust-e015bee2866a802f17c84bd6d3a06212945a9d17.tar.gz rust-e015bee2866a802f17c84bd6d3a06212945a9d17.zip | |
Rewrite each_path to allow performance improvements in the future.
Instead of determining paths from the path tag, we iterate through modules' children recursively in the metadata. This will allow for lazy external module resolution.
Diffstat (limited to 'src/libstd/os.rs')
| -rw-r--r-- | src/libstd/os.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libstd/os.rs b/src/libstd/os.rs index 7d848184493..590292d0d32 100644 --- a/src/libstd/os.rs +++ b/src/libstd/os.rs @@ -29,6 +29,7 @@ #[allow(missing_doc)]; use cast; +use container::Container; use io; use iterator::IteratorUtil; use libc; @@ -1500,7 +1501,10 @@ mod tests { fn test_getenv_big() { let mut s = ~""; let mut i = 0; - while i < 100 { s += "aaaaaaaaaa"; i += 1; } + while i < 100 { + s = s + "aaaaaaaaaa"; + i += 1; + } let n = make_rand_name(); setenv(n, s); debug!(copy s); |
