From 6ac60fa5cba3ba91d3c4972cf194bb5ca6dc7ea0 Mon Sep 17 00:00:00 2001 From: Richard Feldman Date: Thu, 5 Mar 2020 20:51:59 -0500 Subject: [PATCH] Update reporting to use new crate structure. --- compiler/src/reporting.rs | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/compiler/src/reporting.rs b/compiler/src/reporting.rs index 1e82ed6937..65ad298a05 100644 --- a/compiler/src/reporting.rs +++ b/compiler/src/reporting.rs @@ -1,8 +1,8 @@ use crate::can::problem::Problem; -use crate::module::symbol::{Interns, ModuleId, Symbol}; use crate::pretty_print_types::content_to_string; -use crate::region::Region; use crate::subs::{Content, Subs}; +use roc_module::symbol::{Interns, ModuleId, Symbol}; +use roc_region::all::Region; use std::path::PathBuf; /// A textual report. @@ -12,17 +12,18 @@ pub struct Report { } impl Report { - pub fn can_problem(filename: PathBuf, problem: Problem) -> Self { - let text = match problem { - Problem::UnusedDef(symbol, region) => { - panic!("TODO implelment me!"); - } - _ => { - panic!("TODO implement others"); - } - }; + pub fn can_problem(_filename: PathBuf, _problem: Problem) -> Self { + // let text = match problem { + // Problem::UnusedDef(symbol, region) => { + // panic!("TODO implelment me!"); + // } + // _ => { + // panic!("TODO implement others"); + // } + // }; - Report { filename, text } + // Report { filename, text } + panic!("TODO implement me!"); } }