Merge remote-tracking branch 'upstream/master' into rustup
This commit is contained in:
commit
88c7632659
160 changed files with 2212 additions and 434 deletions
|
|
@ -60,7 +60,7 @@ fn is_struct_with_trailing_zero_sized_array(cx: &LateContext<'_>, item: &Item<'_
|
|||
if let Some(last_field) = data.fields().last();
|
||||
if let rustc_hir::TyKind::Array(_, rustc_hir::ArrayLen::Body(length)) = last_field.ty.kind;
|
||||
|
||||
// Then check if that that array zero-sized
|
||||
// Then check if that array is zero-sized
|
||||
let length = Const::from_anon_const(cx.tcx, length.def_id);
|
||||
let length = length.try_eval_target_usize(cx.tcx, cx.param_env);
|
||||
if let Some(length) = length;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue