1
Fork 0

Add Option<Span> to require_lang_item

This commit is contained in:
Yuki Okushi 2019-08-28 06:17:58 +09:00
parent 7e0afdad28
commit 82f2b37635
19 changed files with 39 additions and 28 deletions

View file

@ -1060,7 +1060,7 @@ pub enum GenericBound {
impl GenericBound {
fn maybe_sized(cx: &DocContext<'_>) -> GenericBound {
let did = cx.tcx.require_lang_item(lang_items::SizedTraitLangItem);
let did = cx.tcx.require_lang_item(lang_items::SizedTraitLangItem, None);
let empty = cx.tcx.intern_substs(&[]);
let path = external_path(cx, &cx.tcx.item_name(did).as_str(),
Some(did), false, vec![], empty);