Support infobox doc gen on stable release

This commit is contained in:
Ivan Tham 2021-07-01 09:33:44 +08:00 committed by Blaž Hrastnik
parent 61e925cbed
commit 64f83dfcbd

View file

@ -3426,7 +3426,13 @@ macro_rules! mode_info {
#[doc = "<table><tr><th>key</th><th>desc</th></tr><tbody>"]
$(
#[doc = "<tr><td>"]
#[doc = mode_info!(@join $($key),+)]
// TODO switch to this once we use rust 1.54
// right now it will produce multiple rows
// #[doc = mode_info!(@join $($key),+)]
$(
#[doc = $key]
)+
// <-
#[doc = "</td><td>"]
#[doc = $desc]
#[doc = "</td></tr>"]