Skip to content

Commit

Permalink
made multiline macro calls into single line
Browse files Browse the repository at this point in the history
  • Loading branch information
jakevossen5 committed Oct 2, 2020
1 parent dffb9d6 commit 3ea96b8
Showing 1 changed file with 6 additions and 18 deletions.
24 changes: 6 additions & 18 deletions compiler/rustc_middle/src/ty/print/pretty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ pub trait PrettyPrinter<'tcx>:
ty::Ref(r, ty, mutbl) => {
p!("&");
if self.region_should_not_be_omitted(r) {
p!(print(r), write(" "));
p!(print(r), " ");
}
p!(print(ty::TypeAndMut { ty, mutbl }))
}
Expand Down Expand Up @@ -2064,31 +2064,19 @@ define_print_and_forward_display! {
ty::PredicateAtom::Projection(predicate) => p!(print(predicate)),
ty::PredicateAtom::WellFormed(arg) => p!(print(arg), " well-formed"),
ty::PredicateAtom::ObjectSafe(trait_def_id) => {
p!("the trait `",
print_def_path(trait_def_id, &[]),
"` is object-safe")
p!("the trait `", print_def_path(trait_def_id, &[]), "` is object-safe")
}
ty::PredicateAtom::ClosureKind(closure_def_id, _closure_substs, kind) => {
p!("the closure `",
print_value_path(closure_def_id, &[]),
write("` implements the trait `{}`", kind))
p!("the closure `", print_value_path(closure_def_id, &[]), write("` implements the trait `{}`", kind))
}
ty::PredicateAtom::ConstEvaluatable(def, substs) => {
p!("the constant `",
print_value_path(def.did, substs),
"` can be evaluated")
p!("the constant `", print_value_path(def.did, substs), "` can be evaluated")
}
ty::PredicateAtom::ConstEquate(c1, c2) => {
p!("the constant `",
print(c1),
"` equals `",
print(c2),
"`")
p!("the constant `", print(c1), "` equals `", print(c2), "`")
}
ty::PredicateAtom::TypeWellFormedFromEnv(ty) => {
p!("the type `",
print(ty),
"` is found in the environment")
p!("the type `", print(ty), "` is found in the environment")
}
}
}
Expand Down

0 comments on commit 3ea96b8

Please sign in to comment.