From 9fd075f5af12afe91a6be7398cfc85b2903c28bb Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 5 Jun 2014 10:07:19 -0700 Subject: [PATCH] rustc: Encode argument names for traits This ensures that rustdoc can properly document inlined traits across crates. Closes #14670 --- src/librustc/metadata/encoder.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/librustc/metadata/encoder.rs b/src/librustc/metadata/encoder.rs index 2cc06f7a32d..e2d0a858d42 100644 --- a/src/librustc/metadata/encoder.rs +++ b/src/librustc/metadata/encoder.rs @@ -1196,6 +1196,7 @@ fn encode_info_for_item(ecx: &EncodeContext, &Required(ref tm) => { encode_attributes(ebml_w, tm.attrs.as_slice()); encode_method_sort(ebml_w, 'r'); + encode_method_argument_names(ebml_w, &*tm.decl); } &Provided(m) => { @@ -1210,6 +1211,7 @@ fn encode_info_for_item(ecx: &EncodeContext, encode_method_sort(ebml_w, 'p'); encode_inlined_item(ecx, ebml_w, IIMethodRef(def_id, true, m)); + encode_method_argument_names(ebml_w, &*m.decl); } }