Add Option<Span> to require_lang_item
This commit is contained in:
parent
7e0afdad28
commit
82f2b37635
19 changed files with 39 additions and 28 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue