-
Notifications
You must be signed in to change notification settings - Fork 156
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
fix: Correct several issues found during #4740 #4786
Conversation
@@ -43,10 +43,16 @@ pub type SemanticPackageMap = SemanticMap<String, Package>; | |||
/// Infers the Flux standard library given the path to the source code. | |||
/// The prelude and the imports are returned. | |||
#[allow(clippy::type_complexity)] | |||
pub fn infer_stdlib_dir(path: &Path) -> Result<(PackageExports, Packages, SemanticPackageMap)> { | |||
pub fn infer_stdlib_dir( |
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.
the second argument needs to be supplied here as well. else it will return an error.
flux/libflux/flux/benches/basic.rs
Line 30 in 5a828bd
let (prelude, _, _) = bootstrap::infer_stdlib_dir(Path::new("../../stdlib")).unwrap(); |
@@ -43,10 +43,16 @@ pub type SemanticPackageMap = SemanticMap<String, Package>; | |||
/// Infers the Flux standard library given the path to the source code. | |||
/// The prelude and the imports are returned. | |||
#[allow(clippy::type_complexity)] | |||
pub fn infer_stdlib_dir(path: &Path) -> Result<(PackageExports, Packages, SemanticPackageMap)> { | |||
pub fn infer_stdlib_dir( |
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.
the second argument needs to be supplied here as well. else it will return an error.
flux/libflux/flux/benches/basic.rs
Line 30 in 5a828bd
let (prelude, _, _) = bootstrap::infer_stdlib_dir(Path::new("../../stdlib")).unwrap(); |
Various fixes and refactorings I have done so for for #4740 . Reviewing commit by commit is recommended.