diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index e9738caeb..1ff7da915 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -16,7 +16,7 @@ env:
# Change to specific Rust release to pin
rust_stable: stable
rust_nightly: nightly-2023-10-21
- rust_clippy: '1.76'
+ rust_clippy: '1.77'
# When updating this, also update:
# - README.md
# - tokio/README.md
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 369a898fd..b6b9f4301 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -149,7 +149,7 @@ When updating this, also update:
-->
```
-cargo +1.76 clippy --all --tests --all-features
+cargo +1.77 clippy --all --tests --all-features
```
When building documentation normally, the markers that list the features
diff --git a/tokio-util/tests/compat.rs b/tokio-util/tests/compat.rs
index 8a0eab340..1c77081f8 100644
--- a/tokio-util/tests/compat.rs
+++ b/tokio-util/tests/compat.rs
@@ -15,6 +15,7 @@ async fn compat_file_seek() -> futures_util::io::Result<()> {
.read(true)
.write(true)
.create(true)
+ .truncate(true)
.open(temp_file)
.await?
.compat_write();
diff --git a/tokio/src/runtime/signal/mod.rs b/tokio/src/runtime/signal/mod.rs
index 0dea18794..bc50c6e98 100644
--- a/tokio/src/runtime/signal/mod.rs
+++ b/tokio/src/runtime/signal/mod.rs
@@ -112,6 +112,7 @@ impl Driver {
// Drain the pipe completely so we can receive a new readiness event
// if another signal has come in.
let mut buf = [0; 128];
+ #[allow(clippy::unused_io_amount)]
loop {
match self.receiver.read(&mut buf) {
Ok(0) => panic!("EOF on self-pipe"),
diff --git a/tokio/tests/io_async_fd.rs b/tokio/tests/io_async_fd.rs
index 6f8a10aef..ea798b306 100644
--- a/tokio/tests/io_async_fd.rs
+++ b/tokio/tests/io_async_fd.rs
@@ -150,7 +150,7 @@ fn socketpair() -> (FileDescriptor, FileDescriptor) {
fn drain(mut fd: &FileDescriptor) {
let mut buf = [0u8; 512];
-
+ #[allow(clippy::unused_io_amount)]
loop {
match fd.read(&mut buf[..]) {
Err(e) if e.kind() == ErrorKind::WouldBlock => break,
diff --git a/tokio/tests/rt_common.rs b/tokio/tests/rt_common.rs
index 11c44a8d1..a71fc4a73 100644
--- a/tokio/tests/rt_common.rs
+++ b/tokio/tests/rt_common.rs
@@ -1089,7 +1089,7 @@ rt_test! {
use std::thread;
thread_local!(
- static R: RefCell