X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=compiler%2Frustc_typeck%2Fsrc%2Fastconv%2Fmod.rs;h=85dee26012981e12b37f87f7b71b526877c665f0;hb=0a52fbe5366b98480dd9653ac0c0b4afaf6d6ebd;hp=5bb02bc246caf28bf5c05136bf6418a515747109;hpb=fd93ab43efe7dbda720de946fbe8c1ee92be3e45;p=rust.git diff --git a/compiler/rustc_typeck/src/astconv/mod.rs b/compiler/rustc_typeck/src/astconv/mod.rs index 5bb02bc246c..85dee260129 100644 --- a/compiler/rustc_typeck/src/astconv/mod.rs +++ b/compiler/rustc_typeck/src/astconv/mod.rs @@ -398,7 +398,7 @@ fn provided_kind( if has_default { tcx.check_optional_stability( param.def_id, - Some(arg.id()), + Some(arg.hir_id()), arg.span(), None, AllowUnstable::No,