-
Notifications
You must be signed in to change notification settings - Fork 231
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove unnecessary cloning * No more Vecs of Vecs of errors * Overhaul def collection to allow generics on impls * Fix generics len assert * Wrangle together all the type lookup functions and handle struct generics right * Fix methods referring to incorrect type variables * Rename finish report function * Remove TODO * PR Feedback * Add Bar<Field> case to test * PR Feedback
- Loading branch information
Showing
24 changed files
with
662 additions
and
505 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,14 @@ | ||
mod position; | ||
mod reporter; | ||
|
||
pub mod reporter; | ||
pub use position::{Location, Position, Span, Spanned}; | ||
pub use reporter::*; | ||
|
||
pub trait DiagnosableError { | ||
fn to_diagnostic(&self) -> CustomDiagnostic; | ||
} | ||
pub use reporter::{CustomDiagnostic, DiagnosticKind}; | ||
|
||
/// Returned when the Reporter finishes after reporting errors | ||
#[derive(Copy, Clone)] | ||
pub struct ReportedError; | ||
|
||
#[derive(Debug, PartialEq, Eq)] | ||
pub struct CollectedErrors { | ||
pub struct FileDiagnostic { | ||
pub file_id: fm::FileId, | ||
pub errors: Vec<CustomDiagnostic>, | ||
pub diagnostic: CustomDiagnostic, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.