There are currently quite a few locations in the compiler similar to the following:
This causes an internal compiler error in case the expected lang item is not defined,
for example when using #![no_core]. (see https://github.com/rust-lang/rust/issues/72099)
A better way to deal with this is to use tcx.require_lang_item(FutureTraitLangItem, opt_span) instead, which cleanly stops compilation in case the lang item is missing.
See https://github.com/rust-lang/rust/pull/72170, which already did this in some places.
This issue has been assigned to @doctorn via this comment.
Ah! This is my bad...
@rustbot claim
Most helpful comment
@rustbot claim