-
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 #114821 - matthiaskrgr:rollup-bahtz9m, r=matthiaskrgr
Rollup of 5 pull requests Successful merges: - #114745 (Make Const more useful in smir) - #114752 (fixed *const [type error] does not implement the Copy trait) - #114760 (DebugInfo: Updates test cases that add method declarations.) - #114815 (Update books) - #114817 (Remove unnecessary FIXME) r? `@ghost` `@rustbot` modify labels: rollup
- Loading branch information
Showing
12 changed files
with
71 additions
and
13 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
2 files
+3 −3 | redirects/using-rust-without-the-standard-library.md | |
+3 −3 | src/ch10-03-lifetime-syntax.md |
Submodule reference
updated
3 files
+16 −8 | src/attributes/codegen.md | |
+2 −0 | src/items/external-blocks.md | |
+73 −0 | src/trait-bounds.md |
Submodule rustc-dev-guide
updated
8 files
+1 −0 | src/SUMMARY.md | |
+2 −2 | src/debugging-support-in-rustc.md | |
+9 −8 | src/diagnostics/diagnostic-structs.md | |
+1 −1 | src/mir/visitor.md | |
+1 −1 | src/part-2-intro.md | |
+1 −1 | src/part-3-intro.md | |
+1 −1 | src/part-4-intro.md | |
+419 −0 | src/return-position-impl-trait-in-trait.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,26 @@ | ||
// compile-flags: -g -Cno-prepopulate-passes | ||
|
||
// Verify that we added a declaration for a method. | ||
|
||
// CHECK: define{{.*}}@method{{.*}} !dbg ![[METHOD_DEF_DBG:[0-9]+]] | ||
// CHECK: define{{.*}}@function{{.*}} !dbg ![[FUNC_DEF_DBG:[0-9]+]] | ||
|
||
#![crate_type = "lib"] | ||
|
||
// CHECK-DAG: ![[FOO_DBG:[0-9]+]] = !DICompositeType(tag: {{.*}} name: "Foo", {{.*}} identifier: | ||
pub struct Foo; | ||
|
||
impl Foo { | ||
// CHECK-DAG: ![[METHOD_DEF_DBG]] = distinct !DISubprogram(name: "method"{{.*}}, scope: ![[FOO_DBG]]{{.*}}DISPFlagDefinition{{.*}}, declaration: ![[METHOD_DECL_DBG:[0-9]+]] | ||
// CHECK-DAG: ![[METHOD_DECL_DBG]] = !DISubprogram(name: "method"{{.*}}, scope: ![[FOO_DBG]] | ||
#[no_mangle] | ||
pub fn method() {} | ||
} | ||
|
||
// CHECK: ![[FUNC_DEF_DBG]] = distinct !DISubprogram(name: "function" | ||
// CHECK-NOT: declaration | ||
// CHECK-SAME: DISPFlagDefinition | ||
// CHECK-NOT: declaration | ||
// CHECK-SAME: ) | ||
#[no_mangle] | ||
pub fn function() {} |
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,7 @@ | ||
// test that "error: arguments for inline assembly must be copyable" doesn't show up in this code | ||
// needs-asm-support | ||
// only-x86_64 | ||
fn main() { | ||
let peb: *const PEB; //~ ERROR cannot find type `PEB` in this scope [E0412] | ||
unsafe { std::arch::asm!("mov {0}, fs:[0x30]", out(reg) peb); } | ||
} |
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,9 @@ | ||
error[E0412]: cannot find type `PEB` in this scope | ||
--> $DIR/issue-113788.rs:5:21 | ||
| | ||
LL | let peb: *const PEB; | ||
| ^^^ not found in this scope | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0412`. |