-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #54907 - pietroalbini:beta-backports, r=pietroalbini
[beta] Rollup backports Merged and approved: * #54851: Fix a regression in 1.30 by reverting #53564 * #54865: Backport 1.29.2 release notes to master * #54810: Fix dead code lint for functions using impl Trait r? @ghost
- Loading branch information
Showing
11 changed files
with
102 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
warning: function is never used: `foo` | ||
--> $DIR/existential-minimal.rs:15:1 | ||
| | ||
LL | fn foo() -> impl std::fmt::Debug { "cake" } | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= note: #[warn(dead_code)] on by default | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
warning: struct is never constructed: `Foo` | ||
--> $DIR/issue-42479.rs:15:1 | ||
| | ||
LL | struct Foo { | ||
| ^^^^^^^^^^ | ||
| | ||
= note: #[warn(dead_code)] on by default | ||
|
||
warning: method is never used: `inside` | ||
--> $DIR/issue-42479.rs:20:5 | ||
| | ||
LL | fn inside(&self) -> impl Iterator<Item = &i32> { | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
warning: function is never used: `gen` | ||
--> $DIR/issue-49376.rs:18:1 | ||
| | ||
LL | fn gen() -> impl PartialOrd + PartialEq + Debug { } | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= note: #[warn(dead_code)] on by default | ||
|
||
warning: struct is never constructed: `Bar` | ||
--> $DIR/issue-49376.rs:20:1 | ||
| | ||
LL | struct Bar {} | ||
| ^^^^^^^^^^ | ||
|
||
warning: function is never used: `foo` | ||
--> $DIR/issue-49376.rs:24:1 | ||
| | ||
LL | fn foo() -> impl Foo { | ||
| ^^^^^^^^^^^^^^^^^^^^ | ||
|
||
warning: function is never used: `test_impl_ops` | ||
--> $DIR/issue-49376.rs:28:1 | ||
| | ||
LL | fn test_impl_ops() -> impl Add + Sub + Mul + Div { 1 } | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
warning: function is never used: `test_impl_assign_ops` | ||
--> $DIR/issue-49376.rs:29:1 | ||
| | ||
LL | fn test_impl_assign_ops() -> impl AddAssign + SubAssign + MulAssign + DivAssign { 1 } | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
warning: function is never used: `iter` | ||
--> $DIR/issue-49556.rs:12:1 | ||
| | ||
LL | fn iter<'a>(data: &'a [usize]) -> impl Iterator<Item = usize> + 'a { | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= note: #[warn(dead_code)] on by default | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
warning: function is never used: `batches` | ||
--> $DIR/conservative_impl_trait.rs:14:1 | ||
| | ||
LL | fn batches(n: &u32) -> impl Iterator<Item=&u32> { | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= note: #[warn(dead_code)] on by default | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters