-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Open
Labels
A-prettyArea: Pretty printing (including `-Z unpretty`)Area: Pretty printing (including `-Z unpretty`)C-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
For example:
pub fn f(x: usize) {
if x == 1 {
} else if x == 2 {
} else if x == 3 {
} else if x == 4 {
} else {
}
}
is formatted as follows (this is complete output):
$ rustc --crate-type=lib a.rs -Zunpretty=hir
#[prelude_import]
use ::std::prelude::rust_2015::*;
#[macro_use]
extern crate std;
pub fn f(x:
usize) {
if x == 1
{
} else if x == 2
{
}
jyn514
Metadata
Metadata
Assignees
Labels
A-prettyArea: Pretty printing (including `-Z unpretty`)Area: Pretty printing (including `-Z unpretty`)C-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.