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#102558 - matthiaskrgr:rollup-0odec1c, r=matth…
…iaskrgr Rollup of 6 pull requests Successful merges: - rust-lang#102195 (Improve the COPYRIGHT file) - rust-lang#102313 (Update docs so that deprecated method points to relevant method) - rust-lang#102353 (Allow passing rustix_use_libc cfg using RUSTFLAGS) - rust-lang#102405 (Remove a FIXME whose code got moved away in rust-lang#62883.) - rust-lang#102525 (rustdoc: remove orphaned link on array bracket) - rust-lang#102557 (fix issue with x.py setup running into explicit panic) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
- Loading branch information
Showing
10 changed files
with
328 additions
and
174 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<code>pub fn delta<T>() -> <a class="struct" href="struct.MyBox.html" title="struct foo::MyBox">MyBox</a><<a class="primitive" href="{{channel}}/core/primitive.array.html">[T; 1]</a>></code> |
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 @@ | ||
<code>pub fn gamma() -> <a class="struct" href="struct.MyBox.html" title="struct foo::MyBox">MyBox</a><[<a class="primitive" href="{{channel}}/core/primitive.u32.html">u32</a>; <a class="primitive" href="{{channel}}/core/primitive.array.html">1</a>]></code> |
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 @@ | ||
<code>pub fn beta<T>() -> &'static <a class="primitive" href="{{channel}}/core/primitive.array.html">[T; 1]</a></code> |
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 @@ | ||
<code>pub fn alpha() -> &'static [<a class="primitive" href="{{channel}}/core/primitive.u32.html">u32</a>; <a class="primitive" href="{{channel}}/core/primitive.array.html">1</a>]</code> |
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,28 @@ | ||
#![crate_name = "foo"] | ||
#![no_std] | ||
|
||
pub struct MyBox<T: ?Sized>(*const T); | ||
|
||
// @has 'foo/fn.alpha.html' | ||
// @snapshot link_slice_u32 - '//pre[@class="rust fn"]/code' | ||
pub fn alpha() -> &'static [u32; 1] { | ||
loop {} | ||
} | ||
|
||
// @has 'foo/fn.beta.html' | ||
// @snapshot link_slice_generic - '//pre[@class="rust fn"]/code' | ||
pub fn beta<T>() -> &'static [T; 1] { | ||
loop {} | ||
} | ||
|
||
// @has 'foo/fn.gamma.html' | ||
// @snapshot link_box_u32 - '//pre[@class="rust fn"]/code' | ||
pub fn gamma() -> MyBox<[u32; 1]> { | ||
loop {} | ||
} | ||
|
||
// @has 'foo/fn.delta.html' | ||
// @snapshot link_box_generic - '//pre[@class="rust fn"]/code' | ||
pub fn delta<T>() -> MyBox<[T; 1]> { | ||
loop {} | ||
} |