Skip to content

Commit 9fd075f

Browse files
committed
rustc: Encode argument names for traits
This ensures that rustdoc can properly document inlined traits across crates. Closes #14670
1 parent bd6683c commit 9fd075f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/librustc/metadata/encoder.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1196,6 +1196,7 @@ fn encode_info_for_item(ecx: &EncodeContext,
11961196
&Required(ref tm) => {
11971197
encode_attributes(ebml_w, tm.attrs.as_slice());
11981198
encode_method_sort(ebml_w, 'r');
1199+
encode_method_argument_names(ebml_w, &*tm.decl);
11991200
}
12001201

12011202
&Provided(m) => {
@@ -1210,6 +1211,7 @@ fn encode_info_for_item(ecx: &EncodeContext,
12101211
encode_method_sort(ebml_w, 'p');
12111212
encode_inlined_item(ecx, ebml_w,
12121213
IIMethodRef(def_id, true, m));
1214+
encode_method_argument_names(ebml_w, &*m.decl);
12131215
}
12141216
}
12151217

0 commit comments

Comments
 (0)