File tree Expand file tree Collapse file tree 4 files changed +12
-12
lines changed Expand file tree Collapse file tree 4 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 66// pretty-mode:hir
77// pp-exact:hir-pretty-loop.pp
88
9- pub fn foo() { loop { break; } }
9+ fn foo() { loop { break; } }
Original file line number Diff line number Diff line change 88
99// # 4264 fixed-length vector types
1010
11- pub fn foo(_: [i32; (3 as usize)]) ({ } as ())
11+ fn foo(_: [i32; (3 as usize)]) ({ } as ())
1212
13- pub fn bar() ({
13+ fn bar() ({
1414 const FOO: usize = ((5 as usize) - (4 as usize) as usize);
1515 let _: [(); (FOO as usize)] = ([(() as ())] as [(); 1]);
1616
4141 (res as String)
4242 } as String);
4343 } as ())
44- pub type Foo = [i32; (3 as usize)];
45- pub struct Bar {
46- pub x: [i32; (3 as usize)],
44+ type Foo = [i32; (3 as usize)];
45+ struct Bar {
46+ x: [i32; (3 as usize)],
4747}
48- pub struct TupleBar([i32; (4 as usize)]);
49- pub enum Baz { BazVariant([i32; (5 as usize)]), }
50- pub fn id<T>(x: T) -> T ({ (x as T) } as T)
51- pub fn use_id() ({
48+ struct TupleBar([i32; (4 as usize)]);
49+ enum Baz { BazVariant([i32; (5 as usize)]), }
50+ fn id<T>(x: T) -> T ({ (x as T) } as T)
51+ fn use_id() ({
5252 let _ =
5353 ((id::<[i32; (3 as usize)]> as
5454 fn([i32; 3]) -> [i32; 3] {id::<[i32; 3]>})(([(1 as i32),
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ extern crate std;
66// compile-flags: -Zunpretty=hir,typed
77// check-pass
88
9- pub fn main() ({
9+ fn main() ({
1010 (if (true as bool)
1111 ({ } as
1212 ()) else if (let Some(a) =
Original file line number Diff line number Diff line change @@ -10,5 +10,5 @@ extern crate std;
1010trait Animal { }
1111
1212fn main() {
13- pub type ServeFut = /*impl Trait*/;
13+ type ServeFut = /*impl Trait*/;
1414 }
You can’t perform that action at this time.
0 commit comments