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#109911 - JohnTitor:rollup-7gjiqim, r=JohnTitor
Rollup of 6 pull requests Successful merges: - rust-lang#109783 (Update contributing links for rustc-dev-guide changes) - rust-lang#109883 (Add links to <cell.rs>) - rust-lang#109889 (Update book, rustc-dev-guide, rust-by-example) - rust-lang#109896 (Never consider int and float vars for `FnPtr` candidates) - rust-lang#109902 (Add async-await test for rust-lang#107414) - rust-lang#109903 (Add Chris Denton to `.mailmap`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
- Loading branch information
Showing
11 changed files
with
54 additions
and
14 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
Submodule rust-by-example
updated
6 files
+1 −0 | src/flow_control/match/guard.md | |
+0 −2 | src/hello/print.md | |
+4 −4 | src/hello/print/fmt.md | |
+1 −1 | src/scope/lifetime.md | |
+3 −0 | src/scope/raii.md | |
+3 −0 | src/std/panic.md |
Submodule rustc-dev-guide
updated
19 files
+4 −3 | examples/rustc-driver-example.rs | |
+1 −0 | examples/rustc-driver-getting-diagnostics.rs | |
+3 −2 | src/SUMMARY.md | |
+38 −0 | src/about-this-guide.md | |
+8 −1 | src/bug-fix-procedure.md | |
+31 −2 | src/building/how-to-build-and-run.md | |
+2 −0 | src/building/new-target.md | |
+2 −0 | src/building/suggested.md | |
+1 −1 | src/compiler-debugging.md | |
+101 −229 | src/contributing.md | |
+3 −0 | src/conventions.md | |
+157 −0 | src/external-repos.md | |
+1 −1 | src/fuzzing.md | |
+39 −238 | src/getting-started.md | |
+2 −0 | src/implementing_new_features.md | |
+6 −31 | src/notification-groups/cleanup-crew.md | |
+1 −1 | src/rustc-driver-getting-diagnostics.md | |
+1 −1 | src/rustc-driver-interacting-with-the-ast.md | |
+5 −3 | src/rustdoc.md |
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,24 @@ | ||
// check-pass | ||
// edition:2018 | ||
|
||
fn main() {} | ||
|
||
struct StructA {} | ||
struct StructB {} | ||
|
||
impl StructA { | ||
fn fn_taking_struct_b(&self, struct_b: &StructB) -> bool { | ||
true | ||
} | ||
} | ||
|
||
async fn get_struct_a_async() -> StructA { | ||
StructA {} | ||
} | ||
|
||
async fn ice() { | ||
match Some(StructB {}) { | ||
Some(struct_b) if get_struct_a_async().await.fn_taking_struct_b(&struct_b) => {} | ||
_ => {} | ||
} | ||
} |
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,10 @@ | ||
// check-pass | ||
trait MyCmp { | ||
fn cmp(&self) {} | ||
} | ||
impl MyCmp for f32 {} | ||
|
||
fn main() { | ||
// Ensure that `impl<F: FnPtr> Ord for F` is never considered for int and float infer vars. | ||
0.0.cmp(); | ||
} |
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