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

@ -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