forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 6
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 rust-lang#71689 - Dylan-DPC:rollup-8nyuwm1, r=Dylan-DPC
Rollup of 6 pull requests Successful merges: - rust-lang#71507 (Document unsafety in core::ptr) - rust-lang#71572 (test iterator chain type length blowup) - rust-lang#71617 (Suggest `into` instead of `try_into` if possible with int types) - rust-lang#71627 (Fix wrong argument in autoderef process) - rust-lang#71678 (Add an index page for nightly rustc docs.) - rust-lang#71680 (Fix doc link to Eq trait from PartialEq trait) Failed merges: - rust-lang#71597 (Rename Unique::empty() -> Unique::dangling()) r? @ghost
- Loading branch information
Showing
11 changed files
with
137 additions
and
74 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
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,31 @@ | ||
// run-pass | ||
//! This snippet causes the type length to blowup exponentially, | ||
//! so check that we don't accidentially exceed the type length limit. | ||
// FIXME: Once the size of iterator adaptors is further reduced, | ||
// increase the complexity of this test. | ||
|
||
fn main() { | ||
let c = 2; | ||
let bv = vec![2]; | ||
let b = bv | ||
.iter() | ||
.filter(|a| **a == c); | ||
|
||
let _a = vec![1, 2, 3] | ||
.into_iter() | ||
.filter(|a| b.clone().any(|b| *b == *a)) | ||
.filter(|a| b.clone().any(|b| *b == *a)) | ||
.filter(|a| b.clone().any(|b| *b == *a)) | ||
.filter(|a| b.clone().any(|b| *b == *a)) | ||
.filter(|a| b.clone().any(|b| *b == *a)) | ||
.filter(|a| b.clone().any(|b| *b == *a)) | ||
.filter(|a| b.clone().any(|b| *b == *a)) | ||
.filter(|a| b.clone().any(|b| *b == *a)) | ||
.filter(|a| b.clone().any(|b| *b == *a)) | ||
.filter(|a| b.clone().any(|b| *b == *a)) | ||
.filter(|a| b.clone().any(|b| *b == *a)) | ||
.filter(|a| b.clone().any(|b| *b == *a)) | ||
.filter(|a| b.clone().any(|b| *b == *a)) | ||
.filter(|a| b.clone().any(|b| *b == *a)) | ||
.collect::<Vec<_>>(); | ||
} |
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
Oops, something went wrong.