From 8e4a10790f388afcf75adc55c21139505ac0d3f8 Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Wed, 30 Jun 2010 02:30:17 -0700 Subject: [PATCH] rewrite 'mutable &' as '& mutable', corresponding to grammar shift. --- src/test/run-pass/lazy-and-or.rs | 2 +- src/test/run-pass/writealias.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/run-pass/lazy-and-or.rs b/src/test/run-pass/lazy-and-or.rs index 81f09843826..fe0ffe6b21b 100644 --- a/src/test/run-pass/lazy-and-or.rs +++ b/src/test/run-pass/lazy-and-or.rs @@ -1,4 +1,4 @@ -fn incr(mutable &int x) -> bool { +fn incr(& mutable int x) -> bool { x += 1; check (false); ret false; diff --git a/src/test/run-pass/writealias.rs b/src/test/run-pass/writealias.rs index 96b2a9d7f33..061b1b5779a 100644 --- a/src/test/run-pass/writealias.rs +++ b/src/test/run-pass/writealias.rs @@ -2,7 +2,7 @@ type point = rec(int x, int y, mutable int z); -fn f(mutable &point p) { +fn f(& mutable point p) { p.z = 13; }