Skip to content

Commit d4ede01

Browse files
committed
analyze: use println! instead of info! to print rewritten code
1 parent 5979113 commit d4ede01

File tree

1 file changed

+5
-5
lines changed
  • c2rust-analyze/src/rewrite

1 file changed

+5
-5
lines changed

c2rust-analyze/src/rewrite/mod.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
//! require us to update the `Span`s mentioned in the later rewrites to account for the changes in
2424
//! the source code produced by the earlier ones).
2525
26-
use log::{debug, info, warn};
26+
use log::{debug, warn};
2727
use rustc_hir::Mutability;
2828
use rustc_middle::ty::TyCtxt;
2929
use rustc_span::{FileName, Span};
@@ -338,18 +338,18 @@ pub fn apply_rewrites(
338338
update_files: UpdateFiles,
339339
) {
340340
let emit = |filename, src: String| {
341-
info!("\n\n ===== BEGIN {:?} =====", filename);
341+
println!("\n\n ===== BEGIN {:?} =====", filename);
342342
for line in src.lines() {
343343
// Omit filecheck directives from the debug output, as filecheck can get confused due
344344
// to directives matching themselves (e.g. `// CHECK: foo` will match the `foo` in the
345345
// line `// CHECK: foo`).
346346
if let Some((pre, _post)) = line.split_once("// CHECK") {
347-
info!("{}// (FileCheck directive omitted)", pre);
347+
println!("{}// (FileCheck directive omitted)", pre);
348348
} else {
349-
info!("{}", line);
349+
println!("{}", line);
350350
}
351351
}
352-
info!(" ===== END {:?} =====", filename);
352+
println!(" ===== END {:?} =====", filename);
353353

354354
if !matches!(update_files, UpdateFiles::No) {
355355
let mut path_ok = false;

0 commit comments

Comments
 (0)