Skip to content

Instantly share code, notes, and snippets.

@dhardy
Created August 28, 2019 20:14
Show Gist options
  • Save dhardy/6ac6c2b3015e67c69235820fde89b2f3 to your computer and use it in GitHub Desktop.
Save dhardy/6ac6c2b3015e67c69235820fde89b2f3 to your computer and use it in GitHub Desktop.
$ cargo test --features=alloc
Compiling nalgebra v0.18.1 (/home/dhardy/projects/nalgebra/nalgebra)
error[E0412]: cannot find type `Vec` in this scope
--> src/base/construction.rs:280:55
|
280 | pub fn from_vec_generic(nrows: R, ncols: C, data: Vec<N>) -> Self {
| ^^^ not found in this scope
help: possible candidates are found in other modules, you can import them into scope
|
6 | use alloc::prelude::v1::Vec;
|
6 | use alloc::vec::Vec;
|
error[E0412]: cannot find type `Vec` in this scope
--> src/base/construction.rs:687:54
|
687 | pub fn from_vec($($args: usize,)* $data: Vec<N>) -> Self {
| ^^^ not found in this scope
...
695 | / impl_constructors_from_data!(data; R, C; // Arguments for Matrix<N, ..., S>
696 | | => R: DimName, => C: DimName; // Type parameters for impl<N, ..., S>
697 | | R::name(), C::name(); // Arguments for `_generic` constructors.
698 | | ); // Arguments for non-generic constructors.
| |______________________________- in this macro invocation
help: possible candidates are found in other modules, you can import them into scope
|
6 | use alloc::prelude::v1::Vec;
|
6 | use alloc::vec::Vec;
|
error[E0412]: cannot find type `Vec` in this scope
--> src/base/construction.rs:687:54
|
687 | pub fn from_vec($($args: usize,)* $data: Vec<N>) -> Self {
| ^^^ not found in this scope
...
700 | / impl_constructors_from_data!(data; R, Dynamic;
701 | | => R: DimName;
702 | | R::name(), Dynamic::new(data.len() / R::dim());
703 | | );
| |______________________________- in this macro invocation
help: possible candidates are found in other modules, you can import them into scope
|
6 | use alloc::prelude::v1::Vec;
|
6 | use alloc::vec::Vec;
|
error[E0412]: cannot find type `Vec` in this scope
--> src/base/construction.rs:280:55
|
280 | pub fn from_vec_generic(nrows: R, ncols: C, data: Vec<N>) -> Self {
| ^^^ not found in this scope
help: possible candidates are found in other modules, you can import them into scope
|
6 | use alloc::prelude::v1::Vec;
|
6 | use alloc::vec::Vec;
|
error[E0412]: cannot find type `Vec` in this scope
--> src/base/construction.rs:687:54
|
687 | pub fn from_vec($($args: usize,)* $data: Vec<N>) -> Self {
| ^^^ not found in this scope
...
695 | / impl_constructors_from_data!(data; R, C; // Arguments for Matrix<N, ..., S>
696 | | => R: DimName, => C: DimName; // Type parameters for impl<N, ..., S>
697 | | R::name(), C::name(); // Arguments for `_generic` constructors.
698 | | ); // Arguments for non-generic constructors.
| |______________________________- in this macro invocation
help: possible candidates are found in other modules, you can import them into scope
|
6 | use alloc::prelude::v1::Vec;
|
6 | use alloc::vec::Vec;
|
error[E0412]: cannot find type `Vec` in this scope
--> src/base/construction.rs:687:54
|
687 | pub fn from_vec($($args: usize,)* $data: Vec<N>) -> Self {
| ^^^ not found in this scope
...
705 | / impl_constructors_from_data!(data; Dynamic, C;
706 | | => C: DimName;
707 | | Dynamic::new(data.len() / C::dim()), C::name();
708 | | );
| |______________________________- in this macro invocation
help: possible candidates are found in other modules, you can import them into scope
|
6 | use alloc::prelude::v1::Vec;
|
6 | use alloc::vec::Vec;
|
error[E0412]: cannot find type `Vec` in this scope
--> src/base/construction.rs:687:54
|
687 | pub fn from_vec($($args: usize,)* $data: Vec<N>) -> Self {
| ^^^ not found in this scope
...
700 | / impl_constructors_from_data!(data; R, Dynamic;
701 | | => R: DimName;
702 | | R::name(), Dynamic::new(data.len() / R::dim());
703 | | );
| |______________________________- in this macro invocation
help: possible candidates are found in other modules, you can import them into scope
|
6 | use alloc::prelude::v1::Vec;
|
6 | use alloc::vec::Vec;
|
error[E0412]: cannot find type `Vec` in this scope
--> src/base/construction.rs:687:54
|
687 | pub fn from_vec($($args: usize,)* $data: Vec<N>) -> Self {
| ^^^ not found in this scope
...
710 | / impl_constructors_from_data!(data; Dynamic, Dynamic;
711 | | ;
712 | | Dynamic::new(nrows), Dynamic::new(ncols);
713 | | nrows, ncols);
| |__________________________________________- in this macro invocation
help: possible candidates are found in other modules, you can import them into scope
|
6 | use alloc::prelude::v1::Vec;
|
6 | use alloc::vec::Vec;
|
error[E0412]: cannot find type `Vec` in this scope
--> src/base/construction.rs:687:54
|
687 | pub fn from_vec($($args: usize,)* $data: Vec<N>) -> Self {
| ^^^ not found in this scope
...
705 | / impl_constructors_from_data!(data; Dynamic, C;
706 | | => C: DimName;
707 | | Dynamic::new(data.len() / C::dim()), C::name();
708 | | );
| |______________________________- in this macro invocation
help: possible candidates are found in other modules, you can import them into scope
|
6 | use alloc::prelude::v1::Vec;
|
6 | use alloc::vec::Vec;
|
error[E0412]: cannot find type `Vec` in this scope
--> src/base/construction.rs:687:54
|
687 | pub fn from_vec($($args: usize,)* $data: Vec<N>) -> Self {
| ^^^ not found in this scope
...
710 | / impl_constructors_from_data!(data; Dynamic, Dynamic;
711 | | ;
712 | | Dynamic::new(nrows), Dynamic::new(ncols);
713 | | nrows, ncols);
| |__________________________________________- in this macro invocation
help: possible candidates are found in other modules, you can import them into scope
|
6 | use alloc::prelude::v1::Vec;
|
6 | use alloc::vec::Vec;
|
error: aborting due to 5 previous errors
For more information about this error, try `rustc --explain E0412`.
error: aborting due to 5 previous errors
For more information about this error, try `rustc --explain E0412`.
error: Could not compile `nalgebra`.
warning: build failed, waiting for other jobs to finish...
error: Could not compile `nalgebra`.
To learn more, run the command again with --verbose.
$ cargo test --features=std
Compiling num-traits v0.2.8
Compiling typenum v1.11.2
Compiling serde v1.0.99
Compiling rand_chacha v0.2.1
Compiling rand v0.7.0
Compiling generic-array v0.12.3
Compiling num-integer v0.1.41
Compiling approx v0.3.2
Compiling num-complex v0.2.3
Compiling num-rational v0.2.2
Compiling rand_distr v0.2.1
Compiling alga v0.9.1
Compiling nalgebra v0.18.1 (/home/dhardy/projects/nalgebra/nalgebra)
error: cannot find macro `format!` in this scope
--> src/base/matrix.rs:1372:36
|
1372 | Some(precision) => format!("{:.1$}", val, precision).chars().count(),
| ^^^^^^
error: cannot find macro `format!` in this scope
--> src/base/matrix.rs:1373:25
|
1373 | None => format!("{}", val).chars().count(),
| ^^^^^^
error[E0412]: cannot find type `Vec` in this scope
--> src/base/construction.rs:280:55
|
280 | pub fn from_vec_generic(nrows: R, ncols: C, data: Vec<N>) -> Self {
| ^^^ not found in this scope
help: possible candidates are found in other modules, you can import them into scope
|
6 | use alloc::prelude::v1::Vec;
|
6 | use alloc::vec::Vec;
|
6 | use std::prelude::v1::Vec;
|
6 | use std::vec::Vec;
|
error[E0412]: cannot find type `Vec` in this scope
--> src/base/construction.rs:687:54
|
687 | pub fn from_vec($($args: usize,)* $data: Vec<N>) -> Self {
| ^^^ not found in this scope
...
695 | / impl_constructors_from_data!(data; R, C; // Arguments for Matrix<N, ..., S>
696 | | => R: DimName, => C: DimName; // Type parameters for impl<N, ..., S>
697 | | R::name(), C::name(); // Arguments for `_generic` constructors.
698 | | ); // Arguments for non-generic constructors.
| |______________________________- in this macro invocation
help: possible candidates are found in other modules, you can import them into scope
|
6 | use alloc::prelude::v1::Vec;
|
6 | use alloc::vec::Vec;
|
6 | use std::prelude::v1::Vec;
|
6 | use std::vec::Vec;
|
error[E0412]: cannot find type `Vec` in this scope
--> src/base/construction.rs:687:54
|
687 | pub fn from_vec($($args: usize,)* $data: Vec<N>) -> Self {
| ^^^ not found in this scope
...
700 | / impl_constructors_from_data!(data; R, Dynamic;
701 | | => R: DimName;
702 | | R::name(), Dynamic::new(data.len() / R::dim());
703 | | );
| |______________________________- in this macro invocation
help: possible candidates are found in other modules, you can import them into scope
|
6 | use alloc::prelude::v1::Vec;
|
6 | use alloc::vec::Vec;
|
6 | use std::prelude::v1::Vec;
|
6 | use std::vec::Vec;
|
error[E0412]: cannot find type `Vec` in this scope
--> src/base/construction.rs:687:54
|
687 | pub fn from_vec($($args: usize,)* $data: Vec<N>) -> Self {
| ^^^ not found in this scope
...
705 | / impl_constructors_from_data!(data; Dynamic, C;
706 | | => C: DimName;
707 | | Dynamic::new(data.len() / C::dim()), C::name();
708 | | );
| |______________________________- in this macro invocation
help: possible candidates are found in other modules, you can import them into scope
|
6 | use alloc::prelude::v1::Vec;
|
6 | use alloc::vec::Vec;
|
6 | use std::prelude::v1::Vec;
|
6 | use std::vec::Vec;
|
error[E0412]: cannot find type `Vec` in this scope
--> src/base/construction.rs:687:54
|
687 | pub fn from_vec($($args: usize,)* $data: Vec<N>) -> Self {
| ^^^ not found in this scope
...
710 | / impl_constructors_from_data!(data; Dynamic, Dynamic;
711 | | ;
712 | | Dynamic::new(nrows), Dynamic::new(ncols);
713 | | nrows, ncols);
| |__________________________________________- in this macro invocation
help: possible candidates are found in other modules, you can import them into scope
|
6 | use alloc::prelude::v1::Vec;
|
6 | use alloc::vec::Vec;
|
6 | use std::prelude::v1::Vec;
|
6 | use std::vec::Vec;
|
Compiling serde_json v1.0.40
error: cannot find macro `format!` in this scope
--> src/base/matrix.rs:1372:36
|
1372 | Some(precision) => format!("{:.1$}", val, precision).chars().count(),
| ^^^^^^
error: cannot find macro `format!` in this scope
--> src/base/matrix.rs:1373:25
|
1373 | None => format!("{}", val).chars().count(),
| ^^^^^^
error[E0412]: cannot find type `Vec` in this scope
--> src/base/construction.rs:280:55
|
280 | pub fn from_vec_generic(nrows: R, ncols: C, data: Vec<N>) -> Self {
| ^^^ not found in this scope
help: possible candidates are found in other modules, you can import them into scope
|
6 | use alloc::prelude::v1::Vec;
|
6 | use alloc::vec::Vec;
|
6 | use std::prelude::v1::Vec;
|
6 | use std::vec::Vec;
|
error[E0412]: cannot find type `Vec` in this scope
--> src/base/construction.rs:687:54
|
687 | pub fn from_vec($($args: usize,)* $data: Vec<N>) -> Self {
| ^^^ not found in this scope
...
695 | / impl_constructors_from_data!(data; R, C; // Arguments for Matrix<N, ..., S>
696 | | => R: DimName, => C: DimName; // Type parameters for impl<N, ..., S>
697 | | R::name(), C::name(); // Arguments for `_generic` constructors.
698 | | ); // Arguments for non-generic constructors.
| |______________________________- in this macro invocation
help: possible candidates are found in other modules, you can import them into scope
|
6 | use alloc::prelude::v1::Vec;
|
6 | use alloc::vec::Vec;
|
6 | use std::prelude::v1::Vec;
|
6 | use std::vec::Vec;
|
error[E0412]: cannot find type `Vec` in this scope
--> src/base/construction.rs:687:54
|
687 | pub fn from_vec($($args: usize,)* $data: Vec<N>) -> Self {
| ^^^ not found in this scope
...
700 | / impl_constructors_from_data!(data; R, Dynamic;
701 | | => R: DimName;
702 | | R::name(), Dynamic::new(data.len() / R::dim());
703 | | );
| |______________________________- in this macro invocation
help: possible candidates are found in other modules, you can import them into scope
|
6 | use alloc::prelude::v1::Vec;
|
6 | use alloc::vec::Vec;
|
6 | use std::prelude::v1::Vec;
|
6 | use std::vec::Vec;
|
error[E0412]: cannot find type `Vec` in this scope
--> src/base/construction.rs:687:54
|
687 | pub fn from_vec($($args: usize,)* $data: Vec<N>) -> Self {
| ^^^ not found in this scope
...
705 | / impl_constructors_from_data!(data; Dynamic, C;
706 | | => C: DimName;
707 | | Dynamic::new(data.len() / C::dim()), C::name();
708 | | );
| |______________________________- in this macro invocation
help: possible candidates are found in other modules, you can import them into scope
|
6 | use alloc::prelude::v1::Vec;
|
6 | use alloc::vec::Vec;
|
6 | use std::prelude::v1::Vec;
|
6 | use std::vec::Vec;
|
error[E0412]: cannot find type `Vec` in this scope
--> src/base/construction.rs:687:54
|
687 | pub fn from_vec($($args: usize,)* $data: Vec<N>) -> Self {
| ^^^ not found in this scope
...
710 | / impl_constructors_from_data!(data; Dynamic, Dynamic;
711 | | ;
712 | | Dynamic::new(nrows), Dynamic::new(ncols);
713 | | nrows, ncols);
| |__________________________________________- in this macro invocation
help: possible candidates are found in other modules, you can import them into scope
|
6 | use alloc::prelude::v1::Vec;
|
6 | use alloc::vec::Vec;
|
6 | use std::prelude::v1::Vec;
|
6 | use std::vec::Vec;
|
error: aborting due to 7 previous errors
For more information about this error, try `rustc --explain E0412`.
error: Could not compile `nalgebra`.
warning: build failed, waiting for other jobs to finish...
error: aborting due to 7 previous errors
For more information about this error, try `rustc --explain E0412`.
error: Could not compile `nalgebra`.
To learn more, run the command again with --verbose.
$ cargo test --features=std
Compiling libc v0.2.62
Compiling getrandom v0.1.11
Compiling rand_os v0.1.3
Compiling rand_core v0.5.1
Compiling rand v0.6.5
Compiling rand_pcg v0.2.0
Compiling rand_chacha v0.2.1
Compiling rand_isaac v0.2.0
Compiling rand v0.7.0
Compiling rand_distr v0.2.1
error[E0432]: unresolved import `rand::distributions::hidden_export`
--> /home/dhardy/.cargo/registry/src/github.com-1ecc6299db9ec823/rand_distr-0.2.1/src/utils.rs:13:26
|
13 | use rand::distributions::hidden_export::IntoFloat;
| ^^^^^^^^^^^^^ could not find `hidden_export` in `distributions`
error[E0603]: module `weighted` is private
--> /home/dhardy/.cargo/registry/src/github.com-1ecc6299db9ec823/rand_distr-0.2.1/src/lib.rs:64:70
|
64 | Alphanumeric, Uniform, OpenClosed01, Open01, Bernoulli, uniform, weighted};
| ^^^^^^^^
error[E0599]: no method named `into_float_with_exponent` found for type `u64` in the current scope
--> /home/dhardy/.cargo/registry/src/github.com-1ecc6299db9ec823/rand_distr-0.2.1/src/utils.rs:212:26
|
212 | (bits >> 12).into_float_with_exponent(1) - 3.0
| ^^^^^^^^^^^^^^^^^^^^^^^^
error[E0599]: no method named `into_float_with_exponent` found for type `u64` in the current scope
--> /home/dhardy/.cargo/registry/src/github.com-1ecc6299db9ec823/rand_distr-0.2.1/src/utils.rs:215:26
|
215 | (bits >> 12).into_float_with_exponent(0)
| ^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to 4 previous errors
Some errors have detailed explanations: E0432, E0599, E0603.
For more information about an error, try `rustc --explain E0432`.
error: Could not compile `rand_distr`.
warning: build failed, waiting for other jobs to finish...
error: build failed
$ cargo update
Updating crates.io index
Updating aho-corasick v0.7.4 -> v0.7.6
Updating autocfg v0.1.5 -> v0.1.6
Updating cc v1.0.38 -> v1.0.41
Updating cmake v0.1.40 -> v0.1.42
Updating lazy_static v1.3.0 -> v1.4.0
Updating log v0.4.7 -> v0.4.8
Updating maplit v1.0.1 -> v1.0.2
Updating opaque-debug v0.2.2 -> v0.2.3
Adding proc-macro2 v1.0.1
Adding quote v1.0.2
Updating rand_core v0.4.0 -> v0.4.2
Updating regex v1.2.0 -> v1.2.1
Updating regex-syntax v0.6.10 -> v0.6.11
Updating serde v1.0.97 -> v1.0.99
Updating serde_derive v1.0.97 -> v1.0.99
Removing syn v0.15.42
Adding syn v0.15.44
Adding syn v1.0.5
Updating typenum v1.10.0 -> v1.11.2
Removing ucd-util v0.1.5
Adding unicode-xid v0.2.0
Removing utf8-ranges v1.0.3
Updating winapi v0.3.7 -> v0.3.8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment