WIP: Add documentation for cdr and car and move build.rs to rune_defun #42
clippy
289 errors, 72 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 289 |
Warning | 72 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.75.0-beta.5 (1a06ac5b5 2023-12-01)
- cargo 1.75.0-beta.5 (1d8b05cdd 2023-11-20)
- clippy 0.1.75 (1a06ac5 2023-12-01)
Annotations
Check warning on line 98 in crates/rune-defun/src/search.rs
github-actions / clippy
unnested or-patterns
warning: unnested or-patterns
--> crates/rune-defun/src/search.rs:98:17
|
98 | Some((_, c @ '('..=')' | c @ '{' | c @ '}')) => norm_regex.push(c),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnested_or_patterns
= note: `-W clippy::unnested-or-patterns` implied by `-W clippy::pedantic`
= help: to override `-W clippy::pedantic` add `#[allow(clippy::unnested_or_patterns)]`
help: nest the patterns
|
98 | Some((_, c @ ('('..=')' | '{' | '}'))) => norm_regex.push(c),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Check warning on line 22 in crates/rune-defun/src/debug.rs
github-actions / clippy
unused macro definition: `debug`
warning: unused macro definition: `debug`
--> crates/rune-defun/src/debug.rs:22:14
|
22 | macro_rules! debug {
| ^^^^^
|
= note: `#[warn(unused_macros)]` on by default
Check failure on line 974 in crates/rune-defun/src/bytecode.rs
github-actions / clippy
type alias `HashTable` is private
error[E0603]: type alias `HashTable` is private
--> crates/rune-defun/src/bytecode.rs:974:18
|
974 | object::{HashTable, IntoObject, LispVec},
| ^^^^^^^^^ private type alias
|
note: the type alias `HashTable` is defined here
--> /home/runner/work/rune/rune/crates/rune-core/src/object.rs:28:16
|
28 | pub(crate) use hashtable::*;
| ^^^^^^^^^
Check failure on line 6 in crates/rune-defun/src/bytecode.rs
github-actions / clippy
trait `Trace` is private
error[E0603]: trait `Trace` is private
--> crates/rune-defun/src/bytecode.rs:6:34
|
6 | use rune_core::gc::{Context, Rt, Trace};
| ^^^^^ private trait
|
note: the trait `Trace` is defined here
--> /home/runner/work/rune/rune/crates/rune-core/src/gc.rs:9:16
|
9 | pub(crate) use trace::*;
| ^^^^^
Check failure on line 28 in crates/rune-defun/src/threads.rs
github-actions / clippy
expected value, found macro `env`
error[E0423]: expected value, found macro `env`
--> crates/rune-defun/src/threads.rs:28:49
|
28 | _ = crate::interpreter::eval(obj, None, env, cx);
| ^^^ not a value
Check failure on line 187 in crates/rune-defun/src/search.rs
github-actions / clippy
expected value, found macro `env`
error[E0423]: expected value, found macro `env`
--> crates/rune-defun/src/search.rs:187:77
|
187 | let result = replace_match(newtext, None, None, Some(string), None, env, cx).unwrap();
| ^^^ not a value
Check failure on line 186 in crates/rune-defun/src/search.rs
github-actions / clippy
expected value, found macro `env`
error[E0423]: expected value, found macro `env`
--> crates/rune-defun/src/search.rs:186:49
|
186 | string_match("bar", string, None, None, env, cx).unwrap();
| ^^^ not a value
Check failure on line 221 in crates/rune-defun/src/lread.rs
github-actions / clippy
expected value, found macro `env`
error[E0423]: expected value, found macro `env`
--> crates/rune-defun/src/lread.rs:221:48
|
221 | let val = interpreter::eval(obj, None, env, cx).unwrap();
| ^^^ not a value
Check failure on line 217 in crates/rune-defun/src/lread.rs
github-actions / clippy
expected value, found macro `env`
error[E0423]: expected value, found macro `env`
--> crates/rune-defun/src/lread.rs:217:71
|
217 | load_internal("(setq foo 1) (setq bar 2) (setq baz 1.5)", cx, env).unwrap();
| ^^^ not a value
Check failure on line 313 in crates/rune-defun/src/interpreter.rs
github-actions / clippy
cannot find function `qtrue` in this scope
error[E0425]: cannot find function `qtrue` in this scope
--> crates/rune-defun/src/interpreter.rs:313:21
|
313 | root!(last, qtrue(), cx);
| ^^^^^ not found in this scope
|
help: consider importing this function
|
1 + use rune_core::object::qtrue;
|
Check failure on line 923 in crates/rune-defun/src/fns.rs
github-actions / clippy
expected value, found macro `env`
error[E0423]: expected value, found macro `env`
--> crates/rune-defun/src/fns.rs:923:30
|
923 | maphash(func, table, env, cx).unwrap();
| ^^^ not a value
Check failure on line 711 in crates/rune-defun/src/fns.rs
github-actions / clippy
cannot find value `call_arg` in this scope
error[E0425]: cannot find value `call_arg` in this scope
--> crates/rune-defun/src/fns.rs:711:9
|
711 | call_arg.clear();
| ^^^^^^^^ not found in this scope
Check failure on line 707 in crates/rune-defun/src/fns.rs
github-actions / clippy
cannot find value `call_arg` in this scope
error[E0425]: cannot find value `call_arg` in this scope
--> crates/rune-defun/src/fns.rs:707:39
|
707 | if let Err(e) = function.call(call_arg, None, env, cx) {
| ^^^^^^^^ not found in this scope
Check failure on line 705 in crates/rune-defun/src/fns.rs
github-actions / clippy
cannot find value `call_arg` in this scope
error[E0425]: cannot find value `call_arg` in this scope
--> crates/rune-defun/src/fns.rs:705:13
|
705 | call_arg.push(*val);
| ^^^^^^^^ not found in this scope
Check failure on line 704 in crates/rune-defun/src/fns.rs
github-actions / clippy
cannot find value `call_arg` in this scope
error[E0425]: cannot find value `call_arg` in this scope
--> crates/rune-defun/src/fns.rs:704:13
|
704 | call_arg.push(*key);
| ^^^^^^^^ not found in this scope
Check failure on line 470 in crates/rune-defun/src/fns.rs
github-actions / clippy
cannot find value `tmp` in this scope
error[E0425]: cannot find value `tmp` in this scope
--> crates/rune-defun/src/fns.rs:470:22
|
470 | vec[j].set(&*tmp);
| ^^^ not found in this scope
Check failure on line 462 in crates/rune-defun/src/fns.rs
github-actions / clippy
cannot find value `tmp` in this scope
error[E0425]: cannot find value `tmp` in this scope
--> crates/rune-defun/src/fns.rs:462:34
|
462 | vec[j].set(&*tmp);
| ^^^ not found in this scope
Check failure on line 455 in crates/rune-defun/src/fns.rs
github-actions / clippy
cannot find value `call_args` in this scope
error[E0425]: cannot find value `call_args` in this scope
--> crates/rune-defun/src/fns.rs:455:34
|
455 | match predicate.call(call_args, None, env, cx) {
| ^^^^^^^^^ not found in this scope
Check failure on line 454 in crates/rune-defun/src/fns.rs
github-actions / clippy
cannot find value `tmp` in this scope
error[E0425]: cannot find value `tmp` in this scope
--> crates/rune-defun/src/fns.rs:454:30
|
454 | call_args.push(&*tmp);
| ^^^ not found in this scope
Check failure on line 454 in crates/rune-defun/src/fns.rs
github-actions / clippy
cannot find value `call_args` in this scope
error[E0425]: cannot find value `call_args` in this scope
--> crates/rune-defun/src/fns.rs:454:13
|
454 | call_args.push(&*tmp);
| ^^^^^^^^^ not found in this scope
Check failure on line 453 in crates/rune-defun/src/fns.rs
github-actions / clippy
cannot find value `call_args` in this scope
error[E0425]: cannot find value `call_args` in this scope
--> crates/rune-defun/src/fns.rs:453:13
|
453 | call_args.push(&vec[j - 1]);
| ^^^^^^^^^ not found in this scope
Check failure on line 452 in crates/rune-defun/src/fns.rs
github-actions / clippy
cannot find value `call_args` in this scope
error[E0425]: cannot find value `call_args` in this scope
--> crates/rune-defun/src/fns.rs:452:13
|
452 | call_args.clear();
| ^^^^^^^^^ not found in this scope
Check failure on line 449 in crates/rune-defun/src/fns.rs
github-actions / clippy
cannot find value `tmp` in this scope
error[E0425]: cannot find value `tmp` in this scope
--> crates/rune-defun/src/fns.rs:449:9
|
449 | tmp.set(&vec[i]);
| ^^^ not found in this scope
Check failure on line 326 in crates/rune-defun/src/fns.rs
github-actions / clippy
cannot find value `call_arg` in this scope
error[E0425]: cannot find value `call_arg` in this scope
--> crates/rune-defun/src/fns.rs:326:21
|
326 | call_arg.clear();
| ^^^^^^^^ not found in this scope
Check failure on line 322 in crates/rune-defun/src/fns.rs
github-actions / clippy
cannot find value `call_arg` in this scope
error[E0425]: cannot find value `call_arg` in this scope
--> crates/rune-defun/src/fns.rs:322:44
|
322 | let result = func.call(call_arg, None, env, cx)?;
| ^^^^^^^^ not found in this scope