Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pretty print
$crate
as crate
or crate_name
in more cases
- Loading branch information
1 parent
f95834b
commit c375333
Showing
6 changed files
with
36 additions
and
27 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
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,18 @@ | ||
#![feature(prelude_import)] | ||
#![no_std] | ||
#[prelude_import] | ||
use ::std::prelude::v1::*; | ||
#[macro_use] | ||
extern crate std; | ||
// pretty-compare-only | ||
// pretty-mode:expanded | ||
// pp-exact:dollar-crate.pp | ||
|
||
fn main() { | ||
{ | ||
::std::io::_print(::std::fmt::Arguments::new_v1(&["rust\n"], | ||
&match () { | ||
() => [], | ||
})); | ||
}; | ||
} |
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,7 @@ | ||
// pretty-compare-only | ||
// pretty-mode:expanded | ||
// pp-exact:dollar-crate.pp | ||
|
||
fn main() { | ||
println!("rust"); | ||
} |