Update reporting to use new crate structure.

This commit is contained in:
Richard Feldman 2020-03-05 20:51:59 -05:00
parent a1b8c97039
commit 6ac60fa5cb

View file

@ -1,8 +1,8 @@
use crate::can::problem::Problem; use crate::can::problem::Problem;
use crate::module::symbol::{Interns, ModuleId, Symbol};
use crate::pretty_print_types::content_to_string; use crate::pretty_print_types::content_to_string;
use crate::region::Region;
use crate::subs::{Content, Subs}; use crate::subs::{Content, Subs};
use roc_module::symbol::{Interns, ModuleId, Symbol};
use roc_region::all::Region;
use std::path::PathBuf; use std::path::PathBuf;
/// A textual report. /// A textual report.
@ -12,17 +12,18 @@ pub struct Report {
} }
impl Report { impl Report {
pub fn can_problem(filename: PathBuf, problem: Problem) -> Self { pub fn can_problem(_filename: PathBuf, _problem: Problem) -> Self {
let text = match problem { // let text = match problem {
Problem::UnusedDef(symbol, region) => { // Problem::UnusedDef(symbol, region) => {
panic!("TODO implelment me!"); // panic!("TODO implelment me!");
} // }
_ => { // _ => {
panic!("TODO implement others"); // panic!("TODO implement others");
} // }
}; // };
Report { filename, text } // Report { filename, text }
panic!("TODO implement me!");
} }
} }