third_party_rust_cxx/syntax
David Tolnay 7fae55596e
Resolve dead code warnings uncovered by rustc_privacy/rustc_resolve refactor
warning: associated function is never used: `checked_succ`
       --> gen/build/src/syntax/discriminant.rs:183:18
        |
    183 |     pub const fn checked_succ(self) -> Option<Self> {
        |                  ^^^^^^^^^^^^
        |
        = note: `#[warn(dead_code)]` on by default

    warning: associated function is never used: `ty`
       --> gen/build/src/syntax/tokens.rs:305:12
        |
    305 |     pub fn ty(&self) -> ReceiverType {
        |            ^^

    warning: associated function is never used: `ty_self`
       --> gen/build/src/syntax/tokens.rs:310:12
        |
    310 |     pub fn ty_self(&self) -> ReceiverTypeSelf {
        |            ^^^^^^^

    warning: variant is never constructed: `Foreign`
       --> gen/build/src/syntax/mod.rs:122:5
        |
    122 |     Foreign { rust_type: Path },
        |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^

    warning: associated function is never used: `checked_succ`
       --> macro/src/syntax/discriminant.rs:183:18
        |
    183 |     pub const fn checked_succ(self) -> Option<Self> {
        |                  ^^^^^^^^^^^^
        |
        = note: `#[warn(dead_code)]` on by default

    warning: associated function is never used: `is_empty`
      --> macro/src/syntax/doc.rs:22:12
       |
    22 |     pub fn is_empty(&self) -> bool {
       |            ^^^^^^^^

    warning: associated function is never used: `to_string`
      --> macro/src/syntax/doc.rs:26:12
       |
    26 |     pub fn to_string(&self) -> String {
       |            ^^^^^^^^^

    warning: associated function is never used: `remove`
       --> macro/src/syntax/map.rs:127:16
        |
    127 |         pub fn remove<Q>(&mut self, key: &Q) -> Option<V>
        |                ^^^^^^

    warning: associated function is never used: `to_fully_qualified`
      --> macro/src/syntax/names.rs:24:12
       |
    24 |     pub fn to_fully_qualified(&self) -> String {
       |            ^^^^^^^^^^^^^^^^^^

    warning: associated function is never used: `prefix_with`
      --> macro/src/syntax/symbol.rs:44:12
       |
    44 |     pub fn prefix_with(&self, prefix: &str) -> Symbol {
       |            ^^^^^^^^^^^

    warning: variant is never constructed: `Foreign`
       --> macro/src/syntax/mod.rs:122:5
        |
    122 |     Foreign { rust_type: Path },
        |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
2022-01-10 18:50:49 -08:00
..
atom.rs Support c_char type 2020-11-25 20:04:09 -08:00
attrs.rs Pass through serde attributes 2021-12-05 19:37:43 -08:00
check.rs Support slice of trivial extern type alias 2021-07-23 14:16:46 -07:00
derive.rs Added Serde Serialize/Deserialize traits 2021-10-26 19:48:43 -07:00
discriminant.rs Resolve dead code warnings uncovered by rustc_privacy/rustc_resolve refactor 2022-01-10 18:50:49 -08:00
doc.rs Resolve dead code warnings uncovered by rustc_privacy/rustc_resolve refactor 2022-01-10 18:50:49 -08:00
error.rs Diagnostic for invalid lifetime param 'static 2021-04-08 18:45:08 -07:00
file.rs Preserve item inner attrs 2021-04-22 20:04:01 -07:00
ident.rs Add ForeignName wrapper around non-Rust names 2021-01-01 17:57:14 -08:00
impls.rs Store span of method receiver colon tokens 2021-04-10 13:44:31 -07:00
improper.rs Add a void ptr cast for extern type aliases containing Rust-native types 2021-03-26 18:13:41 -04:00
instantiate.rs Track the outer type's spans too for implicit impls 2021-03-27 01:51:08 -04:00
mangle.rs Document the arrangements of preprocessor variables 2021-02-17 15:56:07 -08:00
map.rs Resolve dead code warnings uncovered by rustc_privacy/rustc_resolve refactor 2022-01-10 18:50:49 -08:00
mod.rs Resolve dead code warnings uncovered by rustc_privacy/rustc_resolve refactor 2022-01-10 18:50:49 -08:00
names.rs Resolve dead code warnings uncovered by rustc_privacy/rustc_resolve refactor 2022-01-10 18:50:49 -08:00
namespace.rs Move C++-specific namespace code unused by the proc macro 2020-11-01 22:53:37 -08:00
parse.rs Add link to cxx-async repo in async error message 2021-12-12 20:25:28 -08:00
pod.rs Support raw pointers in cxx::bridge. 2021-01-23 11:34:13 -08:00
qualified.rs Support root namespace in namespace attribute 2020-12-04 12:27:25 -08:00
report.rs Batch errors from the parser 2020-05-04 01:29:17 -07:00
resolve.rs Handle unrecognized type names in checking signature for mutable return type 2021-03-28 04:07:57 -04:00
set.rs Add wrapper to prevent iteration of unordered maps 2020-12-31 17:15:56 -08:00
symbol.rs Resolve dead code warnings uncovered by rustc_privacy/rustc_resolve refactor 2022-01-10 18:50:49 -08:00
tokens.rs Resolve dead code warnings uncovered by rustc_privacy/rustc_resolve refactor 2022-01-10 18:50:49 -08:00
toposort.rs Add wrapper to prevent iteration of unordered maps 2020-12-31 17:15:56 -08:00
trivial.rs Support slice of trivial extern type alias 2021-07-23 14:16:46 -07:00
types.rs Resolve dead code warnings uncovered by rustc_privacy/rustc_resolve refactor 2022-01-10 18:50:49 -08:00
visit.rs Factor out Type traversal to a Visit trait 2021-03-26 17:36:51 -04:00