Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![deny(rustdoc::all)]

#[cfg(doc)]
#[cfg(all(doc, feature = "proc-macro2"))]
use proc_macro2::{Punct, Spacing};

#[cfg(feature = "proc-macro")]
Expand All @@ -34,7 +34,9 @@

macro_rules! sealed {
[$($ty:ident),* $(,)?] => {$(
#[cfg(feature = "proc-macro")]
impl Sealed for proc_macro::$ty {}
#[cfg(feature = "proc-macro2")]
impl Sealed for proc_macro2::$ty {}
)*};
}
Expand All @@ -50,7 +52,7 @@

macro_rules! attr {
(($($attr:tt)*), $($item:tt)+) => {
$(#$attr)* $($item)+

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (windows-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (windows-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (windows-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (windows-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (windows-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (windows-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (windows-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (windows-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (windows-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (windows-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (windows-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (windows-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (windows-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (windows-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (windows-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (windows-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (windows-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (windows-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (windows-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (windows-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (windows-latest, nightly)

`#[must_use]` attribute cannot be used on trait methods in impl blocks

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (windows-latest, nightly)

`#[must_use]` attribute cannot be used on trait methods in impl blocks

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (windows-latest, nightly)

`#[must_use]` attribute cannot be used on trait methods in impl blocks

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (windows-latest, nightly)

`#[must_use]` attribute cannot be used on trait methods in impl blocks

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (windows-latest, nightly)

`#[must_use]` attribute cannot be used on trait methods in impl blocks

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (windows-latest, nightly)

`#[must_use]` attribute cannot be used on trait methods in impl blocks

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (windows-latest, nightly)

`#[must_use]` attribute cannot be used on trait methods in impl blocks

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (windows-latest, nightly)

`#[must_use]` attribute cannot be used on trait methods in impl blocks

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (windows-latest, nightly)

`#[must_use]` attribute cannot be used on trait methods in impl blocks

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (windows-latest, nightly)

`#[must_use]` attribute cannot be used on trait methods in impl blocks

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (windows-latest, nightly)

`#[must_use]` attribute cannot be used on trait methods in impl blocks

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (windows-latest, nightly)

`#[must_use]` attribute cannot be used on trait methods in impl blocks

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (windows-latest, nightly)

`#[must_use]` attribute cannot be used on trait methods in impl blocks

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (windows-latest, nightly)

`#[must_use]` attribute cannot be used on trait methods in impl blocks

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (windows-latest, nightly)

`#[must_use]` attribute cannot be used on trait methods in impl blocks

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (windows-latest, nightly)

`#[must_use]` attribute cannot be used on trait methods in impl blocks

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (windows-latest, nightly)

`#[must_use]` attribute cannot be used on trait methods in impl blocks

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (windows-latest, nightly)

`#[must_use]` attribute cannot be used on trait methods in impl blocks

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, nightly)

`#[must_use]` attribute cannot be used on trait methods in impl blocks

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, nightly)

`#[must_use]` attribute cannot be used on trait methods in impl blocks

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, nightly)

`#[must_use]` attribute cannot be used on trait methods in impl blocks

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, nightly)

`#[must_use]` attribute cannot be used on trait methods in impl blocks

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, nightly)

`#[must_use]` attribute cannot be used on trait methods in impl blocks

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, nightly)

`#[must_use]` attribute cannot be used on trait methods in impl blocks

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, nightly)

`#[must_use]` attribute cannot be used on trait methods in impl blocks

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, nightly)

`#[must_use]` attribute cannot be used on trait methods in impl blocks

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, nightly)

`#[must_use]` attribute cannot be used on trait methods in impl blocks

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, nightly)

`#[must_use]` attribute cannot be used on trait methods in impl blocks

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, nightly)

`#[must_use]` attribute cannot be used on trait methods in impl blocks

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, nightly)

`#[must_use]` attribute cannot be used on trait methods in impl blocks

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, nightly)

`#[must_use]` attribute cannot be used on trait methods in impl blocks

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, nightly)

`#[must_use]` attribute cannot be used on trait methods in impl blocks

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, nightly)

`#[must_use]` attribute cannot be used on trait methods in impl blocks

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, nightly)

`#[must_use]` attribute cannot be used on trait methods in impl blocks

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, nightly)

`#[must_use]` attribute cannot be used on trait methods in impl blocks

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, nightly)

`#[must_use]` attribute cannot be used on trait methods in impl blocks

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (macos-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (macos-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (macos-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (macos-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (macos-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (macos-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (macos-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (macos-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (macos-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (macos-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (macos-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (macos-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (macos-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (macos-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (macos-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (macos-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (macos-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (macos-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (macos-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (macos-latest, stable)

`#[must_use]` has no effect when applied to a provided trait method

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (macos-latest, nightly)

`#[must_use]` attribute cannot be used on trait methods in impl blocks

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (macos-latest, nightly)

`#[must_use]` attribute cannot be used on trait methods in impl blocks

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (macos-latest, nightly)

`#[must_use]` attribute cannot be used on trait methods in impl blocks

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (macos-latest, nightly)

`#[must_use]` attribute cannot be used on trait methods in impl blocks

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (macos-latest, nightly)

`#[must_use]` attribute cannot be used on trait methods in impl blocks

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (macos-latest, nightly)

`#[must_use]` attribute cannot be used on trait methods in impl blocks

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (macos-latest, nightly)

`#[must_use]` attribute cannot be used on trait methods in impl blocks

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (macos-latest, nightly)

`#[must_use]` attribute cannot be used on trait methods in impl blocks

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (macos-latest, nightly)

`#[must_use]` attribute cannot be used on trait methods in impl blocks

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (macos-latest, nightly)

`#[must_use]` attribute cannot be used on trait methods in impl blocks

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (macos-latest, nightly)

`#[must_use]` attribute cannot be used on trait methods in impl blocks

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (macos-latest, nightly)

`#[must_use]` attribute cannot be used on trait methods in impl blocks

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (macos-latest, nightly)

`#[must_use]` attribute cannot be used on trait methods in impl blocks

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (macos-latest, nightly)

`#[must_use]` attribute cannot be used on trait methods in impl blocks

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (macos-latest, nightly)

`#[must_use]` attribute cannot be used on trait methods in impl blocks

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (macos-latest, nightly)

`#[must_use]` attribute cannot be used on trait methods in impl blocks

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (macos-latest, nightly)

`#[must_use]` attribute cannot be used on trait methods in impl blocks

Check warning on line 55 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (macos-latest, nightly)

`#[must_use]` attribute cannot be used on trait methods in impl blocks
};
}

Expand All @@ -63,7 +65,7 @@
};
}

macro_rules! trait_impl {

Check warning on line 68 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (windows-latest, stable)

unused macro definition: `trait_impl`

Check warning on line 68 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, stable)

unused macro definition: `trait_impl`

Check warning on line 68 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (windows-latest, nightly)

unused macro definition: `trait_impl`

Check warning on line 68 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, nightly)

unused macro definition: `trait_impl`

Check warning on line 68 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (macos-latest, stable)

unused macro definition: `trait_impl`

Check warning on line 68 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (macos-latest, nightly)

unused macro definition: `trait_impl`
($trait:ident, $type:ident, $($fn_attr:tt, $fn:ident, $({$($gen:tt)*})?, $args:tt, $($ret:ty)?, $stmts:tt),*) => {
impl $trait for $type {
$(attr!($fn_attr, fn $fn $($($gen)*)? $args $(-> $ret)? $stmts);)*
Expand Down Expand Up @@ -337,7 +339,7 @@

// Implemented following https://doc.rust-lang.org/reference/tokens.html#string-literals
// #[allow(clippy::needless_continue)]
fn resolve_escapes(mut s: &str) -> String {

Check warning on line 342 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (windows-latest, stable)

function `resolve_escapes` is never used

Check warning on line 342 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, stable)

function `resolve_escapes` is never used

Check warning on line 342 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (windows-latest, nightly)

function `resolve_escapes` is never used

Check warning on line 342 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, nightly)

function `resolve_escapes` is never used

Check warning on line 342 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (macos-latest, stable)

function `resolve_escapes` is never used

Check warning on line 342 in src/lib.rs

View workflow job for this annotation

GitHub Actions / test (macos-latest, nightly)

function `resolve_escapes` is never used
let mut out = String::new();
while !s.is_empty() {
if s.starts_with('\\') {
Expand Down
Loading