Required by recent versions of the cc crate.
error: package `cc v1.0.106` cannot be built because it requires rustc 1.67 or newer, while the currently active rustc version is 1.63.0
warning: used import from `std` instead of `core`
--> src/exception.rs:21:6
|
21 | impl std::error::Error for Exception {}
| ^^^ help: consider importing the item from `core`: `core`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#std_instead_of_core
note: the lint level is defined here
--> src/lib.rs:378:5
|
378 | clippy::std_instead_of_core
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: `?Sized` bound is ignored because of a `Sized` requirement
--> tests/ffi/lib.rs:233:14
|
233 | type Reference<'a>;
| ^^^^^^^^^^^^^^
|
note: `T` cannot be unsized because of the bound
--> tests/ffi/lib.rs:233:9
|
233 | type Reference<'a>;
| ^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_maybe_sized
= note: `#[warn(clippy::needless_maybe_sized)]` on by default
help: change the bounds that require `Sized`, or remove the `?Sized` bound
|
233 - type Reference<'a>;
233 +
|
warning: `?Sized` bound is ignored because of a `Sized` requirement
--> tests/ffi/lib.rs:262:14
|
262 | type R;
| ^^
|
note: `T` cannot be unsized because of the bound
--> tests/ffi/lib.rs:262:9
|
262 | type R;
| ^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_maybe_sized
help: change the bounds that require `Sized`, or remove the `?Sized` bound
|
262 - type R;
262 +
|
warning: unexpected `cfg` condition value: `experimental-enum-variants-from-header`
--> gen/build/src/gen/write.rs:333:15
|
333 | #[cfg(feature = "experimental-enum-variants-from-header")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: expected values for `feature` are: `experimental-async-fn`, `parallel`
= help: consider adding `experimental-enum-variants-from-header` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
= note: `#[warn(unexpected_cfgs)]` on by default
warning: unexpected `cfg` condition value: `experimental-enum-variants-from-header`
--> gen/build/src/gen/write.rs:393:15
|
393 | #[cfg(feature = "experimental-enum-variants-from-header")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: expected values for `feature` are: `experimental-async-fn`, `parallel`
= help: consider adding `experimental-enum-variants-from-header` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
warning: unexpected `cfg` condition value: `experimental-enum-variants-from-header`
--> gen/build/src/gen/write.rs:415:15
|
415 | #[cfg(feature = "experimental-enum-variants-from-header")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: expected values for `feature` are: `experimental-async-fn`, `parallel`
= help: consider adding `experimental-enum-variants-from-header` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
warning: unexpected `cfg` condition value: `experimental-enum-variants-from-header`
--> gen/build/src/syntax/attrs.rs:147:21
|
147 | && cfg!(feature = "experimental-enum-variants-from-header")
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: expected values for `feature` are: `experimental-async-fn`, `parallel`
= help: consider adding `experimental-enum-variants-from-header` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
warning: unexpected `cfg` condition value: `experimental-enum-variants-from-header`
--> gen/build/src/syntax/discriminant.rs:182:11
|
182 | #[cfg(feature = "experimental-enum-variants-from-header")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: expected values for `feature` are: `experimental-async-fn`, `parallel`
= help: consider adding `experimental-enum-variants-from-header` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
warning: unexpected `cfg` condition value: `experimental-enum-variants-from-header`
--> gen/build/src/syntax/tokens.rs:296:19
|
296 | #[cfg(feature = "experimental-enum-variants-from-header")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: expected values for `feature` are: `experimental-async-fn`, `parallel`
= help: consider adding `experimental-enum-variants-from-header` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
warning: unexpected `cfg` condition value: `experimental-enum-variants-from-header`
--> gen/build/src/syntax/types.rs:95:31
|
95 | #[cfg(feature = "experimental-enum-variants-from-header")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: expected values for `feature` are: `experimental-async-fn`, `parallel`
= help: consider adding `experimental-enum-variants-from-header` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
warning: unexpected `cfg` condition value: `experimental-enum-variants-from-header`
--> gen/build/src/syntax/mod.rs:146:11
|
146 | #[cfg(feature = "experimental-enum-variants-from-header")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: expected values for `feature` are: `experimental-async-fn`, `parallel`
= help: consider adding `experimental-enum-variants-from-header` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
warning: unexpected `cfg` condition value: `experimental-enum-variants-from-header`
--> gen/lib/src/gen/write.rs:333:15
|
333 | #[cfg(feature = "experimental-enum-variants-from-header")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition
|
= note: no expected values for `feature`
= help: consider adding `experimental-enum-variants-from-header` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
= note: `#[warn(unexpected_cfgs)]` on by default
warning: unexpected `cfg` condition value: `experimental-enum-variants-from-header`
--> gen/lib/src/gen/write.rs:393:15
|
393 | #[cfg(feature = "experimental-enum-variants-from-header")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition
|
= note: no expected values for `feature`
= help: consider adding `experimental-enum-variants-from-header` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
warning: unexpected `cfg` condition value: `experimental-enum-variants-from-header`
--> gen/lib/src/gen/write.rs:415:15
|
415 | #[cfg(feature = "experimental-enum-variants-from-header")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition
|
= note: no expected values for `feature`
= help: consider adding `experimental-enum-variants-from-header` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
warning: unexpected `cfg` condition value: `experimental-enum-variants-from-header`
--> gen/lib/src/syntax/attrs.rs:147:21
|
147 | && cfg!(feature = "experimental-enum-variants-from-header")
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition
|
= note: no expected values for `feature`
= help: consider adding `experimental-enum-variants-from-header` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
warning: unexpected `cfg` condition value: `experimental-enum-variants-from-header`
--> gen/lib/src/syntax/discriminant.rs:182:11
|
182 | #[cfg(feature = "experimental-enum-variants-from-header")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition
|
= note: no expected values for `feature`
= help: consider adding `experimental-enum-variants-from-header` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
warning: unexpected `cfg` condition value: `experimental-async-fn`
--> gen/lib/src/syntax/parse.rs:565:52
|
565 | if foreign_fn.sig.asyncness.is_some() && !cfg!(feature = "experimental-async-fn") {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition
|
= note: no expected values for `feature`
= help: consider adding `experimental-async-fn` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
warning: unexpected `cfg` condition value: `experimental-enum-variants-from-header`
--> gen/lib/src/syntax/tokens.rs:296:19
|
296 | #[cfg(feature = "experimental-enum-variants-from-header")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition
|
= note: no expected values for `feature`
= help: consider adding `experimental-enum-variants-from-header` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
warning: unexpected `cfg` condition value: `experimental-enum-variants-from-header`
--> gen/lib/src/syntax/types.rs:95:31
|
95 | #[cfg(feature = "experimental-enum-variants-from-header")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition
|
= note: no expected values for `feature`
= help: consider adding `experimental-enum-variants-from-header` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
warning: unexpected `cfg` condition value: `experimental-enum-variants-from-header`
--> gen/lib/src/syntax/mod.rs:146:11
|
146 | #[cfg(feature = "experimental-enum-variants-from-header")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition
|
= note: no expected values for `feature`
= help: consider adding `experimental-enum-variants-from-header` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
warning: unexpected `cfg` condition value: `experimental-enum-variants-from-header`
--> gen/cmd/src/gen/write.rs:333:15
|
333 | #[cfg(feature = "experimental-enum-variants-from-header")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: expected values for `feature` are: `experimental-async-fn`
= help: consider adding `experimental-enum-variants-from-header` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
= note: `#[warn(unexpected_cfgs)]` on by default
warning: unexpected `cfg` condition value: `experimental-enum-variants-from-header`
--> gen/cmd/src/gen/write.rs:393:15
|
393 | #[cfg(feature = "experimental-enum-variants-from-header")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: expected values for `feature` are: `experimental-async-fn`
= help: consider adding `experimental-enum-variants-from-header` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
warning: unexpected `cfg` condition value: `experimental-enum-variants-from-header`
--> gen/cmd/src/gen/write.rs:415:15
|
415 | #[cfg(feature = "experimental-enum-variants-from-header")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: expected values for `feature` are: `experimental-async-fn`
= help: consider adding `experimental-enum-variants-from-header` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
warning: unexpected `cfg` condition value: `experimental-enum-variants-from-header`
--> gen/cmd/src/syntax/attrs.rs:147:21
|
147 | && cfg!(feature = "experimental-enum-variants-from-header")
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: expected values for `feature` are: `experimental-async-fn`
= help: consider adding `experimental-enum-variants-from-header` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
warning: unexpected `cfg` condition value: `experimental-enum-variants-from-header`
--> gen/cmd/src/syntax/discriminant.rs:182:11
|
182 | #[cfg(feature = "experimental-enum-variants-from-header")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: expected values for `feature` are: `experimental-async-fn`
= help: consider adding `experimental-enum-variants-from-header` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
warning: unexpected `cfg` condition value: `experimental-enum-variants-from-header`
--> gen/cmd/src/syntax/tokens.rs:296:19
|
296 | #[cfg(feature = "experimental-enum-variants-from-header")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: expected values for `feature` are: `experimental-async-fn`
= help: consider adding `experimental-enum-variants-from-header` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
warning: unexpected `cfg` condition value: `experimental-enum-variants-from-header`
--> gen/cmd/src/syntax/types.rs:95:31
|
95 | #[cfg(feature = "experimental-enum-variants-from-header")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: expected values for `feature` are: `experimental-async-fn`
= help: consider adding `experimental-enum-variants-from-header` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
warning: unexpected `cfg` condition value: `experimental-enum-variants-from-header`
--> gen/cmd/src/syntax/mod.rs:146:11
|
146 | #[cfg(feature = "experimental-enum-variants-from-header")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: expected values for `feature` are: `experimental-async-fn`
= help: consider adding `experimental-enum-variants-from-header` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
warning: unexpected `cfg` condition name: `trybuild`
--> tests/ffi/build.rs:4:13
|
4 | if cfg!(trybuild) {
| ^^^^^^^^
|
= help: expected names are: `clippy`, `debug_assertions`, `doc`, `docsrs`, `doctest`, `feature`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, `windows`
= help: consider using a Cargo feature instead or adding `println!("cargo::rustc-check-cfg=cfg(trybuild)");` to the top of the `build.rs`
= note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
= note: `#[warn(unexpected_cfgs)]` on by default
warning: unexpected `cfg` condition name: `deny_warnings`
--> tests/ffi/build.rs:13:37
|
13 | build.warnings_into_errors(cfg!(deny_warnings));
| ^^^^^^^^^^^^^
|
= help: consider using a Cargo feature instead or adding `println!("cargo::rustc-check-cfg=cfg(deny_warnings)");` to the top of the `build.rs`
= note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
warning: unexpected `cfg` condition name: `deny_warnings`
--> build.rs:14:36
|
14 | .warnings_into_errors(cfg!(deny_warnings))
| ^^^^^^^^^^^^^
|
= help: expected names are: `clippy`, `debug_assertions`, `doc`, `docsrs`, `doctest`, `feature`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, `windows`
= help: consider using a Cargo feature instead or adding `println!("cargo::rustc-check-cfg=cfg(deny_warnings)");` to the top of the `build.rs`
= note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
= note: `#[warn(unexpected_cfgs)]` on by default
warning: unexpected `cfg` condition name: `doc_cfg`
--> src/lib.rs:368:13
|
368 | #![cfg_attr(doc_cfg, feature(doc_cfg))]
| ^^^^^^^
|
= help: expected names are: `clippy`, `debug_assertions`, `doc`, `docsrs`, `doctest`, `feature`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, `windows`
= help: consider using a Cargo feature instead or adding `println!("cargo::rustc-check-cfg=cfg(doc_cfg)");` to the top of the `build.rs`
= note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
= note: `#[warn(unexpected_cfgs)]` on by default
warning: unexpected `cfg` condition name: `built_with_cargo`
--> src/lib.rs:409:7
|
409 | #[cfg(built_with_cargo)]
| ^^^^^^^^^^^^^^^^
|
= help: consider using a Cargo feature instead or adding `println!("cargo::rustc-check-cfg=cfg(built_with_cargo)");` to the top of the `build.rs`
= note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
warning: unexpected `cfg` condition name: `cxx_experimental_no_alloc`
--> src/lib.rs:433:34
|
433 | #[cfg(not(any(feature = "alloc", cxx_experimental_no_alloc)))]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider using a Cargo feature instead or adding `println!("cargo::rustc-check-cfg=cfg(cxx_experimental_no_alloc)");` to the top of the `build.rs`
= note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
warning: unexpected `cfg` condition name: `compile_error_if_alloc`
--> src/lib.rs:438:11
|
438 | #[cfg(all(compile_error_if_alloc, feature = "alloc"))]
| ^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider using a Cargo feature instead or adding `println!("cargo::rustc-check-cfg=cfg(compile_error_if_alloc)");` to the top of the `build.rs`
= note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
warning: unexpected `cfg` condition name: `compile_error_if_std`
--> src/lib.rs:443:11
|
443 | #[cfg(all(compile_error_if_std, feature = "std"))]
| ^^^^^^^^^^^^^^^^^^^^
|
= help: consider using a Cargo feature instead or adding `println!("cargo::rustc-check-cfg=cfg(compile_error_if_std)");` to the top of the `build.rs`
= note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
warning: unexpected `cfg` condition name: `doc_cfg`
--> src/lib.rs:480:12
|
480 | #[cfg_attr(doc_cfg, doc(cfg(feature = "alloc")))]
| ^^^^^^^
|
= help: consider using a Cargo feature instead or adding `println!("cargo::rustc-check-cfg=cfg(doc_cfg)");` to the top of the `build.rs`
= note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
warning: unexpected `cfg` condition name: `no_core_ffi_c_char`
--> src/c_char.rs:11:11
|
11 | #[cfg(not(no_core_ffi_c_char))]
| ^^^^^^^^^^^^^^^^^^
|
= help: consider using a Cargo feature instead or adding `println!("cargo::rustc-check-cfg=cfg(no_core_ffi_c_char)");` to the top of the `build.rs`
= note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
warning: unexpected `cfg` condition name: `no_core_ffi_c_char`
--> src/c_char.rs:16:7
|
16 | #[cfg(no_core_ffi_c_char)]
| ^^^^^^^^^^^^^^^^^^
|
= help: consider using a Cargo feature instead or adding `println!("cargo::rustc-check-cfg=cfg(no_core_ffi_c_char)");` to the top of the `build.rs`
= note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
warning: unexpected `cfg` condition name: `doc_cfg`
--> src/exception.rs:7:12
|
7 | #[cfg_attr(doc_cfg, doc(cfg(feature = "alloc")))]
| ^^^^^^^
|
= help: consider using a Cargo feature instead or adding `println!("cargo::rustc-check-cfg=cfg(doc_cfg)");` to the top of the `build.rs`
= note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
warning: unexpected `cfg` condition name: `doc_cfg`
--> src/exception.rs:20:12
|
20 | #[cfg_attr(doc_cfg, doc(cfg(feature = "std")))]
| ^^^^^^^
|
= help: consider using a Cargo feature instead or adding `println!("cargo::rustc-check-cfg=cfg(doc_cfg)");` to the top of the `build.rs`
= note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
warning: unexpected `cfg` condition name: `doc_cfg`
--> src/extern_type.rs:220:16
|
220 | #[cfg_attr(doc_cfg, doc(cfg(feature = "alloc")))]
| ^^^^^^^
|
= help: consider using a Cargo feature instead or adding `println!("cargo::rustc-check-cfg=cfg(doc_cfg)");` to the top of the `build.rs`
= note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
warning: unexpected `cfg` condition name: `doc_cfg`
--> src/cxx_string.rs:151:16
|
151 | #[cfg_attr(doc_cfg, doc(cfg(feature = "alloc")))]
| ^^^^^^^
|
= help: consider using a Cargo feature instead or adding `println!("cargo::rustc-check-cfg=cfg(doc_cfg)");` to the top of the `build.rs`
= note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
warning: unexpected `cfg` condition name: `skip_ui_tests`
--> tests/compiletest.rs:3:12
|
3 | #[cfg_attr(skip_ui_tests, ignore)]
| ^^^^^^^^^^^^^
|
= help: expected names are: `clippy`, `debug_assertions`, `doc`, `docsrs`, `doctest`, `feature`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, `windows`
= help: consider using a Cargo feature instead or adding `println!("cargo::rustc-check-cfg=cfg(skip_ui_tests)");` to the top of the `build.rs`
= note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
= note: `#[warn(unexpected_cfgs)]` on by default
warning: this `if let` can be collapsed into the outer `if let`
--> gen/src/write.rs:1117:13
|
1117 | / if let Type::RustBox(_) | Type::UniquePtr(_) | Type::Str(_) | Type::SliceRef(_) = ret {
1118 | | write!(out, ")");
1119 | | }
| |_____________^
|
help: the outer pattern can be modified to include the inner pattern
--> gen/src/write.rs:1116:21
|
1116 | if let Some(ret) = &sig.ret {
| ^^^ replace this binding
1117 | if let Type::RustBox(_) | Type::UniquePtr(_) | Type::Str(_) | Type::SliceRef(_) = ret {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ with this pattern
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match
= note: `#[warn(clippy::collapsible_match)]` on by default