Update tooling

This commit is contained in:
Maybe Waffle 2022-10-27 18:32:17 +04:00
parent a17ccfa621
commit dc53c8f25f
15 changed files with 137 additions and 99 deletions

View file

@ -148,7 +148,7 @@ where
})
.collect();
// We are only interested in case the type *doesn't* implement the Sized trait.
if !ty.is_sized(tcx.at(rustc_span::DUMMY_SP), param_env) {
if !ty.is_sized(tcx, param_env) {
// In case `#![no_core]` is used, `sized_trait` returns nothing.
if let Some(item) = tcx.lang_items().sized_trait().and_then(|sized_trait_did| {
self.generate_for_trait(ty, sized_trait_did, param_env, item_def_id, &f, true)