Fix imports

This commit is contained in:
Ayaz Hafiz 2022-11-22 11:00:14 -06:00 committed by Richard Feldman
parent 5efdecafc9
commit 9dbc2224fb
No known key found for this signature in database
GPG key ID: F1F21AA5B1D9E43B
6 changed files with 49 additions and 13 deletions

View file

@ -1,7 +1,7 @@
use bumpalo::Bump;
use roc_build::{
link::{link, preprocess_host_wasm32, rebuild_host, LinkType, LinkingStrategy},
program::{self, CodeGenOptions, Problems},
program::{self, CodeGenOptions},
};
use roc_builtins::bitcode;
use roc_load::{
@ -9,7 +9,10 @@ use roc_load::{
LoadingProblem, Threading,
};
use roc_mono::ir::OptLevel;
use roc_reporting::report::{RenderTarget, DEFAULT_PALETTE};
use roc_reporting::{
cli::Problems,
report::{RenderTarget, DEFAULT_PALETTE},
};
use roc_target::TargetInfo;
use std::time::{Duration, Instant};
use std::{path::PathBuf, thread::JoinHandle};
@ -456,7 +459,7 @@ pub fn check_file(
roc_file_path: PathBuf,
emit_timings: bool,
threading: Threading,
) -> Result<(program::Problems, Duration), LoadingProblem> {
) -> Result<(Problems, Duration), LoadingProblem> {
let compilation_start = Instant::now();
// only used for generating errors. We don't do code generation, so hardcoding should be fine

View file

@ -7,10 +7,11 @@ use build::BuiltFile;
use bumpalo::Bump;
use clap::{Arg, ArgMatches, Command, ValueSource};
use roc_build::link::{LinkType, LinkingStrategy};
use roc_build::program::{CodeGenBackend, CodeGenOptions, Problems};
use roc_build::program::{CodeGenBackend, CodeGenOptions};
use roc_error_macros::{internal_error, user_error};
use roc_load::{ExpectMetadata, LoadingProblem, Threading};
use roc_mono::ir::OptLevel;
use roc_reporting::cli::Problems;
use std::env;
use std::ffi::{CString, OsStr};
use std::io;