about summary refs log tree commit diff
path: root/compiler/rustc_monomorphize/src/errors.rs
diff options
context:
space:
mode:
authorRémy Rakic <remy.rakic+github@gmail.com>2022-12-08 19:21:08 +0000
committerRémy Rakic <remy.rakic+github@gmail.com>2022-12-14 20:17:52 +0000
commit7611933e6af6909dbfb4f38596f8fdd4e3b57a8d (patch)
tree72d90033498731f96dccacc68213339266f4107a /compiler/rustc_monomorphize/src/errors.rs
parent74f4da44a5743e88ce2bbb76f585c02e67af83a1 (diff)
downloadrust-7611933e6af6909dbfb4f38596f8fdd4e3b57a8d.tar.gz
rust-7611933e6af6909dbfb4f38596f8fdd4e3b57a8d.zip
add `-Z dump-mono-stats`
This option will output some stats from the monomorphization collection
pass to a file, to show estimated sizes from each instantiation.
Diffstat (limited to 'compiler/rustc_monomorphize/src/errors.rs')
-rw-r--r--compiler/rustc_monomorphize/src/errors.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler/rustc_monomorphize/src/errors.rs b/compiler/rustc_monomorphize/src/errors.rs
index f1ca72de8db..f15cf54718e 100644
--- a/compiler/rustc_monomorphize/src/errors.rs
+++ b/compiler/rustc_monomorphize/src/errors.rs
@@ -77,3 +77,9 @@ pub struct SymbolAlreadyDefined {
     pub span: Option<Span>,
     pub symbol: String,
 }
+
+#[derive(Diagnostic)]
+#[diag(monomorphize_couldnt_dump_mono_stats)]
+pub struct CouldntDumpMonoStats {
+    pub error: String,
+}