We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 80f4e9f + 9b02acb commit 4806a4fCopy full SHA for 4806a4f
src/rustc/middle/trans/build.rs
@@ -653,7 +653,7 @@ fn add_comment(bcx: block, text: ~str) {
653
let ccx = bcx.ccx();
654
if !ccx.sess.no_asm_comments() {
655
let sanitized = str::replace(text, ~"$", ~"");
656
- let comment_text = ~"# " + sanitized;
+ let comment_text = ~"# " + str::replace(sanitized, ~"\n", ~"\n\t# ");
657
let asm = str::as_c_str(comment_text, |c| {
658
str::as_c_str(~"", |e| {
659
count_insn(bcx, ~"inlineasm");
0 commit comments