Skip to content

Commit 8fe72fc

Browse files
committed
CI: upgrade rustc from 1.79 to 1.81 due to
``` error: rustc 1.79.0 is not supported by the following package: [email protected] requires rustc 1.81 ``` updated snapshot test ci: snapshot test again, by ```shell TRYBUILD=overwrite cargo +1.81 test stack ```
1 parent 137aac3 commit 8fe72fc

File tree

10 files changed

+14
-24
lines changed

10 files changed

+14
-24
lines changed

.github/workflows/nalgebra-ci-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
- name: Select rustc version
6565
uses: actions-rs/toolchain@v1
6666
with:
67-
toolchain: 1.79.0
67+
toolchain: 1.81
6868
override: true
6969
- uses: actions/checkout@v4
7070
- name: test

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

nalgebra-sparse/src/io/matrix_market.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ mod internal {
499499
fn from_i128(i: i128) -> Result<Self, MatrixMarketError>;
500500
/// When matrix is a Real matrix, it will convert a [f64] number to this type.
501501
fn from_f64(f: f64) -> Result<Self, MatrixMarketError>;
502-
/// When matrix is a Complex matrix, it will convert a [Complex<f64>] number to this type.
502+
/// When matrix is a Complex matrix, it will convert a [`Complex<f64>`] number to this type.
503503
fn from_c64(c: Complex<f64>) -> Result<Self, MatrixMarketError>;
504504
/// When matrix is a Pattern matrix, it will convert a unit type [unit] to this type.
505505
fn from_pattern(p: ()) -> Result<Self, MatrixMarketError>;

nalgebra-sparse/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
//!
2828
//! [Matrix market format support]: io/
2929
//! [proptest strategies]: proptest/
30-
//!
30+
//!
3131
//! ## Current state
3232
//!
3333
//! The library is in an early, but usable state. The API has been designed to be extensible,

nalgebra-sparse/src/pattern/pattern_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 `SparsityPattern`.
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

src/base/rkyv_wrappers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! Wrapper that allows changing the generic type of a PhantomData<T>
1+
//! Wrapper that allows changing the generic type of a `PhantomData<T>`
22
//!
33
//! Copied from <https://github.com/rkyv/rkyv_contrib> (MIT-Apache2 licences) which isn’t published yet.
44

tests/macros/trybuild/stack_incompatible_block_dimensions.stderr

Lines changed: 3 additions & 8 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
@@ -27,11 +27,6 @@ error[E0599]: no method named `generic_view_mut` found for struct `Matrix<_, Con
2727
12 | | a21, a22];
2828
| |____________________^ method not found in `Matrix<_, Const<3>, _, _>`
2929
|
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-
|
3530
= note: the method was found for
3631
- `Matrix<T, R, C, S>`
3732
= 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 & 8 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
@@ -27,11 +27,6 @@ error[E0599]: no method named `generic_view_mut` found for struct `Matrix<_, _,
2727
13 | | a21, a22];
2828
| |____________________^ method not found in `Matrix<_, _, Const<4>, _>`
2929
|
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-
|
3530
= note: the method was found for
3631
- `Matrix<T, R, C, S>`
3732
= note: this error originates in the macro `stack` (in Nightly builds, run with -Z macro-backtrace for more info)

0 commit comments

Comments
 (0)