Skip to content

Drop Type::definition and regig generic handling #352

Drop Type::definition and regig generic handling

Drop Type::definition and regig generic handling #352

Triggered via pull request December 25, 2023 14:44
Status Failure
Total duration 5m 27s
Artifacts

ci.yml

on: pull_request
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

5 errors and 38 warnings
build (ubuntu-latest)
Process completed with exit code 101.
build (windows-latest)
The job was canceled because "ubuntu-latest" failed.
build (windows-latest)
The operation was canceled.
build (macos-latest)
The job was canceled because "ubuntu-latest" failed.
build (macos-latest)
The operation was canceled.
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#L229
warning: this function has too many arguments (8/7) --> src/internal.rs:229:5 | 229 | / pub fn get_fn_datatype<TMarker, T: SpectaFunction<TMarker>>( 230 | | _: T, 231 | | asyncness: bool, 232 | | name: Cow<'static, str>, ... | 237 | | no_return_type: bool, 238 | | ) -> 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/macros.rs#L175
warning: unused variable: `generics` --> src/type/macros.rs:175:50 | 175 | fn reference(type_map: &mut TypeMap, generics: &[DataType]) -> Reference { | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_generics` | ::: src/type/impls.rs:454:5 | 454 | 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#L175
warning: unused variable: `type_map` --> src/type/macros.rs:175:26 | 175 | fn reference(type_map: &mut TypeMap, generics: &[DataType]) -> Reference { | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_type_map` | ::: src/type/impls.rs:454:5 | 454 | 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#L157
warning: unused variable: `generics` --> src/type/macros.rs:157:47 | 157 | fn inline(type_map: &mut TypeMap, generics: Generics) -> DataType { | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_generics` | ::: src/type/impls.rs:454:5 | 454 | 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#L157
warning: unused variable: `type_map` --> src/type/macros.rs:157:23 | 157 | 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:454:5 | 454 | 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#L175
warning: unused variable: `generics` --> src/type/macros.rs:175:50 | 175 | fn reference(type_map: &mut TypeMap, generics: &[DataType]) -> Reference { | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_generics` | ::: src/type/impls.rs:272:5 | 272 | 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#L175
warning: unused variable: `type_map` --> src/type/macros.rs:175:26 | 175 | fn reference(type_map: &mut TypeMap, generics: &[DataType]) -> Reference { | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_type_map` | ::: src/type/impls.rs:272:5 | 272 | 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#L157
warning: unused variable: `generics` --> src/type/macros.rs:157:47 | 157 | fn inline(type_map: &mut TypeMap, generics: Generics) -> DataType { | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_generics` | ::: src/type/impls.rs:272:5 | 272 | 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#L157
warning: unused variable: `type_map` --> src/type/macros.rs:157:23 | 157 | 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:272:5 | 272 | 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#L175
warning: unused variable: `generics` --> src/type/macros.rs:175:50 | 175 | fn reference(type_map: &mut TypeMap, generics: &[DataType]) -> Reference { | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_generics` | ::: src/type/impls.rs:264:5 | 264 | 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#L175
warning: unused variable: `type_map` --> src/type/macros.rs:175:26 | 175 | fn reference(type_map: &mut TypeMap, generics: &[DataType]) -> Reference { | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_type_map` | ::: src/type/impls.rs:264:5 | 264 | 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#L157
warning: unused variable: `generics` --> src/type/macros.rs:157:47 | 157 | 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_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#L157
warning: unused variable: `type_map` --> src/type/macros.rs:157:23 | 157 | 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_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#L127
warning: unused variable: `generics` --> src/type/macros.rs:127:47 | 127 | fn inline(type_map: &mut TypeMap, generics: Generics) -> DataType { | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_generics` | ::: src/type/impls.rs:263:5 | 263 | 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#L127
warning: unused variable: `type_map` --> src/type/macros.rs:127:23 | 127 | 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:263:5 | 263 | 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#L175
warning: unused variable: `generics` --> src/type/macros.rs:175:50 | 175 | fn reference(type_map: &mut TypeMap, generics: &[DataType]) -> Reference { | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_generics` | ::: src/type/impls.rs:241:1 | 241 | 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#L175
warning: unused variable: `type_map` --> src/type/macros.rs:175:26 | 175 | fn reference(type_map: &mut TypeMap, generics: &[DataType]) -> Reference { | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_type_map` | ::: src/type/impls.rs:241:1 | 241 | 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#L157
warning: unused variable: `generics` --> src/type/macros.rs:157:47 | 157 | 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!(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#L157
warning: unused variable: `type_map` --> src/type/macros.rs:157:23 | 157 | 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!(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#L175
warning: unused variable: `generics` --> src/type/macros.rs:175:50 | 175 | fn reference(type_map: &mut TypeMap, generics: &[DataType]) -> Reference { | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_generics` | ::: src/type/impls.rs:240:1 | 240 | 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#L175
warning: unused variable: `type_map` --> src/type/macros.rs:175:26 | 175 | fn reference(type_map: &mut TypeMap, generics: &[DataType]) -> Reference { | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_type_map` | ::: src/type/impls.rs:240:1 | 240 | 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#L157
warning: unused variable: `generics` --> src/type/macros.rs:157:47 | 157 | fn inline(type_map: &mut TypeMap, generics: Generics) -> DataType { | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_generics` | ::: src/type/impls.rs:240:1 | 240 | 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#L157
warning: unused variable: `type_map` --> src/type/macros.rs:157:23 | 157 | 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:240:1 | 240 | 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#L127
warning: unused variable: `generics` --> src/type/macros.rs:127:47 | 127 | fn inline(type_map: &mut TypeMap, generics: Generics) -> DataType { | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_generics` | ::: src/type/impls.rs:100:1 | 100 | / impl_for_list!( 101 | | false; Vec<T> as "Vec" 102 | | false; VecDeque<T> as "VecDeque" 103 | | false; BinaryHeap<T> as "BinaryHeap" ... | 106 | | true; BTreeSet<T> as "BTreeSet" 107 | | ); | |_- 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#L127
warning: unused variable: `type_map` --> src/type/macros.rs:127:23 | 127 | 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:100:1 | 100 | / impl_for_list!( 101 | | false; Vec<T> as "Vec" 102 | | false; VecDeque<T> as "VecDeque" 103 | | false; BinaryHeap<T> as "BinaryHeap" ... | 106 | | true; BTreeSet<T> as "BTreeSet" 107 | | ); | |_- 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#L83
warning: unused variable: `generics` --> src/type/macros.rs:83:50 | 83 | fn reference(type_map: &mut TypeMap, generics: &[DataType]) -> Reference { | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_generics` | ::: src/type/impls.rs:23:5 | 23 | 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#L83
warning: unused variable: `type_map` --> src/type/macros.rs:83:26 | 83 | fn reference(type_map: &mut TypeMap, generics: &[DataType]) -> Reference { | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_type_map` | ::: src/type/impls.rs:23:5 | 23 | 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#L74
warning: unused variable: `generics` --> src/type/macros.rs:74:47 | 74 | fn inline(type_map: &mut TypeMap, generics: Generics) -> DataType { | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_generics` | ::: src/type/impls.rs:23:5 | 23 | 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#L74
warning: unused variable: `type_map` --> src/type/macros.rs:74:23 | 74 | 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:23:5 | 23 | 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#L83
warning: unused variable: `generics` --> src/type/macros.rs:83:50 | 83 | fn reference(type_map: &mut TypeMap, generics: &[DataType]) -> Reference { | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_generics` | ::: src/type/impls.rs:17:5 | 17 | 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#L83
warning: unused variable: `type_map` --> src/type/macros.rs:83:26 | 83 | fn reference(type_map: &mut TypeMap, generics: &[DataType]) -> Reference { | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_type_map` | ::: src/type/impls.rs:17:5 | 17 | 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#L74
warning: unused variable: `generics` --> src/type/macros.rs:74:47 | 74 | fn inline(type_map: &mut TypeMap, generics: Generics) -> DataType { | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_generics` | ::: src/type/impls.rs:17:5 | 17 | 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#L74
warning: unused variable: `type_map` --> src/type/macros.rs:74:23 | 74 | 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:17:5 | 17 | impl_containers!(Box Rc Arc Cell RefCell Mutex RwLock); | ------------------------------------------------------ in this macro invocation | = note: `#[warn(unused_variables)]` on by default = note: this warning originates in the macro `impl_containers` (in Nightly builds, run with -Z macro-backtrace for more info)
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/