Skip to content
New issue

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

Show error when initial invocation after module inlining doesn't reproduce the bug #8

Open
bjorn3 opened this issue Jun 21, 2020 · 2 comments

Comments

@bjorn3
Copy link

bjorn3 commented Jun 21, 2020

I had an include_str inside a module, so after module inlining the path had to be adjusted.

@jethrogb
Copy link
Owner

Could you provide an example input that exhibits the issue?

@bjorn3
Copy link
Author

bjorn3 commented Jun 21, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants