Rollup merge of #63961 - JohnTitor:improve-require-lang-item, r=estebank
Add Option<Span> to `require_lang_item` Fixes #63954 I'm not sure where to take `Some(span)` or something so I use `None` in many places. r? @estebank
This commit is contained in:
commit
d4757d5bbf
19 changed files with 42 additions and 28 deletions
|
@ -1037,7 +1037,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