We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a9bdc4 commit 8372b50Copy full SHA for 8372b50
1 file changed
src/macros.rs
@@ -402,6 +402,21 @@ macro_rules! offset_of {
402
}};
403
}
404
405
+/// Defines constants with an accompanying doc comment pointing out their
406
+/// instability, and links to the crate documentation for usage guidelines.
407
+macro_rules! ct {
408
+ ($($it:item)+) => {
409
+$(
410
+/// This constant, among others often used in C for the purposes of denoting the
411
+/// latest value or limit in a set of constants, is likely to change upstream.
412
+/// For correct usage, see the [crate-level documentation][docs].
413
+///
414
+/// [docs]: index.html#usage-recommendations
415
+$it
416
+)+
417
+ };
418
+}
419
+
420
#[cfg(test)]
421
mod tests {
422
use core::any::TypeId;
0 commit comments