You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let future_trait = self.tcx.lang_items().future_trait().unwrap();
This causes an internal compiler error in case the expected lang item is not defined,
for example when using #![no_core]. (see #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 #72170, which already did this in some places.
Activity
cofibrant commentedon May 14, 2020
Ah! This is my bad...
cofibrant commentedon May 14, 2020
@rustbot claim
Rollup merge of rust-lang#72216 - doctorn:require-lang-item, r=lcnr
Rollup merge of rust-lang#72216 - doctorn:require-lang-item, r=lcnr
Rollup merge of rust-lang#72216 - doctorn:require-lang-item, r=lcnr
Rollup merge of rust-lang#72216 - doctorn:require-lang-item, r=lcnr
Rollup merge of rust-lang#72216 - doctorn:require-lang-item, r=lcnr