auto merge of #4832 : sanxiyn/rust/pretty-exact, r=graydon

This commit is contained in:
bors 2013-02-07 12:17:32 -08:00
commit a2817953d0
4 changed files with 8 additions and 10 deletions

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// pretty-exact
// pp-exact
// actually this doesn't quite look how I want it to, but I can't
// get the prettyprinter to indent the long expr
@ -18,8 +18,8 @@ fn main() {
let y =
match x {
Some(_) =>
~"some" + ~"very" + ~"very" + ~"very" + ~"very" + ~"very" +
~"very" + ~"very" + ~"very" + ~"long" + ~"string",
~"some" + ~"very" + ~"very" + ~"very" + ~"very" + ~"very" + ~"very"
+ ~"very" + ~"very" + ~"long" + ~"string",
None => ~"none"
};
assert y == ~"some(_)";

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// pretty-exact
// pp-exact
fn main() {
let x = Some(3);

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// pretty-exact
// pp-exact
fn main() {
let x = Some(3);

View File

@ -8,10 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// pretty-exact
// pp-exact
fn f(f: fn@(int)) { f(10) }
fn f(f: @fn(int)) { f(10) }
fn main() {
do f |i| { assert i == 10 }
}
fn main() { do f |i| { assert i == 10 } }