Move core to workspace crate rune-core #55
test.yml
on: push
ubuntu / stable / minimal-versions
2m 55s
ubuntu / stable / coverage
3m 18s
Matrix: os-check
Matrix: required
Annotations
54 errors and 2 warnings
failed to resolve: use of undeclared crate or module `sym`:
crates/rune-core/src/object/tagged.rs#L1296
error[E0433]: failed to resolve: use of undeclared crate or module `sym`
--> crates/rune-core/src/object/tagged.rs:1296:51
|
1296 | matches!(self.untag(), Object::Symbol(sym::TRUE))
| ^^^ use of undeclared crate or module `sym`
|
failed to resolve: use of undeclared crate or module `sym`:
crates/rune-core/src/object/tagged.rs#L1298
error[E0433]: failed to resolve: use of undeclared crate or module `sym`
--> crates/rune-core/src/object/tagged.rs:1298:51
|
1298 | matches!(self.untag(), Object::Symbol(sym::NIL))
| ^^^ use of undeclared crate or module `sym`
|
cannot find function `nil` in this scope:
crates/rune-core/src/object/tagged.rs#L1423
error[E0425]: cannot find function `nil` in this scope
--> crates/rune-core/src/object/tagged.rs:1423:26
|
1423 | List::Nil => nil(),
| ^^^ not found in this scope
|
cannot find function `nil` in this scope:
crates/rune-core/src/object/tagged.rs#L1311
error[E0425]: cannot find function `nil` in this scope
--> crates/rune-core/src/object/tagged.rs:1311:9
|
1311 | nil()
| ^^^ not found in this scope
|
failed to resolve: use of undeclared crate or module `sym`:
crates/rune-core/src/object/tagged.rs#L1158
error[E0433]: failed to resolve: use of undeclared crate or module `sym`
--> crates/rune-core/src/object/tagged.rs:1158:17
|
1158 | self == sym::NIL
| ^^^ use of undeclared crate or module `sym`
|
failed to resolve: use of undeclared crate or module `sym`:
crates/rune-core/src/object/tagged.rs#L967
error[E0433]: failed to resolve: use of undeclared crate or module `sym`
--> crates/rune-core/src/object/tagged.rs:967:54
|
967 | pub const TRUE: Object<'static> = Object::Symbol(sym::TRUE);
| ^^^ use of undeclared crate or module `sym`
|
failed to resolve: use of undeclared crate or module `sym`:
crates/rune-core/src/object/tagged.rs#L966
error[E0433]: failed to resolve: use of undeclared crate or module `sym`
--> crates/rune-core/src/object/tagged.rs:966:53
|
966 | pub const NIL: Object<'static> = Object::Symbol(sym::NIL);
| ^^^ use of undeclared crate or module `sym`
|
cannot find function `nil` in this scope:
crates/rune-core/src/object/tagged.rs#L881
error[E0425]: cannot find function `nil` in this scope
--> crates/rune-core/src/object/tagged.rs:881:26
|
881 | unsafe { cast_gc(nil()) }
| ^^^ not found in this scope
|
failed to resolve: use of undeclared crate or module `sym`:
crates/rune-core/src/object/tagged.rs#L490
error[E0433]: failed to resolve: use of undeclared crate or module `sym`
--> crates/rune-core/src/object/tagged.rs:490:58
|
490 | List::Nil => unsafe { cast_gc(TaggedPtr::tag(sym::NIL)) },
| ^^^ use of undeclared crate or module `sym`
|
failed to resolve: use of undeclared crate or module `sym`:
crates/rune-core/src/object/tagged.rs#L229
error[E0433]: failed to resolve: use of undeclared crate or module `sym`
--> crates/rune-core/src/object/tagged.rs:229:37
|
229 | unsafe { Self::Out::tag_ptr(sym::NIL.get_ptr()) }
| ^^^ use of undeclared crate or module `sym`
|
cannot find function `nil` in this scope:
crates/rune-core/src/object/tagged.rs#L200
error[E0425]: cannot find function `nil` in this scope
--> crates/rune-core/src/object/tagged.rs:200:21
|
200 | None => nil(),
| ^^^ not found in this scope
|
cannot find function `nil` in this scope:
crates/rune-core/src/object/tagged.rs#L37
error[E0425]: cannot find function `nil` in this scope
--> crates/rune-core/src/object/tagged.rs:37:21
|
37 | Self { ptr: nil().ptr }
| ^^^ not found in this scope
|
no method named `truncate` found for mutable reference `&mut env::stack::RootedLispStack` in the current scope:
crates/rune-core/src/env/stack.rs#L112
error[E0599]: no method named `truncate` found for mutable reference `&mut env::stack::RootedLispStack` in the current scope
--> crates/rune-core/src/env/stack.rs:112:14
|
112 | self.truncate(offset + 1);
| ^^^^^^^^ method not found in `&mut RootedLispStack`
|
help: one of the expressions' fields has a method of the same name
|
112 | self.frame_starts.truncate(offset + 1);
| +++++++++++++
|
no method named `push` found for mutable reference `&mut env::stack::RootedLispStack` in the current scope:
crates/rune-core/src/env/stack.rs#L105
error[E0599]: no method named `push` found for mutable reference `&mut env::stack::RootedLispStack` in the current scope
--> crates/rune-core/src/env/stack.rs:105:18
|
105 | self.push(nil());
| ^^^^
|
help: one of the expressions' fields has a method of the same name
|
105 | self.frame_starts.push(nil());
| +++++++++++++
help: there is a method with a similar name
|
105 | self.push_ref(nil());
| ~~~~~~~~
|
no method named `swap_remove` found for mutable reference `&mut env::stack::RootedLispStack` in the current scope:
crates/rune-core/src/env/stack.rs#L100
error[E0599]: no method named `swap_remove` found for mutable reference `&mut env::stack::RootedLispStack` in the current scope
--> crates/rune-core/src/env/stack.rs:100:14
|
100 | self.swap_remove(index);
| ^^^^^^^^^^^ method not found in `&mut RootedLispStack`
|
help: one of the expressions' fields has a method of the same name
|
100 | self.frame_starts.swap_remove(index);
| +++++++++++++
|
no method named `push` found for mutable reference `&mut env::stack::RootedLispStack` in the current scope:
crates/rune-core/src/env/stack.rs#L95
error[E0599]: no method named `push` found for mutable reference `&mut env::stack::RootedLispStack` in the current scope
--> crates/rune-core/src/env/stack.rs:95:14
|
95 | self.push(obj);
| ^^^^
|
help: one of the expressions' fields has a method of the same name
|
95 | self.frame_starts.push(obj);
| +++++++++++++
help: there is a method with a similar name
|
95 | self.push_ref(obj);
| ~~~~~~~~
|
no method named `len` found for reference `&env::stack::RootedLispStack` in the current scope:
crates/rune-core/src/env/stack.rs#L88
error[E0599]: no method named `len` found for reference `&env::stack::RootedLispStack` in the current scope
--> crates/rune-core/src/env/stack.rs:88:29
|
88 | let from_end = self.len() - (i + 1);
| ^^^ method not found in `&RootedLispStack`
|
= help: items from traits can only be used if the trait is implemented and in scope
= note: the following trait defines an item `len`, perhaps you need to implement it:
candidate #1: `std::iter::ExactSizeIterator`
help: one of the expressions' fields has a method of the same name
|
88 | let from_end = self.frame_starts.len() - (i + 1);
| +++++++++++++
|
no method named `len` found for reference `&env::stack::RootedLispStack` in the current scope:
crates/rune-core/src/env/stack.rs#L87
error[E0599]: no method named `len` found for reference `&env::stack::RootedLispStack` in the current scope
--> crates/rune-core/src/env/stack.rs:87:26
|
87 | assert!(i < self.len());
| ^^^ method not found in `&RootedLispStack`
|
= help: items from traits can only be used if the trait is implemented and in scope
= note: the following trait defines an item `len`, perhaps you need to implement it:
candidate #1: `std::iter::ExactSizeIterator`
help: one of the expressions' fields has a method of the same name
|
87 | assert!(i < self.frame_starts.len());
| +++++++++++++
|
no method named `last_mut` found for mutable reference `&mut env::stack::RootedLispStack` in the current scope:
crates/rune-core/src/env/stack.rs#L83
error[E0599]: no method named `last_mut` found for mutable reference `&mut env::stack::RootedLispStack` in the current scope
--> crates/rune-core/src/env/stack.rs:83:14
|
83 | self.last_mut().unwrap()
| ^^^^^^^^ method not found in `&mut RootedLispStack`
|
help: one of the expressions' fields has a method of the same name
|
83 | self.frame_starts.last_mut().unwrap()
| +++++++++++++
|
no method named `bind_mut` found for mutable reference `&mut env::stack::RootedLispStack` in the current scope:
crates/rune-core/src/env/stack.rs#L79
error[E0599]: no method named `bind_mut` found for mutable reference `&mut env::stack::RootedLispStack` in the current scope
--> crates/rune-core/src/env/stack.rs:79:14
|
79 | self.bind_mut(cx).pop().unwrap()
| ^^^^^^^^ method not found in `&mut RootedLispStack`
|
the method `len` exists for mutable reference `&mut RootedLispStack`, but its trait bounds were not satisfied:
crates/rune-core/src/env/stack.rs#L68
error[E0599]: the method `len` exists for mutable reference `&mut RootedLispStack`, but its trait bounds were not satisfied
--> crates/rune-core/src/env/stack.rs:68:31
|
10 | #[derive(Debug, Default, Trace)]
| ----- doesn't satisfy `_: ExactSizeIterator`
...
68 | assert!(start <= self.len());
| ^^^ method cannot be called on `&mut RootedLispStack` due to unsatisfied trait bounds
|
= note: the following trait bounds were not satisfied:
`env::stack::RootedLispStack: std::iter::ExactSizeIterator`
which is required by `&mut env::stack::RootedLispStack: std::iter::ExactSizeIterator`
note: the trait `std::iter::ExactSizeIterator` must be implemented
--> /rustc/a28077b28a02b92985b3a3faecf92813155f1ea1/library/core/src/iter/traits/exact_size.rs:86:1
= help: items from traits can only be used if the trait is implemented and in scope
= note: the following trait defines an item `len`, perhaps you need to implement it:
candidate #1: `std::iter::ExactSizeIterator`
|
no method named `len` found for reference `&env::stack::RootedLispStack` in the current scope:
crates/rune-core/src/env/stack.rs#L60
error[E0599]: no method named `len` found for reference `&env::stack::RootedLispStack` in the current scope
--> crates/rune-core/src/env/stack.rs:60:24
|
60 | let end = self.len() - index.end;
| ^^^ method not found in `&RootedLispStack`
|
= help: items from traits can only be used if the trait is implemented and in scope
= note: the following trait defines an item `len`, perhaps you need to implement it:
candidate #1: `std::iter::ExactSizeIterator`
help: one of the expressions' fields has a method of the same name
|
60 | let end = self.frame_starts.len() - index.end;
| +++++++++++++
|
no method named `len` found for reference `&env::stack::RootedLispStack` in the current scope:
crates/rune-core/src/env/stack.rs#L59
error[E0599]: no method named `len` found for reference `&env::stack::RootedLispStack` in the current scope
--> crates/rune-core/src/env/stack.rs:59:35
|
59 | assert!(index.end <= self.len());
| ^^^ method not found in `&RootedLispStack`
|
= help: items from traits can only be used if the trait is implemented and in scope
= note: the following trait defines an item `len`, perhaps you need to implement it:
candidate #1: `std::iter::ExactSizeIterator`
help: one of the expressions' fields has a method of the same name
|
59 | assert!(index.end <= self.frame_starts.len());
| +++++++++++++
|
mismatched types:
crates/rune-core/src/error.rs#L64
error[E0308]: mismatched types
--> crates/rune-core/src/error.rs:64:29
|
64 | self.backtrace.push(format!("{name} {display}").into_boxed_str());
| ---- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `String`, found `Box<str>`
| |
| arguments to this method are incorrect
|
= note: expected struct `std::string::String`
found struct `std::boxed::Box<str>`
note: method defined here
--> /rustc/a28077b28a02b92985b3a3faecf92813155f1ea1/library/alloc/src/vec/mod.rs:1878:12
help: try removing the method call
|
64 - self.backtrace.push(format!("{name} {display}").into_boxed_str());
64 + self.backtrace.push(format!("{name} {display}"));
|
|
mismatched types:
crates/rune-core/src/error.rs#L59
error[E0308]: mismatched types
--> crates/rune-core/src/error.rs:59:32
|
59 | Self { backtrace: vec![trace], error: ErrorType::Err(error) }
| ^^^^^- help: try using a conversion method: `.to_string()`
| |
| expected `String`, found `Box<str>`
|
= note: expected struct `std::string::String`
found struct `std::boxed::Box<str>`
|
unresolved import `crate::object::nil`:
crates/rune-core/src/object/stack.rs#L4
error[E0432]: unresolved import `crate::object::nil`
--> crates/rune-core/src/object/stack.rs:4:21
|
4 | use crate::object::{nil, GcObj};
| ^^^ no `nil` in `object`
|
unresolved imports `super::nil`, `super::qtrue`:
crates/rune-core/src/object/convert.rs#L7
error[E0432]: unresolved imports `super::nil`, `super::qtrue`
--> crates/rune-core/src/object/convert.rs:7:5
|
7 | nil, qtrue, LispHashTable, LispString, LispVec,
| ^^^ ^^^^^ no `qtrue` in `object`
| |
| no `nil` in `object`
|
unresolved import `crate::env::sym`:
crates/rune-core/src/env/symbol.rs#L4
error[E0432]: unresolved import `crate::env::sym`
--> crates/rune-core/src/env/symbol.rs:4:17
|
4 | use crate::env::sym::BUILTIN_SYMBOLS;
| ^^^ could not find `sym` in `env`
|
unresolved import `crate::object::nil`:
crates/rune-core/src/cons.rs#L5
error[E0432]: unresolved import `crate::object::nil`
--> crates/rune-core/src/cons.rs:5:21
|
5 | use crate::object::{nil, CloneIn, Gc, GcObj, IntoObject, ObjCell, Object, RawObj};
| ^^^ no `nil` in `object`
|
failed to resolve: could not find `core` in the crate root:
crates/rune-core/src/env/stack.rs#L5
error[E0433]: failed to resolve: could not find `core` in the crate root
--> crates/rune-core/src/env/stack.rs:5:12
|
5 | use crate::core::{
| ^^^^ could not find `core` in the crate root
|
macos-latest / stable
Process completed with exit code 101.
|
cannot find function `nil` in this scope:
crates/rune-core/src/object/tagged.rs#L1423
error[E0425]: cannot find function `nil` in this scope
--> crates/rune-core/src/object/tagged.rs:1423:26
|
1423 | List::Nil => nil(),
| ^^^ not found in this scope
|
cannot find function `nil` in this scope:
crates/rune-core/src/object/tagged.rs#L1311
error[E0425]: cannot find function `nil` in this scope
--> crates/rune-core/src/object/tagged.rs:1311:9
|
1311 | nil()
| ^^^ not found in this scope
|
cannot find function `nil` in this scope:
crates/rune-core/src/object/tagged.rs#L881
error[E0425]: cannot find function `nil` in this scope
--> crates/rune-core/src/object/tagged.rs:881:26
|
881 | unsafe { cast_gc(nil()) }
| ^^^ not found in this scope
|
cannot find function `nil` in this scope:
crates/rune-core/src/object/tagged.rs#L200
error[E0425]: cannot find function `nil` in this scope
--> crates/rune-core/src/object/tagged.rs:200:21
|
200 | None => nil(),
| ^^^ not found in this scope
|
cannot find function `nil` in this scope:
crates/rune-core/src/object/tagged.rs#L37
error[E0425]: cannot find function `nil` in this scope
--> crates/rune-core/src/object/tagged.rs:37:21
|
37 | Self { ptr: nil().ptr }
| ^^^ not found in this scope
|
failed to resolve: use of undeclared crate or module `sym`:
crates/rune-core/src/object/tagged.rs#L1298
error[E0433]: failed to resolve: use of undeclared crate or module `sym`
--> crates/rune-core/src/object/tagged.rs:1298:51
|
1298 | matches!(self.untag(), Object::Symbol(sym::NIL))
| ^^^ use of undeclared crate or module `sym`
|
failed to resolve: use of undeclared crate or module `sym`:
crates/rune-core/src/object/tagged.rs#L1296
error[E0433]: failed to resolve: use of undeclared crate or module `sym`
--> crates/rune-core/src/object/tagged.rs:1296:51
|
1296 | matches!(self.untag(), Object::Symbol(sym::TRUE))
| ^^^ use of undeclared crate or module `sym`
|
failed to resolve: use of undeclared crate or module `sym`:
crates/rune-core/src/object/tagged.rs#L1158
error[E0433]: failed to resolve: use of undeclared crate or module `sym`
--> crates/rune-core/src/object/tagged.rs:1158:17
|
1158 | self == sym::NIL
| ^^^ use of undeclared crate or module `sym`
|
failed to resolve: use of undeclared crate or module `sym`:
crates/rune-core/src/object/tagged.rs#L967
error[E0433]: failed to resolve: use of undeclared crate or module `sym`
--> crates/rune-core/src/object/tagged.rs:967:54
|
967 | pub const TRUE: Object<'static> = Object::Symbol(sym::TRUE);
| ^^^ use of undeclared crate or module `sym`
|
failed to resolve: use of undeclared crate or module `sym`:
crates/rune-core/src/object/tagged.rs#L966
error[E0433]: failed to resolve: use of undeclared crate or module `sym`
--> crates/rune-core/src/object/tagged.rs:966:53
|
966 | pub const NIL: Object<'static> = Object::Symbol(sym::NIL);
| ^^^ use of undeclared crate or module `sym`
|
failed to resolve: use of undeclared crate or module `sym`:
crates/rune-core/src/object/tagged.rs#L490
error[E0433]: failed to resolve: use of undeclared crate or module `sym`
--> crates/rune-core/src/object/tagged.rs:490:58
|
490 | List::Nil => unsafe { cast_gc(TaggedPtr::tag(sym::NIL)) },
| ^^^ use of undeclared crate or module `sym`
|
failed to resolve: use of undeclared crate or module `sym`:
crates/rune-core/src/object/tagged.rs#L229
error[E0433]: failed to resolve: use of undeclared crate or module `sym`
--> crates/rune-core/src/object/tagged.rs:229:37
|
229 | unsafe { Self::Out::tag_ptr(sym::NIL.get_ptr()) }
| ^^^ use of undeclared crate or module `sym`
|
unresolved import `crate::object::nil`:
crates/rune-core/src/object/stack.rs#L4
error[E0432]: unresolved import `crate::object::nil`
--> crates/rune-core/src/object/stack.rs:4:21
|
4 | use crate::object::{nil, GcObj};
| ^^^ no `nil` in `object`
|
unresolved imports `super::nil`, `super::qtrue`:
crates/rune-core/src/object/convert.rs#L7
error[E0432]: unresolved imports `super::nil`, `super::qtrue`
--> crates/rune-core/src/object/convert.rs:7:5
|
7 | nil, qtrue, LispHashTable, LispString, LispVec,
| ^^^ ^^^^^ no `qtrue` in `object`
| |
| no `nil` in `object`
|
unresolved import `crate::env::sym`:
crates/rune-core/src/env/symbol.rs#L4
error[E0432]: unresolved import `crate::env::sym`
--> crates/rune-core/src/env/symbol.rs:4:17
|
4 | use crate::env::sym::BUILTIN_SYMBOLS;
| ^^^ could not find `sym` in `env`
|
unresolved import `crate::object::nil`:
crates/rune-core/src/cons.rs#L5
error[E0432]: unresolved import `crate::object::nil`
--> crates/rune-core/src/cons.rs:5:21
|
5 | use crate::object::{nil, CloneIn, Gc, GcObj, IntoObject, ObjCell, Object, RawObj};
| ^^^ no `nil` in `object`
|
failed to resolve: could not find `core` in the crate root:
crates/rune-core/src/env/stack.rs#L5
error[E0433]: failed to resolve: could not find `core` in the crate root
--> crates/rune-core/src/env/stack.rs:5:12
|
5 | use crate::core::{
| ^^^^ could not find `core` in the crate root
|
ubuntu / stable / minimal-versions
Process completed with exit code 1.
|
ubuntu / stable
Process completed with exit code 101.
|
ubuntu / stable / coverage
Process completed with exit code 1.
|
ubuntu / beta
The job was canceled because "stable" failed.
|
ubuntu / beta
The operation was canceled.
|
windows-latest / stable
Process completed with exit code 1.
|
`crate` references the macro call's crate:
crates/rune-core/src/macros.rs#L12
warning: `crate` references the macro call's crate
--> crates/rune-core/src/macros.rs:12:41
|
12 | 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
= 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)]`
|
`crate` references the macro call's crate:
crates/rune-core/src/macros.rs#L12
warning: `crate` references the macro call's crate
--> crates/rune-core/src/macros.rs:12:41
|
12 | 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
= 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)]`
|