We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It indents the body deeper than the opening brace, and runs off the right margin. I think something like this would preferable:
callsomethingwithablock({ | x | { // Indent one unit beyond the line that opened the block body_here(); });
The text was updated successfully, but these errors were encountered:
Same for other function expressions, actually. Unfortunately, the current pretty-printer isn't really suited for 'javascript-style' indentation.
Sorry, something went wrong.
Does the "better" notation of foo() { | ... | } prints less horribly?
I haven't tried. But even if it does, blocks-within-parenthesis are a part of the language and should be handled in a moderately elegant way.
Block syntax is different now. It still doesn't pretty-print that nicely, but it is broken in different ways.
Use black_box instead of llvm_asm (rust-lang#944)
ca5aed8
The implementation is the same (where possible), and it unblocks rust-lang#904 Signed-off-by: Joe Richey <[email protected]>
Use cargo locate-project (rust-lang#904)
bac92b7
* use message-format plain, update error handling
No branches or pull requests
It indents the body deeper than the opening brace, and runs off the right margin. I think something like this would preferable:
The text was updated successfully, but these errors were encountered: