From 4128cc4cb44acb415be3cfdfa008fd6c95ceee74 Mon Sep 17 00:00:00 2001 From: Tim Chevalier Date: Thu, 30 Aug 2012 12:54:50 -0700 Subject: Make utility funs in core::int, core::uint, etc. not by-reference Closes #3302 --- src/fuzzer/fuzzer.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/fuzzer') 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( 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 -- cgit 1.4.1-3-g733a5