about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-11-28 15:42:10 +0530
committerGitHub <noreply@github.com>2022-11-28 15:42:10 +0530
commitf90484df8ad52f73c4f28cf3e4924c2bfa668a38 (patch)
treeca6e48d5fb72c095cd12f7ce47b5a14bf001321f /src
parentf33d4094f014e10bdfeacc48fbe2368df9a0d18c (diff)
parent5ba0056346a745e61cb2cb90d69a3304a255ff42 (diff)
downloadrust-f90484df8ad52f73c4f28cf3e4924c2bfa668a38.tar.gz
rust-f90484df8ad52f73c4f28cf3e4924c2bfa668a38.zip
Rollup merge of #104732 - WaffleLapkin:from_def_idn't, r=compiler-errors
Refactor `ty::ClosureKind` related stuff

I've tried to fix all duplication and weirdness, but if I missed something do tell :p

r? `@compiler-errors`
Diffstat (limited to 'src')
-rw-r--r--src/librustdoc/clean/utils.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/clean/utils.rs b/src/librustdoc/clean/utils.rs
index 3c48dd80b6f..246560bad29 100644
--- a/src/librustdoc/clean/utils.rs
+++ b/src/librustdoc/clean/utils.rs
@@ -106,7 +106,7 @@ fn external_generic_args<'tcx>(
 ) -> GenericArgs {
     let args = substs_to_args(cx, substs, has_self);
 
-    if cx.tcx.fn_trait_kind_from_lang_item(did).is_some() {
+    if cx.tcx.fn_trait_kind_from_def_id(did).is_some() {
         let inputs =
             // The trait's first substitution is the one after self, if there is one.
             match substs.iter().nth(if has_self { 1 } else { 0 }).unwrap().expect_ty().kind() {