Auto merge of #102302 - nnethercote:more-lexer-improvements, r=matklad
More lexer improvements A follow-up to #99884. r? `@matklad`
This commit is contained in:
commit
6201eabde8
7 changed files with 443 additions and 457 deletions
|
@ -62,7 +62,8 @@ pub mod translation;
|
|||
pub use diagnostic_builder::IntoDiagnostic;
|
||||
pub use snippet::Style;
|
||||
|
||||
pub type PResult<'a, T> = Result<T, DiagnosticBuilder<'a, ErrorGuaranteed>>;
|
||||
pub type PErr<'a> = DiagnosticBuilder<'a, ErrorGuaranteed>;
|
||||
pub type PResult<'a, T> = Result<T, PErr<'a>>;
|
||||
|
||||
// `PResult` is used a lot. Make sure it doesn't unintentionally get bigger.
|
||||
// (See also the comment on `DiagnosticBuilder`'s `diagnostic` field.)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue