Make tidy happy
This commit is contained in:
parent
2a9fa202fe
commit
d650091117
@ -1687,7 +1687,13 @@ impl EnumMemberDescriptionFactory<'ll, 'tcx> {
|
||||
source_info: None,
|
||||
}];
|
||||
|
||||
set_members_of_composite_type(cx, self.enum_type, variant_metadata, members, None);
|
||||
set_members_of_composite_type(
|
||||
cx,
|
||||
self.enum_type,
|
||||
variant_metadata,
|
||||
members,
|
||||
None,
|
||||
);
|
||||
|
||||
let variant_info = variant_info_for(dataful_variant);
|
||||
let (variant_type_metadata, member_desc_factory) = describe_enum_variant(
|
||||
@ -1932,9 +1938,9 @@ fn describe_enum_variant(
|
||||
// We have the layout of an enum variant, we need the layout of the outer enum
|
||||
let enum_layout = cx.layout_of(layout.ty);
|
||||
let offset = enum_layout.fields.offset(tag_field.as_usize());
|
||||
let tag_name = if cx.tcx.sess.target.is_like_msvc { "variant$" } else { "RUST$ENUM$DISR" };
|
||||
let args =
|
||||
(tag_name.to_owned(), enum_layout.field(cx, tag_field.as_usize()).ty);
|
||||
let tag_name =
|
||||
if cx.tcx.sess.target.is_like_msvc { "variant$" } else { "RUST$ENUM$DISR" };
|
||||
let args = (tag_name.to_owned(), enum_layout.field(cx, tag_field.as_usize()).ty);
|
||||
(Some(offset), Some(args))
|
||||
}
|
||||
_ => (None, None),
|
||||
|
@ -1,4 +1,5 @@
|
||||
// only-cdb
|
||||
// ignore-tidy-linelength
|
||||
// compile-flags:-g
|
||||
|
||||
// cdb-command: g
|
||||
|
@ -1,6 +1,7 @@
|
||||
// ignore-freebsd: gdb package too new
|
||||
// only-cdb // "Temporarily" ignored on GDB/LLDB due to debuginfo tests being disabled, see PR 47155
|
||||
// ignore-android: FIXME(#10381)
|
||||
// ignore-tidy-linelength
|
||||
// compile-flags:-g
|
||||
// min-gdb-version: 7.7
|
||||
// min-lldb-version: 310
|
||||
@ -115,7 +116,7 @@
|
||||
// cdb-command: dx none
|
||||
// cdb-check:none : None [Type: _enum<core::option::Option<i64>>]
|
||||
// cdb-command: dx some_string
|
||||
// cdb-check:some_string [Type: _enum<core::option::Option<alloc::string::String>, 1, 18446744073709551615, Some>]
|
||||
// cdb-check:some_string [Type: _enum<core::option::Option<alloc::string::String>, 1, [...], Some>]
|
||||
|
||||
#![allow(unused_variables)]
|
||||
use std::ffi::OsString;
|
||||
|
Loading…
x
Reference in New Issue
Block a user