about summary refs log tree commit diff
path: root/compiler/rustc_errors/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-09-28 08:14:04 +0000
committerbors <bors@rust-lang.org>2022-09-28 08:14:04 +0000
commit6201eabde85db854c1ebb57624be5ec699246b50 (patch)
tree41fd8394b4f257b7829380704e9496f3f1ba3077 /compiler/rustc_errors/src
parent837bf370de144a682041e68bb67469b9f68a55ce (diff)
parentd0a26acb2ae2d000e516eca92ae8feb08d1f6ea0 (diff)
downloadrust-6201eabde85db854c1ebb57624be5ec699246b50.tar.gz
rust-6201eabde85db854c1ebb57624be5ec699246b50.zip
Auto merge of #102302 - nnethercote:more-lexer-improvements, r=matklad
More lexer improvements

A follow-up to #99884.

r? `@matklad`
Diffstat (limited to 'compiler/rustc_errors/src')
-rw-r--r--compiler/rustc_errors/src/lib.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_errors/src/lib.rs b/compiler/rustc_errors/src/lib.rs
index 4d262ae0f5e..d3effb7c1c0 100644
--- a/compiler/rustc_errors/src/lib.rs
+++ b/compiler/rustc_errors/src/lib.rs
@@ -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.)