1
Fork 0

fix build for Rust 2018 now that #58100 has been merged

This commit is contained in:
Trevor Spiteri 2019-02-23 18:02:40 +01:00
parent bde4d1945c
commit aa0fa752c4

View file

@ -602,7 +602,7 @@ fn is_primitive(path_str: &str, is_val: bool) -> Option<Def> {
}
}
fn primitive_impl(cx: &DocContext, path_str: &str) -> Option<DefId> {
fn primitive_impl(cx: &DocContext<'_, '_, '_>, path_str: &str) -> Option<DefId> {
let tcx = cx.tcx;
match path_str {
"u8" => tcx.lang_items().u8_impl(),