diff options
| author | kwantam <kwantam@gmail.com> | 2015-04-18 13:49:51 -0400 |
|---|---|---|
| committer | kwantam <kwantam@gmail.com> | 2015-04-21 15:31:51 -0400 |
| commit | c361e13d7155552cb6e45da5016cea36f87ecfec (patch) | |
| tree | eb03f86d7f11029bb49f15e098a55222fa3ea30b /src/librustc/session | |
| parent | f43c86cda46a423b947be427a5fea2614ca569dc (diff) | |
| download | rust-c361e13d7155552cb6e45da5016cea36f87ecfec.tar.gz rust-c361e13d7155552cb6e45da5016cea36f87ecfec.zip | |
implement rfc 1054: split_whitespace() fn, deprecate words()
For now, words() is left in (but deprecated), and Words is a type alias for struct SplitWhitespace. Also cleaned up references to s.words() throughout codebase. Closes #15628
Diffstat (limited to 'src/librustc/session')
| -rw-r--r-- | src/librustc/session/config.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc/session/config.rs b/src/librustc/session/config.rs index f7ff8b9e606..f4ea069447f 100644 --- a/src/librustc/session/config.rs +++ b/src/librustc/session/config.rs @@ -418,7 +418,7 @@ macro_rules! options { -> bool { match v { Some(s) => { - for s in s.words() { + for s in s.split_whitespace() { slot.push(s.to_string()); } true @@ -431,7 +431,7 @@ macro_rules! options { -> bool { match v { Some(s) => { - let v = s.words().map(|s| s.to_string()).collect(); + let v = s.split_whitespace().map(|s| s.to_string()).collect(); *slot = Some(v); true }, |
