about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2023-08-25 23:01:06 +0200
committerRalf Jung <post@ralfj.de>2023-08-27 11:55:49 +0200
commitabe2148aeef3a1ee4622ae8df43370aa749c7b4e (patch)
tree9cb6b60774af1263f69faf31bd2d736e7dd49c3d /compiler/rustc_interface/src
parentb60f7b51a27dfd9cbc5ecaa56ee679cd1b67f4c4 (diff)
downloadrust-abe2148aeef3a1ee4622ae8df43370aa749c7b4e.tar.gz
rust-abe2148aeef3a1ee4622ae8df43370aa749c7b4e.zip
add rustc_abi debugging attribute
Diffstat (limited to 'compiler/rustc_interface/src')
-rw-r--r--compiler/rustc_interface/src/passes.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_interface/src/passes.rs b/compiler/rustc_interface/src/passes.rs
index 18a669175b9..f6cbbad6338 100644
--- a/compiler/rustc_interface/src/passes.rs
+++ b/compiler/rustc_interface/src/passes.rs
@@ -22,7 +22,7 @@ use rustc_middle::query::{ExternProviders, Providers};
 use rustc_middle::ty::{self, GlobalCtxt, RegisteredTools, TyCtxt};
 use rustc_mir_build as mir_build;
 use rustc_parse::{parse_crate_from_file, parse_crate_from_source_str, validate_attr};
-use rustc_passes::{self, hir_stats, layout_test};
+use rustc_passes::{self, abi_test, hir_stats, layout_test};
 use rustc_plugin_impl as plugin;
 use rustc_resolve::Resolver;
 use rustc_session::code_stats::VTableSizeInfo;
@@ -818,6 +818,7 @@ fn analysis(tcx: TyCtxt<'_>, (): ()) -> Result<()> {
     }
 
     sess.time("layout_testing", || layout_test::test_layout(tcx));
+    sess.time("abi_testing", || abi_test::test_abi(tcx));
 
     // Avoid overwhelming user with errors if borrow checking failed.
     // I'm not sure how helpful this is, to be honest, but it avoids a