|
23 | 23 | //! require us to update the `Span`s mentioned in the later rewrites to account for the changes in
|
24 | 24 | //! the source code produced by the earlier ones).
|
25 | 25 |
|
26 |
| -use log::{debug, info, warn}; |
| 26 | +use log::{debug, warn}; |
27 | 27 | use rustc_hir::Mutability;
|
28 | 28 | use rustc_middle::ty::TyCtxt;
|
29 | 29 | use rustc_span::{FileName, Span};
|
@@ -338,18 +338,18 @@ pub fn apply_rewrites(
|
338 | 338 | update_files: UpdateFiles,
|
339 | 339 | ) {
|
340 | 340 | let emit = |filename, src: String| {
|
341 |
| - info!("\n\n ===== BEGIN {:?} =====", filename); |
| 341 | + println!("\n\n ===== BEGIN {:?} =====", filename); |
342 | 342 | for line in src.lines() {
|
343 | 343 | // Omit filecheck directives from the debug output, as filecheck can get confused due
|
344 | 344 | // to directives matching themselves (e.g. `// CHECK: foo` will match the `foo` in the
|
345 | 345 | // line `// CHECK: foo`).
|
346 | 346 | if let Some((pre, _post)) = line.split_once("// CHECK") {
|
347 |
| - info!("{}// (FileCheck directive omitted)", pre); |
| 347 | + println!("{}// (FileCheck directive omitted)", pre); |
348 | 348 | } else {
|
349 |
| - info!("{}", line); |
| 349 | + println!("{}", line); |
350 | 350 | }
|
351 | 351 | }
|
352 |
| - info!(" ===== END {:?} =====", filename); |
| 352 | + println!(" ===== END {:?} =====", filename); |
353 | 353 |
|
354 | 354 | if !matches!(update_files, UpdateFiles::No) {
|
355 | 355 | let mut path_ok = false;
|
|
0 commit comments