mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 20:28:02 +00:00
resolve comments
This commit is contained in:
parent
a7308130cf
commit
c731c5daae
2 changed files with 2 additions and 6 deletions
|
@ -88,7 +88,7 @@ fn write_types_for_module_real(module_id: ModuleId, filename: &str, output_path:
|
|||
|
||||
let mut module = match res_module {
|
||||
Ok(v) => v,
|
||||
Err(LoadingProblem::FormattedReport(report, None)) => {
|
||||
Err(LoadingProblem::FormattedReport(report, _)) => {
|
||||
internal_error!("{}", report);
|
||||
}
|
||||
Err(other) => {
|
||||
|
|
|
@ -71,7 +71,6 @@ impl ToRocPosition for tower_lsp::lsp_types::Position {
|
|||
pub(crate) mod diag {
|
||||
use std::path::Path;
|
||||
|
||||
use log::debug;
|
||||
use roc_load::LoadingProblem;
|
||||
use roc_region::all::{LineInfo, Region};
|
||||
use roc_solve_problem::TypeError;
|
||||
|
@ -110,12 +109,10 @@ pub(crate) mod diag {
|
|||
.get_region()
|
||||
.unwrap_or(Region::new(
|
||||
roc_region::all::Position::new(0),
|
||||
roc_region::all::Position::new(10000000),
|
||||
roc_region::all::Position::new(10_000_000),
|
||||
))
|
||||
.to_range(line_info);
|
||||
|
||||
debug!("range is {:?}", range);
|
||||
|
||||
let msg = match self {
|
||||
LoadingProblem::FileProblem { filename, error } => {
|
||||
format!(
|
||||
|
@ -200,7 +197,6 @@ pub(crate) mod diag {
|
|||
))
|
||||
.to_range(fmt.line_info);
|
||||
|
||||
debug!("range is {:?}", range);
|
||||
let report = roc_reporting::report::can_problem(
|
||||
fmt.alloc,
|
||||
fmt.line_info,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue