aboutsummaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
authorJonathan Schwender <55576758+jschwe@users.noreply.github.com>2024-12-12 13:00:51 +0100
committerGitHub <noreply@github.com>2024-12-12 12:00:51 +0000
commit6a816649d6dd80db9ce82484065c21c90690d046 (patch)
tree6c02104be549b35b14dba42df9cdac9ab03dda10 /components
parentc0703b605d9c22776548c2155790542312046763 (diff)
downloadservo-6a816649d6dd80db9ce82484065c21c90690d046.tar.gz
servo-6a816649d6dd80db9ce82484065c21c90690d046.zip
Upgrade Rust to 1.82.0 (#34592)
* Fix deprecated PanicInfo alias Fixes: ```rust use of deprecated type alias `std::panic::PanicInfo`: use `PanicHookInfo` instead ``` Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * build: upgrade rustc to 1.82.0 Tracking issue for the silenced lints: https://github.com/servo/servo/issues/34591 Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> --------- Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
Diffstat (limited to 'components')
-rw-r--r--components/constellation/constellation.rs2
-rw-r--r--components/constellation/session_history.rs4
-rw-r--r--components/shared/devtools/lib.rs2
-rw-r--r--components/shared/net/lib.rs6
-rw-r--r--components/shared/script/lib.rs2
-rw-r--r--components/webgpu/ipc_messages/recv.rs2
6 files changed, 18 insertions, 0 deletions
diff --git a/components/constellation/constellation.rs b/components/constellation/constellation.rs
index 1b30aae7115..e7713b11674 100644
--- a/components/constellation/constellation.rs
+++ b/components/constellation/constellation.rs
@@ -1177,6 +1177,8 @@ where
)]
fn handle_request(&mut self) {
#[derive(Debug)]
+ // FIXME: https://github.com/servo/servo/issues/34591
+ #[expect(clippy::large_enum_variant)]
enum Request {
PipelineNamespace(PipelineNamespaceRequest),
Script((PipelineId, FromScriptMsg)),
diff --git a/components/constellation/session_history.rs b/components/constellation/session_history.rs
index e91e3329e60..f948c48b999 100644
--- a/components/constellation/session_history.rs
+++ b/components/constellation/session_history.rs
@@ -132,6 +132,8 @@ pub struct SessionHistoryChange {
}
/// Represents a pipeline or discarded pipeline in a history entry.
+// FIXME: https://github.com/servo/servo/issues/34591
+#[expect(clippy::large_enum_variant)]
#[derive(Clone, Debug)]
pub enum NeedsToReload {
/// Represents a pipeline that has not been discarded
@@ -176,6 +178,8 @@ impl PartialEq for NeedsToReload {
}
/// Represents a the difference between two adjacent session history entries.
+// FIXME: https://github.com/servo/servo/issues/34591
+#[expect(clippy::large_enum_variant)]
#[derive(Debug)]
pub enum SessionHistoryDiff {
/// Represents a diff where the active pipeline of an entry changed.
diff --git a/components/shared/devtools/lib.rs b/components/shared/devtools/lib.rs
index 4931cc9f279..29b5a8b0aff 100644
--- a/components/shared/devtools/lib.rs
+++ b/components/shared/devtools/lib.rs
@@ -52,6 +52,8 @@ pub enum DevtoolsControlMsg {
}
/// Events that the devtools server must act upon.
+// FIXME: https://github.com/servo/servo/issues/34591
+#[expect(clippy::large_enum_variant)]
#[derive(Debug)]
pub enum ChromeToDevtoolsControlMsg {
/// A new client has connected to the server.
diff --git a/components/shared/net/lib.rs b/components/shared/net/lib.rs
index 757ee61daa3..be1f6378ced 100644
--- a/components/shared/net/lib.rs
+++ b/components/shared/net/lib.rs
@@ -183,6 +183,8 @@ impl From<ReferrerPolicy> for ReferrerPolicyHeader {
}
}
+// FIXME: https://github.com/servo/servo/issues/34591
+#[expect(clippy::large_enum_variant)]
#[derive(Debug, Deserialize, Serialize)]
pub enum FetchResponseMsg {
// todo: should have fields for transmitted/total bytes
@@ -239,6 +241,8 @@ pub enum FilteredMetadata {
OpaqueRedirect(ServoUrl),
}
+// FIXME: https://github.com/servo/servo/issues/34591
+#[expect(clippy::large_enum_variant)]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub enum FetchMetadata {
Unfiltered(Metadata),
@@ -502,6 +506,8 @@ pub enum CoreResourceMsg {
Exit(IpcSender<()>),
}
+// FIXME: https://github.com/servo/servo/issues/34591
+#[expect(clippy::large_enum_variant)]
enum ToFetchThreadMessage {
StartFetch(
/* request_builder */ RequestBuilder,
diff --git a/components/shared/script/lib.rs b/components/shared/script/lib.rs
index a8dd33010f8..1f4767af126 100644
--- a/components/shared/script/lib.rs
+++ b/components/shared/script/lib.rs
@@ -271,6 +271,8 @@ pub enum UpdatePipelineIdReason {
}
/// Messages sent from the constellation or layout to the script thread.
+// FIXME: https://github.com/servo/servo/issues/34591
+#[expect(clippy::large_enum_variant)]
#[derive(Deserialize, Serialize)]
pub enum ConstellationControlMsg {
/// Takes the associated window proxy out of "delaying-load-events-mode",
diff --git a/components/webgpu/ipc_messages/recv.rs b/components/webgpu/ipc_messages/recv.rs
index bb478ad571d..658daf0f736 100644
--- a/components/webgpu/ipc_messages/recv.rs
+++ b/components/webgpu/ipc_messages/recv.rs
@@ -42,6 +42,8 @@ pub struct ContextConfiguration {
pub is_opaque: bool,
}
+// FIXME: https://github.com/servo/servo/issues/34591
+#[expect(clippy::large_enum_variant)]
#[derive(Debug, Deserialize, Serialize)]
pub enum WebGPURequest {
BufferMapAsync {