Skip to content

Commit

Permalink
Bless pretty-print output.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjgillot committed Apr 23, 2022
1 parent c3276c6 commit 0a6e135
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/test/pretty/hir-pretty-loop.pp
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
// pretty-mode:hir
// pp-exact:hir-pretty-loop.pp

pub fn foo() { loop { break; } }
fn foo() { loop { break; } }
18 changes: 9 additions & 9 deletions src/test/pretty/issue-4264.pp
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@

// #4264 fixed-length vector types

pub fn foo(_: [i32; (3 as usize)]) ({ } as ())
fn foo(_: [i32; (3 as usize)]) ({ } as ())

pub fn bar() ({
fn bar() ({
const FOO: usize = ((5 as usize) - (4 as usize) as usize);
let _: [(); (FOO as usize)] = ([(() as ())] as [(); 1]);

Expand Down Expand Up @@ -41,14 +41,14 @@
(res as String)
} as String);
} as ())
pub type Foo = [i32; (3 as usize)];
pub struct Bar {
pub x: [i32; (3 as usize)],
type Foo = [i32; (3 as usize)];
struct Bar {
x: [i32; (3 as usize)],
}
pub struct TupleBar([i32; (4 as usize)]);
pub enum Baz { BazVariant([i32; (5 as usize)]), }
pub fn id<T>(x: T) -> T ({ (x as T) } as T)
pub fn use_id() ({
struct TupleBar([i32; (4 as usize)]);
enum Baz { BazVariant([i32; (5 as usize)]), }
fn id<T>(x: T) -> T ({ (x as T) } as T)
fn use_id() ({
let _ =
((id::<[i32; (3 as usize)]> as
fn([i32; 3]) -> [i32; 3] {id::<[i32; 3]>})(([(1 as i32),
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/match/issue-82392.stdout
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ extern crate std;
// compile-flags: -Zunpretty=hir,typed
// check-pass

pub fn main() ({
fn main() ({
(if (true as bool)
({ } as
()) else if (let Some(a) =
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/type-alias-impl-trait/issue-60662.stdout
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ extern crate std;
trait Animal { }

fn main() {
pub type ServeFut = /*impl Trait*/;
type ServeFut = /*impl Trait*/;
}

0 comments on commit 0a6e135

Please sign in to comment.