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 40b7e0e commit a1ea1c1Copy full SHA for a1ea1c1
compiler/rustc_metadata/src/locator.rs
@@ -707,6 +707,12 @@ impl<'a> CrateLocator<'a> {
707
loc.original().clone(),
708
));
709
}
710
+ if !loc.original().is_file() {
711
+ return Err(CrateError::ExternLocationNotFile(
712
+ self.crate_name,
713
+ loc.original().clone(),
714
+ ));
715
+ }
716
let Some(file) = loc.original().file_name().and_then(|s| s.to_str()) else {
717
return Err(CrateError::ExternLocationNotFile(
718
self.crate_name,
0 commit comments