From e015bee2866a802f17c84bd6d3a06212945a9d17 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Tue, 18 Jun 2013 09:39:16 -0700 Subject: 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. --- src/libstd/os.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/libstd/os.rs') 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); -- cgit 1.4.1-3-g733a5