about summary refs log tree commit diff
path: root/compiler/rustc_errors/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-12-12 11:31:10 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2024-12-12 11:31:55 +1100
commit40c964510c3d6f6c05ceee305e128bd924baf1d6 (patch)
tree9c03264181af1ba9bc8c09e4e45cd3708c30351c /compiler/rustc_errors/src
parent33c245b9e98bc91e18ea1c5033824f4c6f92766f (diff)
downloadrust-40c964510c3d6f6c05ceee305e128bd924baf1d6.tar.gz
rust-40c964510c3d6f6c05ceee305e128bd924baf1d6.zip
Remove `PErr`.
It's just a synonym for `Diag` that adds no value and is only used in a
few places.
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 6232c875ee8..f77f53a1310 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" }