-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
rustdoc reports issues against lib.rs
rather than an include_str!
'd file
#130470
Comments
cc @GuillaumeGomez (as per Mastodon discussion) |
Thanks for opening the issue! I'm surprised since it's an issue that was supposed to be fixed in #123204. Just to confirm: which rustc version do you use? Also cc @notriddle since you're the one who fixed this bug. |
This happened with 1.81 most likely — I would take the few secs to check but I’m on a phone right now. |
The doctest system needs to use the same infrastructure as the rest of rustdoc. |
Rollup merge of rust-lang#130582 - notriddle:notriddle/doctest-span, r=GuillaumeGomez rustdoc: use the correct span for doctests Fixes rust-lang#130470
Yes please! |
@GuillaumeGomez filed as #130626 |
Thanks! Gonna take a look in the next days if someone else didn't do it before then. |
The repro repository has everything: https://github.com/fasterthanlime/readme-md-error-reporting
Expected behavior is that the diagnostics have:
--> README.md:7:16
, but they currently have--> src/lib.rs:7:16
.The text was updated successfully, but these errors were encountered: