Bug 1348398: Keep deriving debug in StringRepr. r?mystor draft
authorEmilio Cobos Álvarez <emilio@crisal.io>
Tue, 21 Mar 2017 10:28:04 +0100
changeset 502130 a2a7c2dc13e8052483d634191e924fe47ea3b3c4
parent 501879 5fe5dcf1c10a4523ba3f0a20295551462c2dae11
child 550073 7bec7110af95924d43016aaaddac413986399554
push id50192
push userbmo:emilio+bugs@crisal.io
push dateTue, 21 Mar 2017 09:29:12 +0000
reviewersmystor
bugs1348398
milestone55.0a1
Bug 1348398: Keep deriving debug in StringRepr. r?mystor MozReview-Commit-ID: 1QWf3oyxNIc
xpcom/rust/nsstring/src/lib.rs
--- a/xpcom/rust/nsstring/src/lib.rs
+++ b/xpcom/rust/nsstring/src/lib.rs
@@ -172,16 +172,17 @@ macro_rules! define_string_types {
         ///
         /// This type may also be used in place of a C++ ns[C]String inside of
         /// struct definitions which are shared with C++, as it has identical
         /// layout to our ns[C]String type.
         ///
         /// This struct will leak its data if dropped from rust. See the module
         /// documentation for more information on this type.
         #[repr(C)]
+        #[derive(Debug)]
         pub struct $StringRepr {
             data: *const $char_t,
             length: u32,
             flags: u32,
         }
 
         impl Deref for $StringRepr {
             type Target = $AString;