about summary refs log tree commit diff
path: root/library/alloc/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-06-25 21:33:41 +0200
committerGitHub <noreply@github.com>2024-06-25 21:33:41 +0200
commit58bbade92104c5d60eadb0c3415df8fc22a77fe9 (patch)
treec1e4035df1eb8000a92b7c71af0d3c25c6ecadd8 /library/alloc/src
parentc290e9de32e8ba6a673ef125fde40eadd395d170 (diff)
parent6997b6876d62b7c42faf12af3164c87ab733be13 (diff)
downloadrust-58bbade92104c5d60eadb0c3415df8fc22a77fe9.tar.gz
rust-58bbade92104c5d60eadb0c3415df8fc22a77fe9.zip
Rollup merge of #126302 - mu001999-contrib:ignore/default, r=michaelwoerister
Detect unused structs which derived Default

<!--
If this PR is related to an unstable feature or an otherwise tracked effort,
please link to the relevant tracking issue here. If you don't know of a related
tracking issue or there are none, feel free to ignore this.

This PR will get automatically assigned to a reviewer. In case you would like
a specific user to review your work, you can assign it to them by using

    r​? <reviewer name>
-->

Fixes #98871
Diffstat (limited to 'library/alloc/src')
-rw-r--r--library/alloc/src/sync/tests.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/sync/tests.rs b/library/alloc/src/sync/tests.rs
index 49eae718c16..1b123aa58f2 100644
--- a/library/alloc/src/sync/tests.rs
+++ b/library/alloc/src/sync/tests.rs
@@ -396,7 +396,7 @@ fn show_arc() {
 
 // Make sure deriving works with Arc<T>
 #[derive(Eq, Ord, PartialEq, PartialOrd, Clone, Debug, Default)]
-struct Foo {
+struct _Foo {
     inner: Arc<i32>,
 }