mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
resolve comments
This commit is contained in:
parent
a7308130cf
commit
c731c5daae
2 changed files with 2 additions and 6 deletions
|
@ -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