mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
Move macros from roc_reporting to new roc_error_macros module
The `internal_error!` and `user_error!´ macros can't be used everywhere when they live in `roc_reporting` due to circular dependencies.
This commit is contained in:
parent
2b3f347eec
commit
71f359fbdc
27 changed files with 71 additions and 57 deletions
|
@ -2,6 +2,7 @@ use std::path::PathBuf;
|
|||
|
||||
use bumpalo::collections::Vec;
|
||||
use bumpalo::Bump;
|
||||
use roc_error_macros::{internal_error, user_error};
|
||||
use roc_fmt::def::fmt_def;
|
||||
use roc_fmt::module::fmt_module;
|
||||
use roc_fmt::Buf;
|
||||
|
@ -21,7 +22,6 @@ use roc_parse::{
|
|||
state::State,
|
||||
};
|
||||
use roc_region::all::{Loc, Region};
|
||||
use roc_reporting::{internal_error, user_error};
|
||||
|
||||
pub fn format(files: std::vec::Vec<PathBuf>) {
|
||||
for file in files {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue