mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-22 12:54:08 +00:00
Switch to PathBuf to avoid Path turning into a fat pointer. Avoids growing Constraints
This commit is contained in:
parent
9a87675368
commit
c440b2ca05
4 changed files with 17 additions and 13 deletions
|
@ -1,5 +1,5 @@
|
|||
//! Provides types to describe problems that can occur during solving.
|
||||
use std::{path::Path, str::Utf8Error};
|
||||
use std::{path::PathBuf, str::Utf8Error};
|
||||
|
||||
use roc_can::expected::{Expected, PExpected};
|
||||
use roc_module::{ident::Lowercase, symbol::Symbol};
|
||||
|
@ -31,8 +31,8 @@ pub enum TypeError {
|
|||
expected_opaque: Symbol,
|
||||
found_opaque: Symbol,
|
||||
},
|
||||
IngestedFileBadUtf8(Box<Path>, Utf8Error),
|
||||
IngestedFileUnsupportedType(Box<Path>, ErrorType),
|
||||
IngestedFileBadUtf8(Box<PathBuf>, Utf8Error),
|
||||
IngestedFileUnsupportedType(Box<PathBuf>, ErrorType),
|
||||
}
|
||||
|
||||
impl TypeError {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue