mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
Move equal sign back into head ibox
This commit is contained in:
parent
b7df49895c
commit
b62163515a
@ -1116,9 +1116,11 @@ impl<'a> State<'a> {
|
||||
self.print_ident(ident);
|
||||
self.word_space(":");
|
||||
self.print_type(ty);
|
||||
if body.is_some() {
|
||||
self.space();
|
||||
}
|
||||
self.end(); // end the head-ibox
|
||||
if let Some(body) = body {
|
||||
self.space();
|
||||
self.word_space("=");
|
||||
self.print_expr(body);
|
||||
}
|
||||
|
@ -7,8 +7,7 @@ struct C {
|
||||
}
|
||||
|
||||
#[allow()]
|
||||
const C: C
|
||||
=
|
||||
const C: C =
|
||||
C{
|
||||
#[cfg(debug_assertions)]
|
||||
field: 0,
|
||||
|
@ -43,8 +43,7 @@ fn main() {
|
||||
crate::TokenStream::from(crate::TokenTree::Punct(crate::Punct::new('\u{3b}',
|
||||
crate::Spacing::Alone)))].iter().cloned().collect::<crate::TokenStream>()
|
||||
}
|
||||
const _: ()
|
||||
=
|
||||
const _: () =
|
||||
{
|
||||
extern crate proc_macro;
|
||||
#[rustc_proc_macro_decls]
|
||||
|
Loading…
Reference in New Issue
Block a user