Skip to content

Commit

Permalink
Collect crate files after collecting definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
asterite committed Jan 6, 2025
1 parent 013538e commit 6e4e1a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/noirc_driver/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,9 +311,9 @@ pub fn check_crate(
crate_id: CrateId,
options: &CompileOptions,
) -> CompilationResult<()> {
let crate_files = context.crate_files(&crate_id);
let diagnostics =
CrateDefMap::collect_defs(crate_id, context, options.debug_comptime_in_file.as_deref());
let crate_files = context.crate_files(&crate_id);
let warnings_and_errors: Vec<FileDiagnostic> = diagnostics
.into_iter()
.map(|(error, file_id)| {
Expand Down

0 comments on commit 6e4e1a4

Please sign in to comment.