Drop Type::definition
and regig generic handling
#349
Annotations
5 errors and 51 warnings
build (macos-latest)
Process completed with exit code 101.
|
build (windows-latest)
The job was canceled because "macos-latest" failed.
|
build (windows-latest)
The operation was canceled.
|
build (ubuntu-latest)
The job was canceled because "macos-latest" failed.
|
build (ubuntu-latest)
The operation was canceled.
|
using a reference to `Cow` is not recommended:
src/util.rs#L5
warning: using a reference to `Cow` is not recommended
--> src/util.rs:5:33
|
5 | pub(crate) fn as_ref<'a, 'b>(c: &'a Cow<'b, [DataType]>) -> Cow<'a, [DataType]> {
| ^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `&[DataType]`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg
= note: `#[warn(clippy::ptr_arg)]` implied by `#[warn(clippy::all)]`
|
the following explicit lifetimes could be elided: 'b:
src/util.rs#L5
warning: the following explicit lifetimes could be elided: 'b
--> src/util.rs:5:26
|
5 | pub(crate) fn as_ref<'a, 'b>(c: &'a Cow<'b, [DataType]>) -> Cow<'a, [DataType]> {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
5 - pub(crate) fn as_ref<'a, 'b>(c: &'a Cow<'b, [DataType]>) -> Cow<'a, [DataType]> {
5 + pub(crate) fn as_ref<'a>(c: &'a Cow<'_, [DataType]>) -> Cow<'a, [DataType]> {
|
|
the following explicit lifetimes could be elided: 'b:
src/type/mod.rs#L36
warning: the following explicit lifetimes could be elided: 'b
--> src/type/mod.rs:36:19
|
36 | pub fn as_ref<'b>(&'b self) -> Generics<'b> {
| ^^ ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
= note: `#[warn(clippy::needless_lifetimes)]` implied by `#[warn(clippy::all)]`
help: elide the lifetimes
|
36 - pub fn as_ref<'b>(&'b self) -> Generics<'b> {
36 + pub fn as_ref(&self) -> Generics<'_> {
|
|
calling `push_str()` using a single-character string literal:
src/lang/ts/mod.rs#L138
warning: calling `push_str()` using a single-character string literal
--> src/lang/ts/mod.rs:138:5
|
138 | s.push_str(";");
| ^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `s.push(';')`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_add_str
|
calling `push_str()` using a single-character string literal:
src/lang/ts/mod.rs#L131
warning: calling `push_str()` using a single-character string literal
--> src/lang/ts/mod.rs:131:5
|
131 | s.push_str(")");
| ^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `s.push(')')`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_add_str
|
calling `push_str()` using a single-character string literal:
src/lang/ts/mod.rs#L121
warning: calling `push_str()` using a single-character string literal
--> src/lang/ts/mod.rs:121:5
|
121 | s.push_str("(");
| ^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `s.push('(')`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_add_str
= note: `#[warn(clippy::single_char_add_str)]` implied by `#[warn(clippy::all)]`
|
this function has too many arguments (8/7):
src/internal.rs#L233
warning: this function has too many arguments (8/7)
--> src/internal.rs:233:5
|
233 | / pub fn get_fn_datatype<TMarker, T: SpectaFunction<TMarker>>(
234 | | _: T,
235 | | asyncness: bool,
236 | | name: Cow<'static, str>,
... |
241 | | no_return_type: bool,
242 | | ) -> FunctionDataType {
| |_________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
note: the lint level is defined here
--> src/lib.rs:3:9
|
3 | #![warn(clippy::all, clippy::unwrap_used, clippy::panic)] // TODO: missing_docs
| ^^^^^^^^^^^
= note: `#[warn(clippy::too_many_arguments)]` implied by `#[warn(clippy::all)]`
|
constant `RESERVED_IDENTS` is never used:
src/lang/ts/reserved_terms.rs#L66
warning: constant `RESERVED_IDENTS` is never used
--> src/lang/ts/reserved_terms.rs:66:18
|
66 | pub(crate) const RESERVED_IDENTS: &[&str] = &[
| ^^^^^^^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
|
unused variable: `generics`:
src/type/mod.rs#L76
warning: unused variable: `generics`
--> src/type/mod.rs:76:42
|
76 | fn reference(type_map: &mut TypeMap, generics: Cow<[DataType]>) -> Reference {
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_generics`
|
unused variable: `type_map`:
src/type/mod.rs#L76
warning: unused variable: `type_map`
--> src/type/mod.rs:76:18
|
76 | fn reference(type_map: &mut TypeMap, generics: Cow<[DataType]>) -> Reference {
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_type_map`
|
unused variable: `generics`:
src/type/macros.rs#L155
warning: unused variable: `generics`
--> src/type/macros.rs:155:50
|
155 | fn reference(type_map: &mut TypeMap, generics: Cow<[DataType]>) -> Reference {
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_generics`
|
::: src/type/impls.rs:455:5
|
455 | impl_for_map!(toml::map::Map<K, V> as "Map");
| -------------------------------------------- in this macro invocation
|
= note: this warning originates in the macro `impl_for_map` (in Nightly builds, run with -Z macro-backtrace for more info)
|
unused variable: `type_map`:
src/type/macros.rs#L155
warning: unused variable: `type_map`
--> src/type/macros.rs:155:26
|
155 | fn reference(type_map: &mut TypeMap, generics: Cow<[DataType]>) -> Reference {
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_type_map`
|
::: src/type/impls.rs:455:5
|
455 | impl_for_map!(toml::map::Map<K, V> as "Map");
| -------------------------------------------- in this macro invocation
|
= note: this warning originates in the macro `impl_for_map` (in Nightly builds, run with -Z macro-backtrace for more info)
|
unused variable: `generics`:
src/type/macros.rs#L137
warning: unused variable: `generics`
--> src/type/macros.rs:137:47
|
137 | fn inline(type_map: &mut TypeMap, generics: Generics) -> DataType {
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_generics`
|
::: src/type/impls.rs:455:5
|
455 | impl_for_map!(toml::map::Map<K, V> as "Map");
| -------------------------------------------- in this macro invocation
|
= note: this warning originates in the macro `impl_for_map` (in Nightly builds, run with -Z macro-backtrace for more info)
|
unused variable: `type_map`:
src/type/macros.rs#L137
warning: unused variable: `type_map`
--> src/type/macros.rs:137:23
|
137 | fn inline(type_map: &mut TypeMap, generics: Generics) -> DataType {
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_type_map`
|
::: src/type/impls.rs:455:5
|
455 | impl_for_map!(toml::map::Map<K, V> as "Map");
| -------------------------------------------- in this macro invocation
|
= note: this warning originates in the macro `impl_for_map` (in Nightly builds, run with -Z macro-backtrace for more info)
|
unused variable: `generics`:
src/type/macros.rs#L155
warning: unused variable: `generics`
--> src/type/macros.rs:155:50
|
155 | fn reference(type_map: &mut TypeMap, generics: Cow<[DataType]>) -> Reference {
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_generics`
|
::: src/type/impls.rs:273:5
|
273 | impl_for_map!(Map<K, V> as "Map");
| --------------------------------- in this macro invocation
|
= note: this warning originates in the macro `impl_for_map` (in Nightly builds, run with -Z macro-backtrace for more info)
|
unused variable: `type_map`:
src/type/macros.rs#L155
warning: unused variable: `type_map`
--> src/type/macros.rs:155:26
|
155 | fn reference(type_map: &mut TypeMap, generics: Cow<[DataType]>) -> Reference {
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_type_map`
|
::: src/type/impls.rs:273:5
|
273 | impl_for_map!(Map<K, V> as "Map");
| --------------------------------- in this macro invocation
|
= note: this warning originates in the macro `impl_for_map` (in Nightly builds, run with -Z macro-backtrace for more info)
|
unused variable: `generics`:
src/type/macros.rs#L137
warning: unused variable: `generics`
--> src/type/macros.rs:137:47
|
137 | fn inline(type_map: &mut TypeMap, generics: Generics) -> DataType {
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_generics`
|
::: src/type/impls.rs:273:5
|
273 | impl_for_map!(Map<K, V> as "Map");
| --------------------------------- in this macro invocation
|
= note: this warning originates in the macro `impl_for_map` (in Nightly builds, run with -Z macro-backtrace for more info)
|
unused variable: `type_map`:
src/type/macros.rs#L137
warning: unused variable: `type_map`
--> src/type/macros.rs:137:23
|
137 | fn inline(type_map: &mut TypeMap, generics: Generics) -> DataType {
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_type_map`
|
::: src/type/impls.rs:273:5
|
273 | impl_for_map!(Map<K, V> as "Map");
| --------------------------------- in this macro invocation
|
= note: this warning originates in the macro `impl_for_map` (in Nightly builds, run with -Z macro-backtrace for more info)
|
unused variable: `generics`:
src/type/macros.rs#L155
warning: unused variable: `generics`
--> src/type/macros.rs:155:50
|
155 | fn reference(type_map: &mut TypeMap, generics: Cow<[DataType]>) -> Reference {
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_generics`
|
::: src/type/impls.rs:265:5
|
265 | impl_for_map!(indexmap::IndexMap<K, V> as "IndexMap");
| ----------------------------------------------------- in this macro invocation
|
= note: this warning originates in the macro `impl_for_map` (in Nightly builds, run with -Z macro-backtrace for more info)
|
unused variable: `type_map`:
src/type/macros.rs#L155
warning: unused variable: `type_map`
--> src/type/macros.rs:155:26
|
155 | fn reference(type_map: &mut TypeMap, generics: Cow<[DataType]>) -> Reference {
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_type_map`
|
::: src/type/impls.rs:265:5
|
265 | impl_for_map!(indexmap::IndexMap<K, V> as "IndexMap");
| ----------------------------------------------------- in this macro invocation
|
= note: this warning originates in the macro `impl_for_map` (in Nightly builds, run with -Z macro-backtrace for more info)
|
unused variable: `generics`:
src/type/macros.rs#L137
warning: unused variable: `generics`
--> src/type/macros.rs:137:47
|
137 | fn inline(type_map: &mut TypeMap, generics: Generics) -> DataType {
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_generics`
|
::: src/type/impls.rs:265:5
|
265 | impl_for_map!(indexmap::IndexMap<K, V> as "IndexMap");
| ----------------------------------------------------- in this macro invocation
|
= note: this warning originates in the macro `impl_for_map` (in Nightly builds, run with -Z macro-backtrace for more info)
|
unused variable: `type_map`:
src/type/macros.rs#L137
warning: unused variable: `type_map`
--> src/type/macros.rs:137:23
|
137 | fn inline(type_map: &mut TypeMap, generics: Generics) -> DataType {
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_type_map`
|
::: src/type/impls.rs:265:5
|
265 | impl_for_map!(indexmap::IndexMap<K, V> as "IndexMap");
| ----------------------------------------------------- in this macro invocation
|
= note: this warning originates in the macro `impl_for_map` (in Nightly builds, run with -Z macro-backtrace for more info)
|
unused variable: `generics`:
src/type/macros.rs#L107
warning: unused variable: `generics`
--> src/type/macros.rs:107:47
|
107 | fn inline(type_map: &mut TypeMap, generics: Generics) -> DataType {
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_generics`
|
::: src/type/impls.rs:264:5
|
264 | impl_for_list!(true; indexmap::IndexSet<T> as "IndexSet");
| --------------------------------------------------------- in this macro invocation
|
= note: this warning originates in the macro `impl_for_list` (in Nightly builds, run with -Z macro-backtrace for more info)
|
unused variable: `type_map`:
src/type/macros.rs#L107
warning: unused variable: `type_map`
--> src/type/macros.rs:107:23
|
107 | fn inline(type_map: &mut TypeMap, generics: Generics) -> DataType {
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_type_map`
|
::: src/type/impls.rs:264:5
|
264 | impl_for_list!(true; indexmap::IndexSet<T> as "IndexSet");
| --------------------------------------------------------- in this macro invocation
|
= note: this warning originates in the macro `impl_for_list` (in Nightly builds, run with -Z macro-backtrace for more info)
|
unused variable: `generics`:
src/type/macros.rs#L155
warning: unused variable: `generics`
--> src/type/macros.rs:155:50
|
155 | fn reference(type_map: &mut TypeMap, generics: Cow<[DataType]>) -> Reference {
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_generics`
|
::: src/type/impls.rs:242:1
|
242 | impl_for_map!(BTreeMap<K, V> as "BTreeMap");
| ------------------------------------------- in this macro invocation
|
= note: this warning originates in the macro `impl_for_map` (in Nightly builds, run with -Z macro-backtrace for more info)
|
unused variable: `type_map`:
src/type/macros.rs#L155
warning: unused variable: `type_map`
--> src/type/macros.rs:155:26
|
155 | fn reference(type_map: &mut TypeMap, generics: Cow<[DataType]>) -> Reference {
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_type_map`
|
::: src/type/impls.rs:242:1
|
242 | impl_for_map!(BTreeMap<K, V> as "BTreeMap");
| ------------------------------------------- in this macro invocation
|
= note: this warning originates in the macro `impl_for_map` (in Nightly builds, run with -Z macro-backtrace for more info)
|
unused variable: `generics`:
src/type/macros.rs#L137
warning: unused variable: `generics`
--> src/type/macros.rs:137:47
|
137 | fn inline(type_map: &mut TypeMap, generics: Generics) -> DataType {
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_generics`
|
::: src/type/impls.rs:242:1
|
242 | impl_for_map!(BTreeMap<K, V> as "BTreeMap");
| ------------------------------------------- in this macro invocation
|
= note: this warning originates in the macro `impl_for_map` (in Nightly builds, run with -Z macro-backtrace for more info)
|
unused variable: `type_map`:
src/type/macros.rs#L137
warning: unused variable: `type_map`
--> src/type/macros.rs:137:23
|
137 | fn inline(type_map: &mut TypeMap, generics: Generics) -> DataType {
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_type_map`
|
::: src/type/impls.rs:242:1
|
242 | impl_for_map!(BTreeMap<K, V> as "BTreeMap");
| ------------------------------------------- in this macro invocation
|
= note: this warning originates in the macro `impl_for_map` (in Nightly builds, run with -Z macro-backtrace for more info)
|
unused variable: `generics`:
src/type/macros.rs#L155
warning: unused variable: `generics`
--> src/type/macros.rs:155:50
|
155 | fn reference(type_map: &mut TypeMap, generics: Cow<[DataType]>) -> Reference {
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_generics`
|
::: src/type/impls.rs:241:1
|
241 | impl_for_map!(HashMap<K, V> as "HashMap");
| ----------------------------------------- in this macro invocation
|
= note: this warning originates in the macro `impl_for_map` (in Nightly builds, run with -Z macro-backtrace for more info)
|
unused variable: `type_map`:
src/type/macros.rs#L155
warning: unused variable: `type_map`
--> src/type/macros.rs:155:26
|
155 | fn reference(type_map: &mut TypeMap, generics: Cow<[DataType]>) -> Reference {
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_type_map`
|
::: src/type/impls.rs:241:1
|
241 | impl_for_map!(HashMap<K, V> as "HashMap");
| ----------------------------------------- in this macro invocation
|
= note: this warning originates in the macro `impl_for_map` (in Nightly builds, run with -Z macro-backtrace for more info)
|
unused variable: `generics`:
src/type/macros.rs#L137
warning: unused variable: `generics`
--> src/type/macros.rs:137:47
|
137 | fn inline(type_map: &mut TypeMap, generics: Generics) -> DataType {
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_generics`
|
::: src/type/impls.rs:241:1
|
241 | impl_for_map!(HashMap<K, V> as "HashMap");
| ----------------------------------------- in this macro invocation
|
= note: this warning originates in the macro `impl_for_map` (in Nightly builds, run with -Z macro-backtrace for more info)
|
unused variable: `type_map`:
src/type/macros.rs#L137
warning: unused variable: `type_map`
--> src/type/macros.rs:137:23
|
137 | fn inline(type_map: &mut TypeMap, generics: Generics) -> DataType {
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_type_map`
|
::: src/type/impls.rs:241:1
|
241 | impl_for_map!(HashMap<K, V> as "HashMap");
| ----------------------------------------- in this macro invocation
|
= note: this warning originates in the macro `impl_for_map` (in Nightly builds, run with -Z macro-backtrace for more info)
|
unused variable: `generics`:
src/type/macros.rs#L107
warning: unused variable: `generics`
--> src/type/macros.rs:107:47
|
107 | fn inline(type_map: &mut TypeMap, generics: Generics) -> DataType {
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_generics`
|
::: src/type/impls.rs:101:1
|
101 | / impl_for_list!(
102 | | false; Vec<T> as "Vec"
103 | | false; VecDeque<T> as "VecDeque"
104 | | false; BinaryHeap<T> as "BinaryHeap"
... |
107 | | true; BTreeSet<T> as "BTreeSet"
108 | | );
| |_- in this macro invocation
|
= note: this warning originates in the macro `impl_for_list` (in Nightly builds, run with -Z macro-backtrace for more info)
|
unused variable: `type_map`:
src/type/macros.rs#L107
warning: unused variable: `type_map`
--> src/type/macros.rs:107:23
|
107 | fn inline(type_map: &mut TypeMap, generics: Generics) -> DataType {
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_type_map`
|
::: src/type/impls.rs:101:1
|
101 | / impl_for_list!(
102 | | false; Vec<T> as "Vec"
103 | | false; VecDeque<T> as "VecDeque"
104 | | false; BinaryHeap<T> as "BinaryHeap"
... |
107 | | true; BTreeSet<T> as "BTreeSet"
108 | | );
| |_- in this macro invocation
|
= note: this warning originates in the macro `impl_for_list` (in Nightly builds, run with -Z macro-backtrace for more info)
|
unused variable: `generics`:
src/type/macros.rs#L63
warning: unused variable: `generics`
--> src/type/macros.rs:63:50
|
63 | fn reference(type_map: &mut TypeMap, generics: Cow<[DataType]>) -> Reference {
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_generics`
|
::: src/type/impls.rs:24:5
|
24 | impl_containers!(Mutex RwLock);
| ------------------------------ in this macro invocation
|
= note: this warning originates in the macro `impl_containers` (in Nightly builds, run with -Z macro-backtrace for more info)
|
unused variable: `type_map`:
src/type/macros.rs#L63
warning: unused variable: `type_map`
--> src/type/macros.rs:63:26
|
63 | fn reference(type_map: &mut TypeMap, generics: Cow<[DataType]>) -> Reference {
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_type_map`
|
::: src/type/impls.rs:24:5
|
24 | impl_containers!(Mutex RwLock);
| ------------------------------ in this macro invocation
|
= note: this warning originates in the macro `impl_containers` (in Nightly builds, run with -Z macro-backtrace for more info)
|
unused variable: `generics`:
src/type/macros.rs#L54
warning: unused variable: `generics`
--> src/type/macros.rs:54:47
|
54 | fn inline(type_map: &mut TypeMap, generics: Generics) -> DataType {
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_generics`
|
::: src/type/impls.rs:24:5
|
24 | impl_containers!(Mutex RwLock);
| ------------------------------ in this macro invocation
|
= note: this warning originates in the macro `impl_containers` (in Nightly builds, run with -Z macro-backtrace for more info)
|
unused variable: `type_map`:
src/type/macros.rs#L54
warning: unused variable: `type_map`
--> src/type/macros.rs:54:23
|
54 | fn inline(type_map: &mut TypeMap, generics: Generics) -> DataType {
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_type_map`
|
::: src/type/impls.rs:24:5
|
24 | impl_containers!(Mutex RwLock);
| ------------------------------ in this macro invocation
|
= note: this warning originates in the macro `impl_containers` (in Nightly builds, run with -Z macro-backtrace for more info)
|
unused variable: `generics`:
src/type/macros.rs#L63
warning: unused variable: `generics`
--> src/type/macros.rs:63:50
|
63 | fn reference(type_map: &mut TypeMap, generics: Cow<[DataType]>) -> Reference {
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_generics`
|
::: src/type/impls.rs:18:5
|
18 | impl_containers!(Box Rc Arc Cell RefCell Mutex RwLock);
| ------------------------------------------------------ in this macro invocation
|
= note: this warning originates in the macro `impl_containers` (in Nightly builds, run with -Z macro-backtrace for more info)
|
unused variable: `type_map`:
src/type/macros.rs#L63
warning: unused variable: `type_map`
--> src/type/macros.rs:63:26
|
63 | fn reference(type_map: &mut TypeMap, generics: Cow<[DataType]>) -> Reference {
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_type_map`
|
::: src/type/impls.rs:18:5
|
18 | impl_containers!(Box Rc Arc Cell RefCell Mutex RwLock);
| ------------------------------------------------------ in this macro invocation
|
= note: this warning originates in the macro `impl_containers` (in Nightly builds, run with -Z macro-backtrace for more info)
|
unused variable: `generics`:
src/type/macros.rs#L54
warning: unused variable: `generics`
--> src/type/macros.rs:54:47
|
54 | fn inline(type_map: &mut TypeMap, generics: Generics) -> DataType {
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_generics`
|
::: src/type/impls.rs:18:5
|
18 | impl_containers!(Box Rc Arc Cell RefCell Mutex RwLock);
| ------------------------------------------------------ in this macro invocation
|
= note: this warning originates in the macro `impl_containers` (in Nightly builds, run with -Z macro-backtrace for more info)
|
unused variable: `type_map`:
src/type/macros.rs#L54
warning: unused variable: `type_map`
--> src/type/macros.rs:54:23
|
54 | fn inline(type_map: &mut TypeMap, generics: Generics) -> DataType {
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_type_map`
|
::: src/type/impls.rs:18:5
|
18 | impl_containers!(Box Rc Arc Cell RefCell Mutex RwLock);
| ------------------------------------------------------ in this macro invocation
|
= note: this warning originates in the macro `impl_containers` (in Nightly builds, run with -Z macro-backtrace for more info)
|
unused variable: `repr`:
src/datatype/mod.rs#L113
warning: unused variable: `repr`
--> src/datatype/mod.rs:113:66
|
113 | pub fn inline(type_map: &mut TypeMap, generics: &[DataType], repr: DataType) -> Self {
| ^^^^ help: if this is intentional, prefix it with an underscore: `_repr`
|
unused variable: `generics`:
src/datatype/mod.rs#L113
warning: unused variable: `generics`
--> src/datatype/mod.rs:113:43
|
113 | pub fn inline(type_map: &mut TypeMap, generics: &[DataType], repr: DataType) -> Self {
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_generics`
|
unused variable: `type_map`:
src/datatype/mod.rs#L113
warning: unused variable: `type_map`
--> src/datatype/mod.rs:113:19
|
113 | pub fn inline(type_map: &mut TypeMap, generics: &[DataType], repr: DataType) -> Self {
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_type_map`
|
unused variable: `generics`:
src/datatype/reference.rs#L14
warning: unused variable: `generics`
--> src/datatype/reference.rs:14:57
|
14 | pub fn inline<T: Type + ?Sized>(type_map: &mut TypeMap, generics: &[DataType]) -> Reference {
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_generics`
|
unused variable: `type_map`:
src/datatype/reference.rs#L14
warning: unused variable: `type_map`
--> src/datatype/reference.rs:14:33
|
14 | pub fn inline<T: Type + ?Sized>(type_map: &mut TypeMap, generics: &[DataType]) -> Reference {
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_type_map`
|
= note: `#[warn(unused_variables)]` on by default
|
unused variable: `deprecated`:
macros/src/type/mod.rs#L124
warning: unused variable: `deprecated`
--> macros/src/type/mod.rs:124:9
|
124 | let deprecated = container_attrs.common.deprecated_as_tokens(&crate_ref);
| ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_deprecated`
|
unused variable: `comments`:
macros/src/type/mod.rs#L123
warning: unused variable: `comments`
--> macros/src/type/mod.rs:123:9
|
123 | let comments = &container_attrs.common.doc;
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comments`
|
unused variable: `inlines`:
macros/src/type/mod.rs#L47
warning: unused variable: `inlines`
--> macros/src/type/mod.rs:47:10
|
47 | let (inlines, reference, can_flatten) = match data {
| ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_inlines`
|
= note: `#[warn(unused_variables)]` on by default
|
clippy
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|