about summary refs log tree commit diff
path: root/compiler/rustc_errors/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-12-12 08:07:05 +0100
committerGitHub <noreply@github.com>2024-12-12 08:07:05 +0100
commit2ced8b31c712065ff2a68d68b80dd50fc8b6f70e (patch)
treeceff21f2b5da6e001f70a428d25b09ee4e7d43d3 /compiler/rustc_errors/src
parent10556598e5cdf8f95733570c93073c4035fc4d8b (diff)
parent40c964510c3d6f6c05ceee305e128bd924baf1d6 (diff)
downloadrust-2ced8b31c712065ff2a68d68b80dd50fc8b6f70e.tar.gz
rust-2ced8b31c712065ff2a68d68b80dd50fc8b6f70e.zip
Rollup merge of #134187 - nnethercote:rm-PErr, r=jieyouxu
Remove `PErr`.

It's just a synonym for `Diag` that adds no value and is only used in a few places.

r? ``@spastorino``
Diffstat (limited to 'compiler/rustc_errors/src')
-rw-r--r--compiler/rustc_errors/src/lib.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_errors/src/lib.rs b/compiler/rustc_errors/src/lib.rs
index 6e9ac2c4fc0..25d41462556 100644
--- a/compiler/rustc_errors/src/lib.rs
+++ b/compiler/rustc_errors/src/lib.rs
@@ -94,8 +94,7 @@ mod styled_buffer;
 mod tests;
 pub mod translation;
 
-pub type PErr<'a> = Diag<'a>;
-pub type PResult<'a, T> = Result<T, PErr<'a>>;
+pub type PResult<'a, T> = Result<T, Diag<'a>>;
 
 rustc_fluent_macro::fluent_messages! { "../messages.ftl" }