Skip to content

Commit 47e4b7e

Browse files
committed
Bump Rust to 1.92
As part of upgrading Rust to 1.92, this commit removes a couple of unused imports. Additionally, we temporarily allow the unused-assignments warning which is generated by fields of errors that are being used by thiserror error messages (via the error attribute).
1 parent 58ac1dc commit 47e4b7e

File tree

19 files changed

+30
-16
lines changed

19 files changed

+30
-16
lines changed

Cargo.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ resolver = "2"
2929
version = "1.6.0-dev"
3030
authors = ["restate.dev"]
3131
edition = "2024"
32-
rust-version = "1.91.0"
32+
rust-version = "1.92.0"
3333
license = "BUSL-1.1"
3434
repository = "https://github.com/restatedev/restate"
3535
homepage = "https://github.com/restatedev/restate"
@@ -298,3 +298,8 @@ opt-level = 2
298298
# The profile that 'dist' will build with
299299
[profile.dist]
300300
inherits = "release"
301+
302+
[workspace.lints.rust]
303+
# Temporarily allow unused assignments until https://github.com/rust-lang/rust/issues/147648 has been fixed.
304+
# The problem is that error fields used by thiserror::error attribute generate false positives for unused_assignments.
305+
unused_assignments = "allow"

crates/admin/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,6 @@ restate-types = { workspace = true, features = ["test-util"] }
8181
googletest = { workspace = true }
8282
test-log = { workspace = true }
8383
tracing = { workspace = true }
84+
85+
[lints]
86+
workspace = true

crates/admin/src/cluster_controller/service.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ use rand::seq::IteratorRandom;
2323
use tokio::sync::{mpsc, oneshot};
2424
use tokio::time;
2525
use tokio::time::{Instant, Interval, MissedTickBehavior};
26-
use tracing::{debug, info, warn};
26+
use tracing::{debug, info};
2727

2828
use restate_bifrost::{Bifrost, MaybeSealedSegment};
2929
use restate_core::network::tonic_service_filter::{TonicServiceFilter, WaitForReady};

crates/admin/src/service.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use http::{Request, Response, StatusCode};
1515
use tower::ServiceBuilder;
1616
use tower_http::classify::ServerErrorsFailureClass;
1717
use tower_http::trace::TraceLayer;
18-
use tracing::{Span, debug, error, info, info_span};
18+
use tracing::{Span, debug, info, info_span};
1919

2020
use restate_admin_rest_model::version::AdminApiVersion;
2121
use restate_bifrost::Bifrost;

crates/codederror/Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,7 @@ restate-workspace-hack = { workspace = true }
1313
codederror-derive = { version = "0.1.0", path = "derive" }
1414

1515
[dev-dependencies]
16-
thiserror = { workspace = true }
16+
thiserror = { workspace = true }
17+
18+
[lints]
19+
workspace = true

crates/core/src/task_center/builder.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
use std::sync::atomic::{AtomicUsize, Ordering};
1212

13-
use tracing::error;
14-
1513
use restate_types::config::CommonOptions;
1614

1715
use super::{OwnedHandle, TaskCenterInner};

crates/core/src/task_center/extensions.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ where
157157
F: Future<Output = O>,
158158
{
159159
fn with_metadata(self, metadata: &Metadata) -> WithMetadata<Self> {
160+
// temporary mute until overrides include more fields
161+
#[allow(unused_variables)]
160162
let current_overrides = OVERRIDES.try_with(Clone::clone).unwrap_or_default();
161163
// temporary mute until overrides include more fields
162164
#[allow(clippy::needless_update)]

crates/invoker-impl/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ use metrics::counter;
3333
use restate_futures_util::concurrency::Permit;
3434
use tokio::sync::mpsc;
3535
use tokio::task::{AbortHandle, JoinSet};
36+
use tracing::instrument;
3637
use tracing::{debug, trace, warn};
37-
use tracing::{error, instrument};
3838

3939
use restate_core::cancellation_watcher;
4040
use restate_errors::warn_it;

crates/metadata-server/src/raft/network/networking.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use tokio::sync::mpsc;
1717
use tokio_stream::wrappers::ReceiverStream;
1818
use tonic::IntoStreamingRequest;
1919
use tonic::metadata::MetadataValue;
20-
use tracing::{debug, trace};
20+
use tracing::trace;
2121

2222
use restate_core::network::net_util;
2323
use restate_core::{ShutdownError, TaskCenter, TaskHandle, TaskKind};

crates/metadata-server/src/raft/server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ use protobuf::ProtobufError;
1919
use raft_proto::eraftpb::Message;
2020
use std::sync::Arc;
2121
use tokio::sync::{mpsc, watch};
22-
use tracing::{debug, error};
22+
use tracing::debug;
2323

2424
use restate_core::network::NetworkServerBuilder;
2525
use restate_core::{Metadata, MetadataWriter, ShutdownError, cancellation_watcher};

0 commit comments

Comments
 (0)