Skip to content

Commit 49942b6

Browse files
committed
updated snapshot test
1 parent 2d697d3 commit 49942b6

File tree

5 files changed

+9
-43
lines changed

5 files changed

+9
-43
lines changed

nalgebra-sparse/src/coo/coo_serde.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use serde::{de, Deserialize, Deserializer, Serialize, Serializer};
44
/// This is an intermediate type for (de)serializing `CooMatrix`.
55
///
66
/// Deserialization requires using a `try_from_*` function for validation. We could have used
7-
/// the `remote = "Self"` trick (https://github.com/serde-rs/serde/issues/1220) which allows
7+
/// the `remote = "Self"` trick (<https://github.com/serde-rs/serde/issues/1220>) which allows
88
/// to directly serialize/deserialize the original fields and combine it with validation.
99
/// However, this would lead to nested serialization of the `CsMatrix` and `SparsityPattern`
1010
/// types. Instead, we decided that we want a more human-readable serialization format using

nalgebra-sparse/src/csc/csc_serde.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use serde::{de, Deserialize, Deserializer, Serialize, Serializer};
44
/// This is an intermediate type for (de)serializing `CscMatrix`.
55
///
66
/// Deserialization requires using a `try_from_*` function for validation. We could have used
7-
/// the `remote = "Self"` trick (https://github.com/serde-rs/serde/issues/1220) which allows
7+
/// the `remote = "Self"` trick (<https://github.com/serde-rs/serde/issues/1220>) which allows
88
/// to directly serialize/deserialize the original fields and combine it with validation.
99
/// However, this would lead to nested serialization of the `CsMatrix` and `SparsityPattern`
1010
/// types. Instead, we decided that we want a more human-readable serialization format using

nalgebra-sparse/src/csr/csr_serde.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use serde::{de, Deserialize, Deserializer, Serialize, Serializer};
44
/// This is an intermediate type for (de)serializing `CsrMatrix`.
55
///
66
/// Deserialization requires using a `try_from_*` function for validation. We could have used
7-
/// the `remote = "Self"` trick (https://github.com/serde-rs/serde/issues/1220) which allows
7+
/// the `remote = "Self"` trick (<https://github.com/serde-rs/serde/issues/1220>) which allows
88
/// to directly serialize/deserialize the original fields and combine it with validation.
99
/// However, this would lead to nested serialization of the `CsMatrix` and `SparsityPattern`
1010
/// types. Instead, we decided that we want a more human-readable serialization format using

tests/macros/trybuild/stack_incompatible_block_dimensions.stderr

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ error[E0277]: the trait bound `ShapeConstraint: SameNumberOfColumns<Const<2>, Co
55
| ^^^ the trait `SameNumberOfColumns<Const<2>, Const<3>>` is not implemented for `ShapeConstraint`
66
|
77
= help: the following other types implement trait `SameNumberOfColumns<D1, D2>`:
8-
<ShapeConstraint as SameNumberOfColumns<D, D>>
9-
<ShapeConstraint as SameNumberOfColumns<D, Dyn>>
10-
<ShapeConstraint as SameNumberOfColumns<Dyn, D>>
8+
`ShapeConstraint` implements `SameNumberOfColumns<D, D>`
9+
`ShapeConstraint` implements `SameNumberOfColumns<D, Dyn>`
10+
`ShapeConstraint` implements `SameNumberOfColumns<Dyn, D>`
1111
= note: this error originates in the macro `stack` (in Nightly builds, run with -Z macro-backtrace for more info)
1212

1313
error[E0282]: type annotations needed
@@ -18,20 +18,3 @@ error[E0282]: type annotations needed
1818
| |____________________^ cannot infer type
1919
|
2020
= note: this error originates in the macro `stack` (in Nightly builds, run with -Z macro-backtrace for more info)
21-
22-
error[E0599]: no method named `generic_view_mut` found for struct `Matrix<_, Const<3>, _, _>` in the current scope
23-
--> tests/macros/trybuild/stack_incompatible_block_dimensions.rs:11:5
24-
|
25-
11 | stack![a11, a12;
26-
| _____^
27-
12 | | a21, a22];
28-
| |____________________^ method not found in `Matrix<_, Const<3>, _, _>`
29-
|
30-
::: src/base/matrix_view.rs
31-
|
32-
| generic_slice_mut => generic_view_mut,
33-
| ---------------- the method is available for `Matrix<_, Const<3>, _, _>` here
34-
|
35-
= note: the method was found for
36-
- `Matrix<T, R, C, S>`
37-
= note: this error originates in the macro `stack` (in Nightly builds, run with -Z macro-backtrace for more info)

tests/macros/trybuild/stack_incompatible_block_dimensions2.stderr

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ error[E0277]: the trait bound `ShapeConstraint: SameNumberOfRows<Const<1>, Const
55
| ^^^ the trait `SameNumberOfRows<Const<1>, Const<2>>` is not implemented for `ShapeConstraint`
66
|
77
= help: the following other types implement trait `SameNumberOfRows<D1, D2>`:
8-
<ShapeConstraint as SameNumberOfRows<D, D>>
9-
<ShapeConstraint as SameNumberOfRows<D, Dyn>>
10-
<ShapeConstraint as SameNumberOfRows<Dyn, D>>
8+
`ShapeConstraint` implements `SameNumberOfRows<D, D>`
9+
`ShapeConstraint` implements `SameNumberOfRows<D, Dyn>`
10+
`ShapeConstraint` implements `SameNumberOfRows<Dyn, D>`
1111
= note: this error originates in the macro `stack` (in Nightly builds, run with -Z macro-backtrace for more info)
1212

1313
error[E0282]: type annotations needed
@@ -18,20 +18,3 @@ error[E0282]: type annotations needed
1818
| |____________________^ cannot infer type
1919
|
2020
= note: this error originates in the macro `stack` (in Nightly builds, run with -Z macro-backtrace for more info)
21-
22-
error[E0599]: no method named `generic_view_mut` found for struct `Matrix<_, _, Const<4>, _>` in the current scope
23-
--> tests/macros/trybuild/stack_incompatible_block_dimensions2.rs:12:5
24-
|
25-
12 | stack![a11, a12;
26-
| _____^
27-
13 | | a21, a22];
28-
| |____________________^ method not found in `Matrix<_, _, Const<4>, _>`
29-
|
30-
::: src/base/matrix_view.rs
31-
|
32-
| generic_slice_mut => generic_view_mut,
33-
| ---------------- the method is available for `Matrix<_, _, Const<4>, _>` here
34-
|
35-
= note: the method was found for
36-
- `Matrix<T, R, C, S>`
37-
= note: this error originates in the macro `stack` (in Nightly builds, run with -Z macro-backtrace for more info)

0 commit comments

Comments
 (0)