about summary refs log tree commit diff
path: root/src/fuzzer/fuzzer.rs
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2012-08-30 12:54:50 -0700
committerTim Chevalier <chevalier@alum.wellesley.edu>2012-08-31 16:21:47 -0700
commit4128cc4cb44acb415be3cfdfa008fd6c95ceee74 (patch)
tree321c8c7ed1c28247377bf4122365c047d69f891f /src/fuzzer/fuzzer.rs
parent638db28c472c1edadc3c37f900df28f14cca7665 (diff)
downloadrust-4128cc4cb44acb415be3cfdfa008fd6c95ceee74.tar.gz
rust-4128cc4cb44acb415be3cfdfa008fd6c95ceee74.zip
Make utility funs in core::int, core::uint, etc. not by-reference
Closes #3302
Diffstat (limited to 'src/fuzzer/fuzzer.rs')
-rw-r--r--src/fuzzer/fuzzer.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/fuzzer/fuzzer.rs b/src/fuzzer/fuzzer.rs
index 1423d0050df..dae1540daff 100644
--- a/src/fuzzer/fuzzer.rs
+++ b/src/fuzzer/fuzzer.rs
@@ -249,18 +249,18 @@ fn check_variants_T<T: copy>(
   cx: context
   ) {
     error!("%s contains %u %s objects", filename.to_str(),
-           vec::len(things), thing_label);
+           things.len(), thing_label);
 
     // Assuming we're not generating any token_trees
     let intr = syntax::parse::token::mk_fake_ident_interner();
 
-    let L = vec::len(things);
+    let L = things.len();
 
-    if L < 100u {
-        do under(uint::min(&L, &20u)) |i| {
+    if L < 100 {
+        do under(uint::min(L, 20)) |i| {
             log(error, ~"Replacing... #" + uint::str(i));
             let fname = str::from_slice(filename.to_str());
-            do under(uint::min(&L, &30u)) |j| {
+            do under(uint::min(L, 30)) |j| {
                 log(error, ~"With... " + stringifier(@things[j], intr));
                 let crate2 = @replacer(crate, i, things[j], cx.mode);
                 // It would be best to test the *crate* for stability, but