-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Add support for include_str #5100
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
Conversation
Maybe we could reuse https://github.com/rust-analyzer/rust-analyzer/blob/6a067ce947980d887a254d71d7183c3d306d8978/crates/rust-analyzer/tests/heavy_tests/main.rs#L468 and add a test ? |
I'm not sure what to test for? For some reason, "expand macros recursively" doesn't seem to work. |
Adding something like this inside the
|
For some reason, we don't seem to find the file -- |
iirc, we added a constraint for limiting self including in |
Oh, right, it works with other files. But what about non- |
I remember we have some discussion with @matklad that all non-rs files should be included by users explicitly. So I think it is okay for now |
Added a small hack. |
Just small nits, otherwise LGTM bors d+ |
✌️ lnicola can now approve this pull request. To approve and merge a pull request, simply reply with |
Which nits? 😄 |
), | ||
work_done_progress_params: Default::default(), | ||
}); | ||
assert!(dbg!(res.to_string()).contains("&str")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remain dbg
?
bors r=edwin0cheng |
r? @edwin0cheng