Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
pprust: Fix formatting regressions from the previous commits
Fix some remaining cases of bad formatting Update some failing tests
- Loading branch information
1 parent
7589601
commit a2a1cd1
Showing
11 changed files
with
100 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
// pp-exact | ||
|
||
#![feature(rustc_attrs)] | ||
|
||
macro_rules! mac { ($ ($ tt : tt) *) => () } | ||
|
||
mac! { | ||
struct S { field1 : u8 , field2 : u16 , } impl Clone for S | ||
{ | ||
fn clone () -> S | ||
{ | ||
panic ! () ; | ||
|
||
} | ||
} | ||
} | ||
|
||
mac! { | ||
a | ||
(aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa | ||
aaaaaaaa aaaaaaaa) a | ||
[aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa | ||
aaaaaaaa aaaaaaaa] a | ||
{ | ||
aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa | ||
aaaaaaaa aaaaaaaa aaaaaaaa | ||
} a | ||
} | ||
|
||
mac!(aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa | ||
aaaaaaaa aaaaaaaa); | ||
mac![aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa | ||
aaaaaaaa aaaaaaaa]; | ||
mac! { | ||
aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa | ||
aaaaaaaa aaaaaaaa | ||
} | ||
|
||
#[rustc_dummy(aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa | ||
aaaaaaaa aaaaaaaa aaaaaaaa)] | ||
#[rustc_dummy[aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa | ||
aaaaaaaa aaaaaaaa aaaaaaaa]] | ||
#[rustc_dummy { | ||
aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa | ||
aaaaaaaa aaaaaaaa | ||
}] | ||
#[rustc_dummy = | ||
"aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa"] | ||
fn main() { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,4 @@ | |
// pretty-compare-only | ||
// pp-exact | ||
|
||
fn main() { b!{ } c } | ||
fn main() { b! { } c } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
src/test/run-make-fulldeps/pretty-expanded-hygiene/input.pp.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
// minimal junk | ||
#![feature(no_core)] | ||
#![no_core] | ||
#![feature /* 0#0 */(no_core)] | ||
#![no_core /* 0#0 */] | ||
|
||
macro_rules! foo /* 60#0 */(( $ x : ident ) => { y + $ x }); | ||
macro_rules /* 0#0 */! foo /* 0#0 */ { ($ x : ident) => { y + $ x } } | ||
|
||
fn bar /* 62#0 */() { let x /* 59#2 */ = 1; y /* 61#4 */ + x /* 59#5 */ } | ||
fn bar /* 0#0 */() { let x /* 0#0 */ = 1; y /* 0#1 */ + x /* 0#0 */ } | ||
|
||
fn y /* 61#0 */() { } | ||
fn y /* 0#0 */() { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
fn main () {let y : u32 = "z" ; {let x : u32 = "y" ; } } | ||
fn main () { let y : u32 = "z" ; { let x : u32 = "y" ; } } |