Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
sagudev committed Oct 11, 2023
1 parent a93bb87 commit 6910670
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/compiler/compiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -974,7 +974,7 @@ where

// Even if it does not look like rustc like it might still be rustc driver
// so we do full check
match verified_rust_compiler(
match verify_rust_compiler(
creator.clone(),
executable,
rustc_executable,
Expand All @@ -996,9 +996,11 @@ where
}

#[allow(clippy::too_many_arguments)]
/// Pass `must_be_rust=false` to not hard fail if verification fails (to be used when we are not sure if we even have rust)
///
/// If `must_be_rust` is `true` and verification of `rustc_executable` fails it returns error,
/// if `must_be_rust` is `false` returns `None` if verification failed or `Some((Compiler, CompilerProxy))` if it succeeded.
async fn verified_rust_compiler<T>(
async fn verify_rust_compiler<T>(
creator: T,
executable: &Path,
rustc_executable: PathBuf,
Expand Down

0 comments on commit 6910670

Please sign in to comment.