add debug option to #[rustc_layout]
This commit is contained in:
parent
0296d4968e
commit
55c2cf2a32
2 changed files with 8 additions and 0 deletions
|
@ -81,6 +81,13 @@ impl LayoutTest<'tcx> {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sym::debug => {
|
||||||
|
self.tcx.sess.span_err(
|
||||||
|
item.span,
|
||||||
|
&format!("layout debugging: {:#?}", *ty_layout),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
name => {
|
name => {
|
||||||
self.tcx.sess.span_err(
|
self.tcx.sess.span_err(
|
||||||
meta_item.span(),
|
meta_item.span(),
|
||||||
|
|
|
@ -253,6 +253,7 @@ symbols! {
|
||||||
debug_trait,
|
debug_trait,
|
||||||
declare_lint_pass,
|
declare_lint_pass,
|
||||||
decl_macro,
|
decl_macro,
|
||||||
|
debug,
|
||||||
Debug,
|
Debug,
|
||||||
Decodable,
|
Decodable,
|
||||||
Default,
|
Default,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue