mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
add debug option to #[rustc_layout]
This commit is contained in:
parent
0296d4968e
commit
55c2cf2a32
@ -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(),
|
||||
|
@ -253,6 +253,7 @@ symbols! {
|
||||
debug_trait,
|
||||
declare_lint_pass,
|
||||
decl_macro,
|
||||
debug,
|
||||
Debug,
|
||||
Decodable,
|
||||
Default,
|
||||
|
Loading…
Reference in New Issue
Block a user