We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 498c2a7 commit f7efc12Copy full SHA for f7efc12
macro/src/lib.rs
@@ -376,7 +376,7 @@ impl Paths {
376
fn get_call_site_rel() -> PathBuf {
377
// Sometimes `proc_macro::Span::call_site()` returns a relative path, sometimes an absolute
378
// one. In the latter case, we need to discover the relative part from the project root.
379
- let mut call_site_path = proc_macro::Span::call_site().source_file().path();
+ let mut call_site_path: std::path::PathBuf = proc_macro::Span::call_site().file().into();
380
call_site_path.set_extension("");
381
if call_site_path.is_relative() {
382
return call_site_path.to_path_buf();
0 commit comments