We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0f8f87 commit 2758de4Copy full SHA for 2758de4
src/librustdoc/clean/def_ctor.rs
@@ -16,7 +16,7 @@ pub fn get_def_ctor_from_def_id<F>(cx: &DocContext,
16
def_id: DefId,
17
callback: &F,
18
) -> Vec<Item>
19
-where F: Fn(&Fn(DefId) -> Def) -> Vec<Item> {
+where F: Fn(& dyn Fn(DefId) -> Def) -> Vec<Item> {
20
let ty = cx.tcx.type_of(def_id);
21
22
match ty.sty {
@@ -53,7 +53,7 @@ pub fn get_def_ctor_from_node_id<F>(cx: &DocContext,
53
name: String,
54
55
56
-where F: Fn(&Fn(DefId) -> Def, String) -> Vec<Item> {
+where F: Fn(& dyn Fn(DefId) -> Def, String) -> Vec<Item> {
57
let item = &cx.tcx.hir.expect_item(id).node;
58
59
callback(&match *item {
0 commit comments