rust-reduce
rust-reduce copied to clipboard
Show error when initial invocation after module inlining doesn't reproduce the bug
I had an include_str inside a module, so after module inlining the path had to be adjusted.
Could you provide an example input that exhibits the issue?
https://github.com/anp/criterion.rs/tree/9e2a54710b0afcaee98991376ac9abb164bfadaa
Basically
//- src/html/report.html
<p>some html</p>
//- src/html/mod.rs
fn a() {
let b = include_str!("report.html");
}
//- src/lib.rs
mod html;
got turned into
mod html {
fn a() {
let b = include_str!("report.html");
}
}
The path to report.html needs to be adjusted.