add debug option to #[rustc_layout]

This commit is contained in:
Ralf Jung 2020-03-10 22:25:53 +01:00
parent 0296d4968e
commit 55c2cf2a32
2 changed files with 8 additions and 0 deletions

View File

@ -81,6 +81,13 @@ impl LayoutTest<'tcx> {
);
}
sym::debug => {
self.tcx.sess.span_err(
item.span,
&format!("layout debugging: {:#?}", *ty_layout),
);
}
name => {
self.tcx.sess.span_err(
meta_item.span(),

View File

@ -253,6 +253,7 @@ symbols! {
debug_trait,
declare_lint_pass,
decl_macro,
debug,
Debug,
Decodable,
Default,