cxx/syntax
David Tolnay 92f405d4c8
Work around new dead_code warnings
warning: field `0` is never read
      --> macro/src/syntax/mod.rs:52:13
       |
    52 |     Include(Include),
       |     ------- ^^^^^^^
       |     |
       |     field in this variant
       |
       = note: `#[warn(dead_code)]` on by default
    help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
       |
    52 |     Include(()),
       |             ~~

    warning: fields `0` and `1` are never read
     --> macro/src/syntax/cfg.rs:9:8
      |
    9 |     Eq(Ident, Option<LitStr>),
      |     -- ^^^^^  ^^^^^^^^^^^^^^
      |     |
      |     fields in this variant
      |
    help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields
      |
    9 |     Eq((), ()),
      |        ~~  ~~

    warning: field `0` is never read
      --> macro/src/syntax/cfg.rs:11:9
       |
    11 |     Any(Vec<CfgExpr>),
       |     --- ^^^^^^^^^^^^
       |     |
       |     field in this variant
       |
    help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
       |
    11 |     Any(()),
       |         ~~

    warning: field `0` is never read
      --> macro/src/syntax/cfg.rs:12:9
       |
    12 |     Not(Box<CfgExpr>),
       |     --- ^^^^^^^^^^^^
       |     |
       |     field in this variant
       |
    help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
       |
    12 |     Not(()),
       |         ~~

    warning: field `0` is never read
       --> src/lib.rs:551:13
        |
    551 | struct void(core::ffi::c_void);
        |        ---- ^^^^^^^^^^^^^^^^^
        |        |
        |        field in this struct
        |
        = note: `#[warn(dead_code)]` on by default
    help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
        |
    551 | struct void(());
        |             ~~

    warning: field `0` is never read
       --> tests/ffi/lib.rs:411:26
        |
    411 | pub struct Reference<'a>(&'a String);
        |            ---------     ^^^^^^^^^^
        |            |
        |            field in this struct
        |
        = note: `#[warn(dead_code)]` on by default
    help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
        |
    411 | pub struct Reference<'a>(());
        |                          ~~
2024-01-05 18:58:33 -08:00
..
atom.rs Further prune syntax tree visibilities 2023-09-03 13:06:49 -07:00
attrs.rs Further prune syntax tree visibilities 2023-09-03 13:06:49 -07:00
cfg.rs Work around new dead_code warnings 2024-01-05 18:58:33 -08:00
check.rs Resolve unnested_or_patterns pedantic clippy lint 2023-07-06 12:29:28 -07:00
derive.rs Further prune syntax tree visibilities 2023-09-03 13:06:49 -07:00
discriminant.rs Further prune syntax tree visibilities 2023-09-03 13:06:49 -07:00
doc.rs Further prune syntax tree visibilities 2023-09-03 13:06:49 -07:00
error.rs Further prune syntax tree visibilities 2023-09-03 13:06:49 -07:00
file.rs Further prune syntax tree visibilities 2023-09-03 13:06:49 -07:00
ident.rs Add ForeignName wrapper around non-Rust names 2021-01-01 17:57:14 -08:00
impls.rs Begin development on async fn support 2022-01-18 17:58:16 -08:00
improper.rs Reduce visibility of all pub items which are not publicly exported 2023-09-03 12:41:41 -07:00
instantiate.rs Further prune syntax tree visibilities 2023-09-03 13:06:49 -07:00
mangle.rs Reduce visibility of all pub items which are not publicly exported 2023-09-03 12:41:41 -07:00
map.rs Further prune syntax tree visibilities 2023-09-03 13:06:49 -07:00
mod.rs Work around new dead_code warnings 2024-01-05 18:58:33 -08:00
names.rs Further prune syntax tree visibilities 2023-09-03 13:06:49 -07:00
namespace.rs Further prune syntax tree visibilities 2023-09-03 13:06:49 -07:00
parse.rs Reduce visibility of all pub items which are not publicly exported 2023-09-03 12:41:41 -07:00
pod.rs Reduce visibility of all pub items which are not publicly exported 2023-09-03 12:41:41 -07:00
qualified.rs Reduce visibility of all pub items which are not publicly exported 2023-09-03 12:41:41 -07:00
report.rs Reduce visibility of all pub items which are not publicly exported 2023-09-03 12:41:41 -07:00
resolve.rs Further prune syntax tree visibilities 2023-09-03 13:06:49 -07:00
set.rs Further prune syntax tree visibilities 2023-09-03 13:06:49 -07:00
symbol.rs Reduce visibility of all pub items which are not publicly exported 2023-09-03 12:41:41 -07:00
tokens.rs Update to syn 2 2023-03-17 18:41:45 -07:00
toposort.rs Reduce visibility of all pub items which are not publicly exported 2023-09-03 12:41:41 -07:00
trivial.rs Further prune syntax tree visibilities 2023-09-03 13:06:49 -07:00
types.rs Further prune syntax tree visibilities 2023-09-03 13:06:49 -07:00
visit.rs Reduce visibility of all pub items which are not publicly exported 2023-09-03 12:41:41 -07:00