Skip to content

Commit d8a78fc

Browse files
committed
Bump MSRV to 1.53
This resolves some lint name problems and provides BTreeMap::retain
1 parent 4a06833 commit d8a78fc

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

.github/workflows/hedwig.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ jobs:
4848
command: doc
4949
args: --all-features --manifest-path=Cargo.toml
5050
env:
51-
RUSTDOCFLAGS: --cfg docsrs -Dmissing_docs -Dbroken_intra_doc_links
51+
RUSTDOCFLAGS: --cfg docsrs -Dmissing_docs -Drustdoc::broken_intra_doc_links
5252

5353
test:
5454
runs-on: ${{ matrix.os }}
5555
strategy:
5656
fail-fast: false
5757
matrix:
58-
rust_toolchain: [nightly, stable, 1.49.0]
58+
rust_toolchain: [nightly, stable, 1.53.0]
5959
os: [ubuntu-latest, windows-latest, macOS-latest]
6060
timeout-minutes: 20
6161
steps:

src/backends/googlepubsub/mod.rs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ macro_rules! match_fields {
4343
// nested cfg_attr prevents older compilers from parsing the new doc = EXPR syntax
4444
#[cfg_attr(docsrs, cfg_attr(docsrs,
4545
doc = "", // newline
46-
doc = concat!("This is a more ergonomic wrapper over [`", match_fields!(@stringify_path $target), "`]")
46+
doc = concat!("This is a more ergonomic wrapper over [`", stringify!($target), "`]")
4747
))]
4848
#[cfg_attr(not(docsrs), allow(missing_docs))]
4949
pub struct $struct_name $(<$struct_generics>)? {
5050
$(
5151
#[cfg_attr(docsrs, cfg_attr(docsrs, doc = concat!(
5252
"See [`", stringify!($field_name), "`]",
53-
"(", match_fields!(@stringify_path $target::$field_name), ")"
53+
"(", stringify!($target), "::", stringify!($field_name), ")"
5454
)))]
5555
$(#[$field_attr])*
5656
pub $field_name : $field_type,
@@ -73,13 +73,6 @@ macro_rules! match_fields {
7373
};
7474
}
7575
};
76-
77-
// directly calling `stringify!` on a path will put spaces inbetween the :: separators, which
78-
// then breaks doc linking.
79-
// For whatever reason (expansion order maybe?), a macro indirection makes the path space-less
80-
(@stringify_path $p:path) => {
81-
stringify!($p)
82-
};
8376
}
8477

8578
mod consumer;

0 commit comments

Comments
 (0)