Skip to content

WIP: Move slite_into_list and build_list to rune_core #45

WIP: Move slite_into_list and build_list to rune_core

WIP: Move slite_into_list and build_list to rune_core #45

GitHub Actions / clippy failed Dec 5, 2023 in 0s

clippy

18 errors, 3 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 18
Warning 3
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 failure on line 320 in crates/rune-core/src/bytecode.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

no method named `execute_bytecode` found for mutable reference `&mut bytecode::Routine<'brw>` in the current scope

error[E0599]: no method named `execute_bytecode` found for mutable reference `&mut bytecode::Routine<'brw>` in the current scope
   --> crates/rune-core/src/bytecode.rs:320:34
    |
320 |             let err = match self.execute_bytecode(env, cx) {
    |                                  ^^^^^^^^^^^^^^^^ method not found in `&mut Routine<'brw>`

Check failure on line 908 in crates/rune-core/src/object/tagged.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

no method named `call` found for struct `object::tagged::Gc` in the current scope

error[E0599]: no method named `call` found for struct `object::tagged::Gc` in the current scope
   --> crates/rune-core/src/object/tagged.rs:908:30
    |
51  | pub struct Gc<T> {
    | ---------------- method `call` not found for this struct
...
908 |                         func.call(args, Some(&name), env, cx)
    |                              ^^^^ method not found in `Gc<Function<'_>>`
    |
    = help: items from traits can only be used if the trait is implemented and in scope
    = note: the following trait defines an item `call`, perhaps you need to implement it:
            candidate #1: `std::ops::Fn`

Check failure on line 902 in crates/rune-core/src/object/tagged.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

no method named `bind` found for struct `env::symbol::Symbol<'_>` in the current scope

error[E0599]: no method named `bind` found for struct `env::symbol::Symbol<'_>` in the current scope
   --> crates/rune-core/src/object/tagged.rs:902:40
    |
902 |                         let name = sym.bind(cx).name().to_owned();
    |                                        ^^^^ method not found in `Symbol<'_>`
    |
   ::: crates/rune-core/src/env/symbol.rs:42:1
    |
42  | pub struct Symbol<'a> {
    | --------------------- method `bind` not found for this struct

Check failure on line 898 in crates/rune-core/src/object/tagged.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

no method named `bind` found for struct `env::symbol::Symbol<'_>` in the current scope

error[E0599]: no method named `bind` found for struct `env::symbol::Symbol<'_>` in the current scope
   --> crates/rune-core/src/object/tagged.rs:898:46
    |
898 |                         let Some(func) = sym.bind(cx).follow_indirect(cx) else {
    |                                              ^^^^ method not found in `Symbol<'_>`
    |
   ::: crates/rune-core/src/env/symbol.rs:42:1
    |
42  | pub struct Symbol<'a> {
    | --------------------- method `bind` not found for this struct

Check failure on line 882 in crates/rune-core/src/object/tagged.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

mismatched types

error[E0308]: mismatched types
   --> crates/rune-core/src/object/tagged.rs:882:39
    |
882 |                 crate::bytecode::call(f, args, name, env, cx)
    |                 --------------------- ^ expected `&Rt<&ByteFn>`, found `&ByteFn`
    |                 |
    |                 arguments to this function are incorrect
    |
    = note: expected reference `&gc::root::Rt<&'static object::func::ByteFn>`
               found reference `&object::func::ByteFn`
note: function defined here
   --> crates/rune-core/src/bytecode.rs:362:15
    |
362 | pub(crate) fn call<'ob>(
    |               ^^^^
363 |     func: &Rt<&'static ByteFn>,
    |     --------------------------

Check failure on line 860 in crates/rune-core/src/object/tagged.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

cannot find function `bind_variables` in this scope

error[E0425]: cannot find function `bind_variables` in this scope
   --> crates/rune-core/src/object/tagged.rs:860:24
    |
860 |             let vars = bind_variables(&mut forms, args, name, cx)?;
    |                        ^^^^^^^^^^^^^^ not found in this scope

Check warning on line 22 in crates/rune-core/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

`crate` references the macro call's crate

warning: `crate` references the macro call's crate
  --> crates/rune-core/src/lib.rs:22:41
   |
22 |         impl<'ob> std::convert::TryFrom<crate::object::GcObj<'ob>> for $self {
   |                                         ^^^^^ help: to reference the macro definition's crate, use: `$crate`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#crate_in_macro_def

Check warning on line 25 in crates/rune-core/src/debug.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

`crate` references the macro call's crate

warning: `crate` references the macro call's crate
  --> crates/rune-core/src/debug.rs:25:12
   |
25 |         if crate::debug::debug_enabled() {
   |            ^^^^^ help: to reference the macro definition's crate, use: `$crate`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#crate_in_macro_def
   = note: `-W clippy::crate-in-macro-def` implied by `-W clippy::all`
   = help: to override `-W clippy::all` add `#[allow(clippy::crate_in_macro_def)]`

Check warning on line 5 in crates/rune-core/src/bytecode.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused imports: `Gc`, `LispString`

warning: unused imports: `Gc`, `LispString`
 --> crates/rune-core/src/bytecode.rs:5:34
  |
5 | use crate::object::{nil, ByteFn, Gc, GcObj, LispString, LispVec, Object, WithLifetime};
  |                                  ^^         ^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

Check failure on line 875 in crates/rune-core/src/object/tagged.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

cannot find type `EvalResult` in this scope

error[E0412]: cannot find type `EvalResult` in this scope
   --> crates/rune-core/src/object/tagged.rs:875:10
    |
875 |     ) -> EvalResult<'ob> {
    |          ^^^^^^^^^^ not found in this scope
    |
help: consider importing this type alias
    |
2   + use crate::error::EvalResult;
    |

Check failure on line 873 in crates/rune-core/src/object/tagged.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

cannot find type `Env` in this scope

error[E0412]: cannot find type `Env` in this scope
   --> crates/rune-core/src/object/tagged.rs:873:22
    |
873 |         env: &mut Rt<Env>,
    |                      ^^^ not found in this scope
    |
help: consider importing this struct
    |
2   + use crate::env::Env;
    |

Check failure on line 862 in crates/rune-core/src/object/tagged.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

cannot find value `forms` in this scope

error[E0425]: cannot find value `forms` in this scope
   --> crates/rune-core/src/object/tagged.rs:862:54
    |
862 |             Interpreter { vars, env }.implicit_progn(forms, cx)
    |                                                      ^^^^^ not found in this scope

Check failure on line 862 in crates/rune-core/src/object/tagged.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

cannot find struct, variant or union type `Interpreter` in this scope

error[E0422]: cannot find struct, variant or union type `Interpreter` in this scope
   --> crates/rune-core/src/object/tagged.rs:862:13
    |
862 |             Interpreter { vars, env }.implicit_progn(forms, cx)
    |             ^^^^^^^^^^^ not found in this scope

Check failure on line 860 in crates/rune-core/src/object/tagged.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

cannot find value `forms` in this scope

error[E0425]: cannot find value `forms` in this scope
   --> crates/rune-core/src/object/tagged.rs:860:44
    |
860 |             let vars = bind_variables(&mut forms, args, name, cx)?;
    |                                            ^^^^^ not found in this scope

Check failure on line 852 in crates/rune-core/src/object/tagged.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

cannot find type `EvalResult` in this scope

error[E0412]: cannot find type `EvalResult` in this scope
   --> crates/rune-core/src/object/tagged.rs:852:6
    |
852 | ) -> EvalResult<'ob> {
    |      ^^^^^^^^^^ not found in this scope
    |
help: consider importing this type alias
    |
2   + use crate::error::EvalResult;
    |

Check failure on line 850 in crates/rune-core/src/object/tagged.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

cannot find type `Env` in this scope

error[E0412]: cannot find type `Env` in this scope
   --> crates/rune-core/src/object/tagged.rs:850:18
    |
850 |     env: &mut Rt<Env>,
    |                  ^^^ not found in this scope
    |
help: consider importing this struct
    |
2   + use crate::env::Env;
    |

Check failure on line 842 in crates/rune-core/src/object/tagged.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

failed to resolve: use of undeclared type `EvalError`

error[E0433]: failed to resolve: use of undeclared type `EvalError`
   --> crates/rune-core/src/object/tagged.rs:842:19
    |
842 |         Err(e) => EvalError::with_trace(e, name, args),
    |                   ^^^^^^^^^ use of undeclared type `EvalError`
    |
help: consider importing this struct
    |
2   + use crate::error::EvalError;
    |

Check failure on line 840 in crates/rune-core/src/object/tagged.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

cannot find type `EvalError` in this scope

error[E0412]: cannot find type `EvalError` in this scope
   --> crates/rune-core/src/object/tagged.rs:840:26
    |
840 |     match err.downcast::<EvalError>() {
    |                          ^^^^^^^^^ not found in this scope
    |
help: consider importing this struct
    |
2   + use crate::error::EvalError;
    |

Check failure on line 839 in crates/rune-core/src/object/tagged.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

cannot find type `EvalError` in this scope

error[E0412]: cannot find type `EvalError` in this scope
   --> crates/rune-core/src/object/tagged.rs:839:69
    |
839 | fn add_trace(err: anyhow::Error, name: &str, args: &[Rt<GcObj>]) -> EvalError {
    |                                                                     ^^^^^^^^^ not found in this scope
    |
help: consider importing this struct
    |
2   + use crate::error::EvalError;
    |

Check failure on line 281 in crates/rune-core/src/bytecode.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

failed to resolve: could not find `fns` in the crate root

error[E0433]: failed to resolve: could not find `fns` in the crate root
   --> crates/rune-core/src/bytecode.rs:281:31
    |
281 |             let list = crate::fns::slice_into_list(Rt::bind_slice(slice, cx), None, cx);
    |                               ^^^ could not find `fns` in the crate root

Check failure on line 896 in crates/rune-core/src/object/tagged.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

failed to resolve: could not find `eval` in the crate root

error[E0433]: failed to resolve: could not find `eval` in the crate root
   --> crates/rune-core/src/object/tagged.rs:896:32
    |
896 |                         crate::eval::autoload_do_load(self.use_as(), None, None, env, cx)
    |                                ^^^^ could not find `eval` in the crate root