diff options
| author | Nick Cameron <ncameron@mozilla.com> | 2015-03-16 17:01:12 +1300 |
|---|---|---|
| committer | Nick Cameron <ncameron@mozilla.com> | 2015-03-16 17:01:12 +1300 |
| commit | 1fd38c181a5cadb854dd8eb22d1ba1b7f009a12f (patch) | |
| tree | 37920a87d52a2c488a148d12097481705b1c5b7a /src/libsyntax | |
| parent | 2df1ceb001662845e14e210f22adfe02dd88112b (diff) | |
Reviewer changes
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/test.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libsyntax/test.rs b/src/libsyntax/test.rs index 991ab77419f..2a47a696b1c 100644 --- a/src/libsyntax/test.rs +++ b/src/libsyntax/test.rs @@ -144,9 +144,10 @@ impl<'a> fold::Folder for TestHarnessGenerator<'a> { // Make all tests public so we can call them from outside // the module (note that the tests are re-exported and must // be made public themselves to avoid privacy errors). - let mut result = (*i).clone(); - result.vis = ast::Public; - P(result) + i.map(|mut i| { + i.vis = ast::Public; + i + }) } } } else { |
