Update tooling
This commit is contained in:
parent
a17ccfa621
commit
dc53c8f25f
15 changed files with 137 additions and 99 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue