Lines Matching +full:test +full:- +full:docs
1 // SPDX-License-Identifier: (BSD-2-Clause OR Apache-2.0) OR MIT
5 // Licensed under a BSD-style license <LICENSE-BSD>, Apache License, Version 2.0
6 // <LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0>, or the MIT
7 // license <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your option.
13 //! [zerocopy]: https://docs.rs/zerocopy
49 #[cfg(test)]
58 // FIXME(https://github.com/rust-lang/rust/issues/54140): Some errors could be
62 // --> enum.rs:28:8
72 // (https://doc.rust-lang.org/nightly/proc_macro/struct.Span.html#method.error),
78 /// Note that the separate `$outer` parameter is required - proc macro functions
84 pub fn $outer(ts: proc_macro::TokenStream) -> proc_macro::TokenStream {
95 #[cfg(test)]
103 fn into_ts(self) -> proc_macro2::TokenStream; in into_ts()
107 fn into_ts(self) -> proc_macro2::TokenStream { in into_ts()
113 fn into_ts(self) -> proc_macro2::TokenStream { in into_ts()
134 pub fn most_traits(ts: proc_macro::TokenStream) -> proc_macro::TokenStream { in most_traits()
142 // top-level traits for which to attempt a derive in most_traits()
143 let derives: [(fn(&Ctx, Trait) -> _, _); 6] = [ in most_traits()
161 #[cfg(test)] in most_traits()
170 pub fn derive_from_zeroes(ts: proc_macro::TokenStream) -> proc_macro::TokenStream { in derive_from_zeroes()
178 pub fn derive_as_bytes(ts: proc_macro::TokenStream) -> proc_macro::TokenStream { in derive_as_bytes()