forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 7
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#96178 - Dylan-DPC:rollup-6z8pcob, r=Dylan-DPC
Rollup of 5 pull requests Successful merges: - rust-lang#96032 (Update books) - rust-lang#96136 (Reword clarification on lifetime for ptr->ref safety docs) - rust-lang#96143 (Fix snapshot --bless not working anymore in htmldocck) - rust-lang#96148 (Use revisions instead of nll compare mode for `/self/` ui tests) - rust-lang#96156 (Replace u8to64_le macro with u64::from_le_bytes) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
- Loading branch information
Showing
46 changed files
with
387 additions
and
237 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
Submodule book
updated
37 files
Submodule reference
updated
9 files
+3 −5 | src/attributes/codegen.md | |
+155 −5 | src/expressions/literal-expr.md | |
+12 −2 | src/expressions/operator-expr.md | |
+1 −1 | src/inline-assembly.md | |
+20 −0 | src/items/external-blocks.md | |
+1 −1 | src/paths.md | |
+1 −2 | src/patterns.md | |
+61 −0 | src/procedural-macros.md | |
+152 −119 | src/tokens.md |
Submodule rust-by-example
updated
4 files
+1 −1 | src/flow_control/match/destructuring/destructure_pointers.md | |
+1 −1 | src/fn/closures.md | |
+5 −9 | src/types/alias.md | |
+2 −1 | src/variable_bindings.md |
Submodule rustc-dev-guide
updated
9 files
+3 −4 | examples/rustc-driver-example.rs | |
+3 −3 | examples/rustc-driver-getting-diagnostics.rs | |
+3 −3 | examples/rustc-driver-interacting-with-the-ast.rs | |
+3 −2 | src/building/suggested.md | |
+2 −4 | src/conventions.md | |
+1 −1 | src/crates-io.md | |
+14 −0 | src/diagnostics.md | |
+13 −12 | src/method-lookup.md | |
+1 −1 | src/miri.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
6 changes: 3 additions & 3 deletions
6
..._types_pin_lifetime_mismatch-async.stderr → ...s_pin_lifetime_mismatch-async.base.stderr
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
13 changes: 10 additions & 3 deletions
13
src/test/ui/self/arbitrary_self_types_pin_lifetime_mismatch-async.rs
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 |
---|---|---|
@@ -1,20 +1,27 @@ | ||
// edition:2018 | ||
// revisions: base nll | ||
// ignore-compare-mode-nll | ||
//[nll] compile-flags: -Z borrowck=mir | ||
|
||
use std::pin::Pin; | ||
|
||
struct Foo; | ||
|
||
impl Foo { | ||
async fn a(self: Pin<&Foo>, f: &Foo) -> &Foo { f } | ||
//~^ ERROR lifetime mismatch | ||
//[base]~^ ERROR lifetime mismatch | ||
//[nll]~^^ lifetime may not live long enough | ||
|
||
async fn c(self: Pin<&Self>, f: &Foo, g: &Foo) -> (Pin<&Foo>, &Foo) { (self, f) } | ||
//~^ ERROR lifetime mismatch | ||
//[base]~^ ERROR lifetime mismatch | ||
//[nll]~^^ lifetime may not live long enough | ||
} | ||
|
||
type Alias<T> = Pin<T>; | ||
impl Foo { | ||
async fn bar<'a>(self: Alias<&Self>, arg: &'a ()) -> &() { arg } //~ ERROR E0623 | ||
async fn bar<'a>(self: Alias<&Self>, arg: &'a ()) -> &() { arg } | ||
//[base]~^ ERROR E0623 | ||
//[nll]~^^ lifetime may not live long enough | ||
} | ||
|
||
fn main() {} |
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
16 changes: 13 additions & 3 deletions
16
src/test/ui/self/arbitrary_self_types_pin_lifetime_mismatch.rs
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 |
---|---|---|
@@ -1,16 +1,26 @@ | ||
// revisions: base nll | ||
// ignore-compare-mode-nll | ||
//[nll] compile-flags: -Z borrowck=mir | ||
|
||
use std::pin::Pin; | ||
|
||
struct Foo; | ||
|
||
impl Foo { | ||
fn a(self: Pin<&Foo>, f: &Foo) -> &Foo { f } //~ ERROR E0623 | ||
fn a(self: Pin<&Foo>, f: &Foo) -> &Foo { f } | ||
//[base]~^ ERROR E0623 | ||
//[nll]~^^ lifetime may not live long enough | ||
|
||
fn c(self: Pin<&Self>, f: &Foo, g: &Foo) -> (Pin<&Foo>, &Foo) { (self, f) } //~ ERROR E0623 | ||
fn c(self: Pin<&Self>, f: &Foo, g: &Foo) -> (Pin<&Foo>, &Foo) { (self, f) } | ||
//[base]~^ ERROR E0623 | ||
//[nll]~^^ lifetime may not live long enough | ||
} | ||
|
||
type Alias<T> = Pin<T>; | ||
impl Foo { | ||
fn bar<'a>(self: Alias<&Self>, arg: &'a ()) -> &() { arg } //~ ERROR E0623 | ||
fn bar<'a>(self: Alias<&Self>, arg: &'a ()) -> &() { arg } | ||
//[base]~^ ERROR E0623 | ||
//[nll]~^^ lifetime may not live long enough | ||
} | ||
|
||
fn main() {} |
Oops, something went wrong.