Skip to content

Commit 3574d57

Browse files
authored
Rollup merge of rust-lang#154264 - rustbot:docs-update, r=ehuss
Update books ## rust-embedded/book 1 commits in e88aa4403b4bf2071c8df9509160477e40179099..2463edeb8003c5743918b3739a9f6870b86396f5 2026-03-11 17:49:58 UTC to 2026-03-11 17:49:58 UTC - Update teaching material duration for bare-metal Rust (rust-embedded/book#409) ## rust-lang/reference 7 commits in c49e89cc8c7c2c43ca625a8d5b7ad9a53a9ce978..7446bf9697c95d155eef33c6a9d91fbd29a5e359 2026-03-18 01:46:01 UTC to 2026-03-10 18:10:22 UTC - Update `must_use` to use the attribute template (rust-lang/reference#1892) - Add a rule that enum discriminants may not use generic parameters (rust-lang/reference#2206) - Actually move out of Box in moving-out-of-Box test (rust-lang/reference#2204) - Add special cases and links relating to dereferencing boxes (rust-lang/reference#2075) - Move shebang into its own subchapter (rust-lang/reference#2199) - Fields of enums and unions should be allowed to overlap (rust-lang/reference#2168) - [type layout] Clarify size and alignment of pointers to unsized types (rust-lang/reference#2201)
2 parents f098563 + ae3d87c commit 3574d57

7 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/doc/embedded-book

tests/ui/parser/shebang/multiline-attrib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!
22
[allow(unused_variables)]
33
//@ check-pass
4-
//@ reference: input.shebang.inner-attribute
4+
//@ reference: shebang.syntax-description
55

66
fn main() {
77
let x = 5;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#![allow(unused_variables)]
22
//@ check-pass
3-
//@ reference: input.shebang.inner-attribute
3+
//@ reference: shebang.syntax-description
44
fn main() {
55
let x = 5;
66
}

tests/ui/parser/shebang/shebang-and-attrib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env run-cargo-script
22

33
//@ check-pass
4-
//@ reference: input.shebang.inner-attribute
4+
//@ reference: shebang.syntax-description
55
#![allow(unused_variables)]
66

77

tests/ui/parser/shebang/shebang-doc-comment.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
[allow(unused_variables)]
33
//~^ ERROR expected item, found `[`
44
5-
//@ reference: input.shebang.inner-attribute
5+
//@ reference: shebang.syntax-description

tests/ui/parser/shebang/sneaky-attrib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
[allow(unused_variables)]
1212
1313
//@ check-pass
14-
//@ reference: input.shebang.inner-attribute
14+
//@ reference: shebang.syntax-description
1515
fn main() {
1616
let x = 5;
1717
}

0 commit comments

Comments
 (0)