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#105348 - JohnTitor:rollup-q9bichr, r=JohnTitor
Rollup of 10 pull requests Successful merges: - rust-lang#104967 (Fix UI issues with Rustdoc scrape-examples feature.) - rust-lang#105207 (interpret: clobber return place when calling function) - rust-lang#105246 (Fix --pass in compiletest) - rust-lang#105256 (Add small comment explaining what `method-margins.goml` test is about) - rust-lang#105289 (Fix dupe word typos) - rust-lang#105309 (rustdoc: remove no-op mobile CSS `.sidebar { margin: 0; padding: 0 }`) - rust-lang#105313 (Update books) - rust-lang#105315 (Normalize inherent associated types after substitution) - rust-lang#105324 (Point at GAT `where` clause when an obligation is unsatisfied) - rust-lang#105338 (Tweak "the following other types implement trait") Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
- Loading branch information
Showing
52 changed files
with
285 additions
and
426 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
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 embedded-book
updated
4 files
+1 −4 | src/intro/install/linux.md | |
+3 −1 | src/intro/no-std.md | |
+1 −1 | src/peripherals/singletons.md | |
+1 −1 | src/start/hardware.md |
Submodule nomicon
updated
8 files
+1 −1 | src/lifetime-mismatch.md | |
+0 −1 | src/vec/vec-alloc.md | |
+0 −2 | src/vec/vec-final.md | |
+10 −6 | src/vec/vec-insert-remove.md | |
+6 −8 | src/vec/vec-into-iter.md | |
+8 −11 | src/vec/vec-layout.md | |
+0 −2 | src/vec/vec-raw.md | |
+2 −3 | src/vec/vec-zsts.md |
Submodule reference
updated
11 files
+2 −0 | src/attributes.md | |
+23 −0 | src/attributes/codegen.md | |
+16 −2 | src/behavior-considered-undefined.md | |
+1 −1 | src/comments.md | |
+11 −7 | src/expressions/literal-expr.md | |
+4 −3 | src/items/extern-crates.md | |
+17 −0 | src/items/external-blocks.md | |
+2 −0 | src/macros-by-example.md | |
+1 −1 | src/special-types-and-traits.md | |
+61 −86 | src/tokens.md | |
+1 −1 | src/trait-bounds.md |
Submodule rust-by-example
updated
5 files
+12 −10 | src/fn/closures.md | |
+1 −1 | src/hello/print.md | |
+1 −1 | src/scope/lifetime.md | |
+34 −0 | src/std_misc/file/read_lines.md | |
+3 −0 | triagebot.toml |
Submodule rustc-dev-guide
updated
19 files
+90 −98 | src/backend/updating-llvm.md | |
+4 −4 | src/bug-fix-procedure.md | |
+3 −1 | src/building/how-to-build-and-run.md | |
+3 −3 | src/building/suggested.md | |
+2 −2 | src/closure.md | |
+1 −1 | src/constants.md | |
+4 −2 | src/contributing.md | |
+1 −1 | src/conventions.md | |
+6 −6 | src/diagnostics/diagnostic-structs.md | |
+0 −5 | src/diagnostics/lintstore.md | |
+39 −39 | src/macro-expansion.md | |
+1 −1 | src/overview.md | |
+1 −1 | src/parallel-rustc.md | |
+3 −3 | src/part-5-intro.md | |
+5 −5 | src/queries/incremental-compilation-in-detail.md | |
+1 −1 | src/rustdoc-internals.md | |
+1 −1 | src/salsa.md | |
+5 −5 | src/stability.md | |
+17 −13 | src/type-inference.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
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 |
---|---|---|
|
@@ -22,4 +22,5 @@ fn main() { | |
println!("hello world!"); | ||
println!("hello world!"); | ||
} | ||
scrape_examples::test(); | ||
} |
22 changes: 22 additions & 0 deletions
22
src/test/ui/associated-inherent-types/normalize-projection-0.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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// check-pass | ||
|
||
#![feature(inherent_associated_types)] | ||
#![allow(incomplete_features)] | ||
|
||
struct S<T>(T); | ||
|
||
impl<T: O> S<T> { | ||
type P = <T as O>::P; | ||
} | ||
|
||
trait O { | ||
type P; | ||
} | ||
|
||
impl O for i32 { | ||
type P = String; | ||
} | ||
|
||
fn main() { | ||
let _: S<i32>::P = String::new(); | ||
} |
22 changes: 22 additions & 0 deletions
22
src/test/ui/associated-inherent-types/normalize-projection-1.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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// check-pass | ||
|
||
#![feature(inherent_associated_types)] | ||
#![allow(incomplete_features)] | ||
|
||
struct S; | ||
|
||
impl S { | ||
type P<T: O> = <T as O>::P; | ||
} | ||
|
||
trait O { | ||
type P; | ||
} | ||
|
||
impl O for i32 { | ||
type P = String; | ||
} | ||
|
||
fn main() { | ||
let _: S::P<i32> = String::new(); | ||
} |
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
Oops, something went wrong.