diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-10-03 08:00:27 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-10-03 11:43:15 -0700 |
| commit | 39f4bf7b1c9991cfd02f68d45ca59d6c525c4184 (patch) | |
| tree | 5a3cd9b50266167ad0abdc56567dcdfdf882b4b2 | |
| parent | 48cdb55d797a2fd8b45fd22fed7a5bec8086f19e (diff) | |
| download | rust-39f4bf7b1c9991cfd02f68d45ca59d6c525c4184.tar.gz rust-39f4bf7b1c9991cfd02f68d45ca59d6c525c4184.zip | |
Test fixes from the rollup
| -rw-r--r-- | src/doc/reference.md | 2 | ||||
| -rw-r--r-- | src/test/pretty/issue-4264.pp | 28 |
2 files changed, 15 insertions, 15 deletions
diff --git a/src/doc/reference.md b/src/doc/reference.md index 9cc70118b14..9a02a3b815e 100644 --- a/src/doc/reference.md +++ b/src/doc/reference.md @@ -1412,7 +1412,7 @@ struct BitsNStrings<'a> { mystring: &'a str } -static bits_n_strings: BitsNStrings<'static> = BitsNStrings { +static BITS_N_STRINGS: BitsNStrings<'static> = BitsNStrings { mybits: BITS, mystring: STRING }; diff --git a/src/test/pretty/issue-4264.pp b/src/test/pretty/issue-4264.pp index 376a3a38fda..2bc09d7e96e 100644 --- a/src/test/pretty/issue-4264.pp +++ b/src/test/pretty/issue-4264.pp @@ -26,33 +26,33 @@ pub fn foo(_: [int, ..(3 as uint)]) { } pub fn bar() { static FOO: uint = ((5u as uint) - (4u as uint) as uint); - let _: [(), ..(FOO as uint)] = ([(() as ())] as [(), .. 1]); + let _: [(), ..(FOO as uint)] = ([(() as ())] as [(), ..1]); - let _: [(), ..(1u as uint)] = ([(() as ())] as [(), .. 1]); + let _: [(), ..(1u as uint)] = ([(() as ())] as [(), ..1]); let _ = - (((&((([(1i as int), (2 as int), (3 as int)] as [int, .. 3])) as - [int, .. 3]) as &[int, .. 3]) as *const _ as - *const [int, .. 3]) as *const [int, ..(3u as uint)] as - *const [int, .. 3]); + (((&((([(1i as int), (2 as int), (3 as int)] as [int, ..3])) as + [int, ..3]) as &[int, ..3]) as *const _ as *const [int, ..3]) + as *const [int, ..(3u as uint)] as *const [int, ..3]); + (match (() as ()) { () => { #[inline] #[allow(dead_code)] static __STATIC_FMTSTR: [&'static str, ..(1u as uint)] = - ([("test" as &'static str)] as [&'static str, .. 1]); + ([("test" as &'static str)] as [&'static str, ..1]); let __args_vec = - (&([] as [core::fmt::Argument<'_>, .. 0]) as - &[core::fmt::Argument<'_>, .. 0]); + (&([] as [core::fmt::Argument<'_>, ..0]) as + &[core::fmt::Argument<'_>, ..0]); let __args = (unsafe { ((::std::fmt::Arguments::new as unsafe fn(&'static [&'static str], &'a [core::fmt::Argument<'a>]) -> core::fmt::Arguments<'a>)((__STATIC_FMTSTR as - [&'static str, .. 1]), + [&'static str, ..1]), (__args_vec as - &[core::fmt::Argument<'_>, .. 0])) + &[core::fmt::Argument<'_>, ..0])) as core::fmt::Arguments<'_>) } as core::fmt::Arguments<'_>); @@ -83,8 +83,8 @@ pub fn id<T>(x: T) -> T { (x as T) } pub fn use_id() { let _ = ((id::<[int, ..(3u as uint)]> as - fn([int, .. 3]) -> [int, .. 3])(([(1 as int), (2 as int), - (3 as int)] as [int, .. 3])) as - [int, .. 3]); + fn([int, ..3]) -> [int, ..3])(([(1 as int), (2 as int), + (3 as int)] as [int, ..3])) as + [int, ..3]); } fn main() { } |
