Skip to content

Commit 843e79f

Browse files
committed
Delete dead fields of deserialized cargo output
The dead_code lint was previously eroneously missing this dead code. Since this lint bug has been fixed, the unused field need to be removed or marked as `#[allow(dead_code)]`. Given that this struct is deserialized without #[serde(deny_unknown_fields)] it is ok to simply delete the never read fields.
1 parent f60c4ed commit 843e79f

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/bootstrap/src/core/build_steps/compile.rs

+2-7
Original file line numberDiff line numberDiff line change
@@ -2135,17 +2135,12 @@ pub struct CargoTarget<'a> {
21352135
#[serde(tag = "reason", rename_all = "kebab-case")]
21362136
pub enum CargoMessage<'a> {
21372137
CompilerArtifact {
2138-
package_id: Cow<'a, str>,
21392138
features: Vec<Cow<'a, str>>,
21402139
filenames: Vec<Cow<'a, str>>,
21412140
target: CargoTarget<'a>,
21422141
},
2143-
BuildScriptExecuted {
2144-
package_id: Cow<'a, str>,
2145-
},
2146-
BuildFinished {
2147-
success: bool,
2148-
},
2142+
BuildScriptExecuted,
2143+
BuildFinished,
21492144
}
21502145

21512146
pub fn strip_debug(builder: &Builder<'_>, target: TargetSelection, path: &Path) {

0 commit comments

Comments
 (0)