Skip to content

Instantly share code, notes, and snippets.

@ennis
Created May 17, 2018 10:27
Show Gist options
  • Save ennis/d8a52edd3d831922d046a558906172be to your computer and use it in GitHub Desktop.
Save ennis/d8a52edd3d831922d046a558906172be to your computer and use it in GitHub Desktop.
Compiling nalgebra v0.14.3 (file:///disc/devel/nalgebra)
warning: duplicate definitions with name `new` (E0592)
--> src/core/construction.rs:489:13
|
489 | / pub fn new($($args: N),*) -> Self {
490 | | unsafe {
491 | | let mut res = Self::new_uninitialized();
492 | | $( *res.get_unchecked_mut($irow, $icol) = $args; )*
... |
495 | | }
496 | | }
| |_____________^ duplicate definitions for `new`
...
501 | / componentwise_constructors_impl!(
502 | | /*
503 | | * Square matrices 1 .. 6.
504 | | */
... |
643 | | U6, U1, x:(0,0), y:(1,0), z:(2,0), w:(3,0), a:(4,0), b:(5,0);
644 | | );
| |__- in this macro invocation
|
::: src/core/construction_slice_deprecated.rs:171:13
|
171 | / pub fn new(data: &'a [N], $($args: usize),*) -> Self {
172 | | Self::from_slice_generic(data, $($gargs),*)
173 | | }
| |_____________- other definition for `new`
|
note: lint level defined here
--> src/lib.rs:85:9
|
85 | #![warn(incoherent_fundamental_impls)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #46205 <https://github.com/rust-lang/rust/issues/46205>
warning: duplicate definitions with name `new` (E0592)
--> src/core/construction.rs:489:13
|
489 | / pub fn new($($args: N),*) -> Self {
490 | | unsafe {
491 | | let mut res = Self::new_uninitialized();
492 | | $( *res.get_unchecked_mut($irow, $icol) = $args; )*
... |
495 | | }
496 | | }
| |_____________^ duplicate definitions for `new`
...
501 | / componentwise_constructors_impl!(
502 | | /*
503 | | * Square matrices 1 .. 6.
504 | | */
... |
643 | | U6, U1, x:(0,0), y:(1,0), z:(2,0), w:(3,0), a:(4,0), b:(5,0);
644 | | );
| |__- in this macro invocation
|
::: src/core/construction_slice_deprecated.rs:232:13
|
232 | / pub fn new(data: &'a mut [N], $($args: usize),*) -> Self {
233 | | Self::from_slice_generic(data, $($gargs),*)
234 | | }
| |_____________- other definition for `new`
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #46205 <https://github.com/rust-lang/rust/issues/46205>
warning: duplicate definitions with name `new` (E0592)
--> src/core/construction.rs:489:13
|
489 | / pub fn new($($args: N),*) -> Self {
490 | | unsafe {
491 | | let mut res = Self::new_uninitialized();
492 | | $( *res.get_unchecked_mut($irow, $icol) = $args; )*
... |
495 | | }
496 | | }
| |_____________^ duplicate definitions for `new`
...
501 | / componentwise_constructors_impl!(
502 | | /*
503 | | * Square matrices 1 .. 6.
504 | | */
... |
643 | | U6, U1, x:(0,0), y:(1,0), z:(2,0), w:(3,0), a:(4,0), b:(5,0);
644 | | );
| |__- in this macro invocation
|
::: src/core/construction_slice_deprecated.rs:171:13
|
171 | / pub fn new(data: &'a [N], $($args: usize),*) -> Self {
172 | | Self::from_slice_generic(data, $($gargs),*)
173 | | }
| |_____________- other definition for `new`
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #46205 <https://github.com/rust-lang/rust/issues/46205>
error[E0308]: mismatched types
--> src/geometry/point_ops.rs:81:5
|
81 | &self.coords - &right.coords; 'a, 'b);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `core::dimension::U1`, found associated type
|
::: src/geometry/op_macros.rs:160:41
|
160 | fn $op($lhs, $rhs: $Rhs) -> Self::Output {
| ------------ expected `core::matrix::Matrix<N, <core::constraint::ShapeConstraint as core::constraint::SameNumberOfRows<D, D>>::Representative, core::dimension::U1, <core::default_allocator::DefaultAllocator as core::allocator::Allocator<N, <core::constraint::ShapeConstraint as core::constraint::SameNumberOfRows<D, D>>::Representative, <core::constraint::ShapeConstraint as core::constraint::SameNumberOfColumns<core::dimension::U1, core::dimension::U1>>::Representative>>::Buffer>` because of return type
|
= note: expected type `core::matrix::Matrix<_, _, core::dimension::U1, _>`
found type `core::matrix::Matrix<_, _, <core::constraint::ShapeConstraint as core::constraint::SameNumberOfColumns<core::dimension::U1, core::dimension::U1>>::Representative, _>`
error[E0308]: mismatched types
--> src/geometry/point_ops.rs:86:5
|
86 | &self.coords - right.coords; 'a);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `core::dimension::U1`, found associated type
|
::: src/geometry/op_macros.rs:160:41
|
160 | fn $op($lhs, $rhs: $Rhs) -> Self::Output {
| ------------ expected `core::matrix::Matrix<N, <core::constraint::ShapeConstraint as core::constraint::SameNumberOfRows<D, D>>::Representative, core::dimension::U1, <core::default_allocator::DefaultAllocator as core::allocator::Allocator<N, <core::constraint::ShapeConstraint as core::constraint::SameNumberOfRows<D, D>>::Representative, <core::constraint::ShapeConstraint as core::constraint::SameNumberOfColumns<core::dimension::U1, core::dimension::U1>>::Representative>>::Buffer>` because of return type
|
= note: expected type `core::matrix::Matrix<_, _, core::dimension::U1, _>`
found type `core::matrix::Matrix<_, _, <core::constraint::ShapeConstraint as core::constraint::SameNumberOfColumns<core::dimension::U1, core::dimension::U1>>::Representative, _>`
error[E0308]: mismatched types
--> src/geometry/point_ops.rs:91:5
|
91 | self.coords - &right.coords; 'b);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `core::dimension::U1`, found associated type
|
::: src/geometry/op_macros.rs:160:41
|
160 | fn $op($lhs, $rhs: $Rhs) -> Self::Output {
| ------------ expected `core::matrix::Matrix<N, <core::constraint::ShapeConstraint as core::constraint::SameNumberOfRows<D, D>>::Representative, core::dimension::U1, <core::default_allocator::DefaultAllocator as core::allocator::Allocator<N, <core::constraint::ShapeConstraint as core::constraint::SameNumberOfRows<D, D>>::Representative, <core::constraint::ShapeConstraint as core::constraint::SameNumberOfColumns<core::dimension::U1, core::dimension::U1>>::Representative>>::Buffer>` because of return type
|
= note: expected type `core::matrix::Matrix<_, _, core::dimension::U1, _>`
found type `core::matrix::Matrix<_, _, <core::constraint::ShapeConstraint as core::constraint::SameNumberOfColumns<core::dimension::U1, core::dimension::U1>>::Representative, _>`
error[E0308]: mismatched types
--> src/geometry/point_ops.rs:96:5
|
96 | self.coords - right.coords; );
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `core::dimension::U1`, found associated type
|
::: src/geometry/op_macros.rs:160:41
|
160 | fn $op($lhs, $rhs: $Rhs) -> Self::Output {
| ------------ expected `core::matrix::Matrix<N, <core::constraint::ShapeConstraint as core::constraint::SameNumberOfRows<D, D>>::Representative, core::dimension::U1, <core::default_allocator::DefaultAllocator as core::allocator::Allocator<N, <core::constraint::ShapeConstraint as core::constraint::SameNumberOfRows<D, D>>::Representative, <core::constraint::ShapeConstraint as core::constraint::SameNumberOfColumns<core::dimension::U1, core::dimension::U1>>::Representative>>::Buffer>` because of return type
|
= note: expected type `core::matrix::Matrix<_, _, core::dimension::U1, _>`
found type `core::matrix::Matrix<_, _, <core::constraint::ShapeConstraint as core::constraint::SameNumberOfColumns<core::dimension::U1, core::dimension::U1>>::Representative, _>`
error[E0308]: mismatched types
--> src/geometry/point_ops.rs:102:36
|
102 | Self::Output::from_coordinates(&self.coords - right); 'a, 'b);
| ^^^^^^^^^^^^^^^^^^^^ expected struct `core::dimension::U1`, found associated type
|
= note: expected type `core::matrix::Matrix<_, _, core::dimension::U1, <core::default_allocator::DefaultAllocator as core::allocator::Allocator<N, D1>>::Buffer>`
found type `core::matrix::Matrix<_, _, <core::constraint::ShapeConstraint as core::constraint::SameNumberOfColumns<core::dimension::U1, core::dimension::U1>>::Representative, <core::default_allocator::DefaultAllocator as core::allocator::Allocator<N, D1, <core::constraint::ShapeConstraint as core::constraint::SameNumberOfColumns<core::dimension::U1, core::dimension::U1>>::Representative>>::Buffer>`
error[E0308]: mismatched types
--> src/geometry/point_ops.rs:107:36
|
107 | Self::Output::from_coordinates(&self.coords - &right); 'a); // FIXME: should not be a ref to `right`.
| ^^^^^^^^^^^^^^^^^^^^^ expected struct `core::dimension::U1`, found associated type
|
= note: expected type `core::matrix::Matrix<_, _, core::dimension::U1, <core::default_allocator::DefaultAllocator as core::allocator::Allocator<N, D1>>::Buffer>`
found type `core::matrix::Matrix<_, _, <core::constraint::ShapeConstraint as core::constraint::SameNumberOfColumns<core::dimension::U1, core::dimension::U1>>::Representative, <core::default_allocator::DefaultAllocator as core::allocator::Allocator<N, D1, <core::constraint::ShapeConstraint as core::constraint::SameNumberOfColumns<core::dimension::U1, core::dimension::U1>>::Representative>>::Buffer>`
error[E0308]: mismatched types
--> src/geometry/point_ops.rs:112:36
|
112 | Self::Output::from_coordinates(self.coords - right); 'b);
| ^^^^^^^^^^^^^^^^^^^ expected struct `core::dimension::U1`, found associated type
|
= note: expected type `core::matrix::Matrix<_, _, core::dimension::U1, <core::default_allocator::DefaultAllocator as core::allocator::Allocator<N, D1>>::Buffer>`
found type `core::matrix::Matrix<_, _, <core::constraint::ShapeConstraint as core::constraint::SameNumberOfColumns<core::dimension::U1, core::dimension::U1>>::Representative, <core::default_allocator::DefaultAllocator as core::allocator::Allocator<N, D1, <core::constraint::ShapeConstraint as core::constraint::SameNumberOfColumns<core::dimension::U1, core::dimension::U1>>::Representative>>::Buffer>`
error[E0308]: mismatched types
--> src/geometry/point_ops.rs:117:36
|
117 | Self::Output::from_coordinates(self.coords - right); );
| ^^^^^^^^^^^^^^^^^^^ expected struct `core::dimension::U1`, found associated type
|
= note: expected type `core::matrix::Matrix<_, _, core::dimension::U1, <core::default_allocator::DefaultAllocator as core::allocator::Allocator<N, D1>>::Buffer>`
found type `core::matrix::Matrix<_, _, <core::constraint::ShapeConstraint as core::constraint::SameNumberOfColumns<core::dimension::U1, core::dimension::U1>>::Representative, <core::default_allocator::DefaultAllocator as core::allocator::Allocator<N, D1, <core::constraint::ShapeConstraint as core::constraint::SameNumberOfColumns<core::dimension::U1, core::dimension::U1>>::Representative>>::Buffer>`
error[E0308]: mismatched types
--> src/geometry/point_ops.rs:123:36
|
123 | Self::Output::from_coordinates(&self.coords + right); 'a, 'b);
| ^^^^^^^^^^^^^^^^^^^^ expected struct `core::dimension::U1`, found associated type
|
= note: expected type `core::matrix::Matrix<_, _, core::dimension::U1, <core::default_allocator::DefaultAllocator as core::allocator::Allocator<N, D1>>::Buffer>`
found type `core::matrix::Matrix<_, _, <core::constraint::ShapeConstraint as core::constraint::SameNumberOfColumns<core::dimension::U1, core::dimension::U1>>::Representative, <core::default_allocator::DefaultAllocator as core::allocator::Allocator<N, D1, <core::constraint::ShapeConstraint as core::constraint::SameNumberOfColumns<core::dimension::U1, core::dimension::U1>>::Representative>>::Buffer>`
error[E0308]: mismatched types
--> src/geometry/point_ops.rs:128:36
|
128 | Self::Output::from_coordinates(&self.coords + &right); 'a); // FIXME: should not be a ref to `right`.
| ^^^^^^^^^^^^^^^^^^^^^ expected struct `core::dimension::U1`, found associated type
|
= note: expected type `core::matrix::Matrix<_, _, core::dimension::U1, <core::default_allocator::DefaultAllocator as core::allocator::Allocator<N, D1>>::Buffer>`
found type `core::matrix::Matrix<_, _, <core::constraint::ShapeConstraint as core::constraint::SameNumberOfColumns<core::dimension::U1, core::dimension::U1>>::Representative, <core::default_allocator::DefaultAllocator as core::allocator::Allocator<N, D1, <core::constraint::ShapeConstraint as core::constraint::SameNumberOfColumns<core::dimension::U1, core::dimension::U1>>::Representative>>::Buffer>`
error[E0308]: mismatched types
--> src/geometry/point_ops.rs:133:36
|
133 | Self::Output::from_coordinates(self.coords + right); 'b);
| ^^^^^^^^^^^^^^^^^^^ expected struct `core::dimension::U1`, found associated type
|
= note: expected type `core::matrix::Matrix<_, _, core::dimension::U1, <core::default_allocator::DefaultAllocator as core::allocator::Allocator<N, D1>>::Buffer>`
found type `core::matrix::Matrix<_, _, <core::constraint::ShapeConstraint as core::constraint::SameNumberOfColumns<core::dimension::U1, core::dimension::U1>>::Representative, <core::default_allocator::DefaultAllocator as core::allocator::Allocator<N, D1, <core::constraint::ShapeConstraint as core::constraint::SameNumberOfColumns<core::dimension::U1, core::dimension::U1>>::Representative>>::Buffer>`
error[E0308]: mismatched types
--> src/geometry/point_ops.rs:138:36
|
138 | Self::Output::from_coordinates(self.coords + right); );
| ^^^^^^^^^^^^^^^^^^^ expected struct `core::dimension::U1`, found associated type
|
= note: expected type `core::matrix::Matrix<_, _, core::dimension::U1, <core::default_allocator::DefaultAllocator as core::allocator::Allocator<N, D1>>::Buffer>`
found type `core::matrix::Matrix<_, _, <core::constraint::ShapeConstraint as core::constraint::SameNumberOfColumns<core::dimension::U1, core::dimension::U1>>::Representative, <core::default_allocator::DefaultAllocator as core::allocator::Allocator<N, D1, <core::constraint::ShapeConstraint as core::constraint::SameNumberOfColumns<core::dimension::U1, core::dimension::U1>>::Representative>>::Buffer>`
error[E0308]: mismatched types
--> src/geometry/translation_ops.rs:16:30
|
16 | Translation::from_vector(&self.vector + &right.vector); 'a, 'b);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `core::dimension::U1`, found associated type
|
= note: expected type `core::matrix::Matrix<_, _, core::dimension::U1, <core::default_allocator::DefaultAllocator as core::allocator::Allocator<N, D>>::Buffer>`
found type `core::matrix::Matrix<_, _, <core::constraint::ShapeConstraint as core::constraint::SameNumberOfColumns<core::dimension::U1, core::dimension::U1>>::Representative, <core::default_allocator::DefaultAllocator as core::allocator::Allocator<N, D, <core::constraint::ShapeConstraint as core::constraint::SameNumberOfColumns<core::dimension::U1, core::dimension::U1>>::Representative>>::Buffer>`
error[E0308]: mismatched types
--> src/geometry/translation_ops.rs:21:30
|
21 | Translation::from_vector(&self.vector + right.vector); 'a);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `core::dimension::U1`, found associated type
|
= note: expected type `core::matrix::Matrix<_, _, core::dimension::U1, <core::default_allocator::DefaultAllocator as core::allocator::Allocator<N, D>>::Buffer>`
found type `core::matrix::Matrix<_, _, <core::constraint::ShapeConstraint as core::constraint::SameNumberOfColumns<core::dimension::U1, core::dimension::U1>>::Representative, <core::default_allocator::DefaultAllocator as core::allocator::Allocator<N, D, <core::constraint::ShapeConstraint as core::constraint::SameNumberOfColumns<core::dimension::U1, core::dimension::U1>>::Representative>>::Buffer>`
error[E0308]: mismatched types
--> src/geometry/translation_ops.rs:26:30
|
26 | Translation::from_vector(self.vector + &right.vector); 'b);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `core::dimension::U1`, found associated type
|
= note: expected type `core::matrix::Matrix<_, _, core::dimension::U1, <core::default_allocator::DefaultAllocator as core::allocator::Allocator<N, D>>::Buffer>`
found type `core::matrix::Matrix<_, _, <core::constraint::ShapeConstraint as core::constraint::SameNumberOfColumns<core::dimension::U1, core::dimension::U1>>::Representative, <core::default_allocator::DefaultAllocator as core::allocator::Allocator<N, D, <core::constraint::ShapeConstraint as core::constraint::SameNumberOfColumns<core::dimension::U1, core::dimension::U1>>::Representative>>::Buffer>`
error[E0308]: mismatched types
--> src/geometry/translation_ops.rs:31:30
|
31 | Translation::from_vector(self.vector + right.vector); );
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `core::dimension::U1`, found associated type
|
= note: expected type `core::matrix::Matrix<_, _, core::dimension::U1, <core::default_allocator::DefaultAllocator as core::allocator::Allocator<N, D>>::Buffer>`
found type `core::matrix::Matrix<_, _, <core::constraint::ShapeConstraint as core::constraint::SameNumberOfColumns<core::dimension::U1, core::dimension::U1>>::Representative, <core::default_allocator::DefaultAllocator as core::allocator::Allocator<N, D, <core::constraint::ShapeConstraint as core::constraint::SameNumberOfColumns<core::dimension::U1, core::dimension::U1>>::Representative>>::Buffer>`
error[E0308]: mismatched types
--> src/geometry/translation_ops.rs:38:30
|
38 | Translation::from_vector(&self.vector - &right.vector); 'a, 'b);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `core::dimension::U1`, found associated type
|
= note: expected type `core::matrix::Matrix<_, _, core::dimension::U1, <core::default_allocator::DefaultAllocator as core::allocator::Allocator<N, D>>::Buffer>`
found type `core::matrix::Matrix<_, _, <core::constraint::ShapeConstraint as core::constraint::SameNumberOfColumns<core::dimension::U1, core::dimension::U1>>::Representative, <core::default_allocator::DefaultAllocator as core::allocator::Allocator<N, D, <core::constraint::ShapeConstraint as core::constraint::SameNumberOfColumns<core::dimension::U1, core::dimension::U1>>::Representative>>::Buffer>`
error[E0308]: mismatched types
--> src/geometry/translation_ops.rs:43:30
|
43 | Translation::from_vector(&self.vector - right.vector); 'a);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `core::dimension::U1`, found associated type
|
= note: expected type `core::matrix::Matrix<_, _, core::dimension::U1, <core::default_allocator::DefaultAllocator as core::allocator::Allocator<N, D>>::Buffer>`
found type `core::matrix::Matrix<_, _, <core::constraint::ShapeConstraint as core::constraint::SameNumberOfColumns<core::dimension::U1, core::dimension::U1>>::Representative, <core::default_allocator::DefaultAllocator as core::allocator::Allocator<N, D, <core::constraint::ShapeConstraint as core::constraint::SameNumberOfColumns<core::dimension::U1, core::dimension::U1>>::Representative>>::Buffer>`
error[E0308]: mismatched types
--> src/geometry/translation_ops.rs:48:30
|
48 | Translation::from_vector(self.vector - &right.vector); 'b);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `core::dimension::U1`, found associated type
|
= note: expected type `core::matrix::Matrix<_, _, core::dimension::U1, <core::default_allocator::DefaultAllocator as core::allocator::Allocator<N, D>>::Buffer>`
found type `core::matrix::Matrix<_, _, <core::constraint::ShapeConstraint as core::constraint::SameNumberOfColumns<core::dimension::U1, core::dimension::U1>>::Representative, <core::default_allocator::DefaultAllocator as core::allocator::Allocator<N, D, <core::constraint::ShapeConstraint as core::constraint::SameNumberOfColumns<core::dimension::U1, core::dimension::U1>>::Representative>>::Buffer>`
error[E0308]: mismatched types
--> src/geometry/translation_ops.rs:53:30
|
53 | Translation::from_vector(self.vector - right.vector); );
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `core::dimension::U1`, found associated type
|
= note: expected type `core::matrix::Matrix<_, _, core::dimension::U1, <core::default_allocator::DefaultAllocator as core::allocator::Allocator<N, D>>::Buffer>`
found type `core::matrix::Matrix<_, _, <core::constraint::ShapeConstraint as core::constraint::SameNumberOfColumns<core::dimension::U1, core::dimension::U1>>::Representative, <core::default_allocator::DefaultAllocator as core::allocator::Allocator<N, D, <core::constraint::ShapeConstraint as core::constraint::SameNumberOfColumns<core::dimension::U1, core::dimension::U1>>::Representative>>::Buffer>`
error: aborting due to 20 previous errors
For more information about this error, try `rustc --explain E0308`.
error: Could not compile `nalgebra`.
To learn more, run the command again with --verbose.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment