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
|
@ -1460,7 +1460,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
|
|||
}
|
||||
}
|
||||
|
||||
let copy_def_id = self.tcx.require_lang_item(lang_items::CopyTraitLangItem);
|
||||
let copy_def_id = self.tcx.require_lang_item(lang_items::CopyTraitLangItem, None);
|
||||
|
||||
// this can get called from typeck (by euv), and moves_by_default
|
||||
// rightly refuses to work with inference variables, but
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue