Skip to content

Commit d733c07

Browse files
Merge pull request #20768 from ChayimFriedman2/std-error-syntaxerror
minor: Impl `std::error::Error` for `SyntaxError`
2 parents 2b2d9d8 + e3287fc commit d733c07

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crates/syntax/src/syntax_error.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,5 @@ impl fmt::Display for SyntaxError {
4242
self.0.fmt(f)
4343
}
4444
}
45+
46+
impl std::error::Error for SyntaxError {}

0 commit comments

Comments
 (0)