-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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 #56846 - pietroalbini:rollup, r=pietroalbini
Rollup of 7 pull requests Successful merges: - #56677 (#[must_use] on traits in stdlib) - #56679 (overhaul external doc attribute diagnostics) - #56682 (Update the stdsimd submodule) - #56691 (fix install broken link) - #56710 (Always set the RDRAND and RDSEED features on SGX) - #56713 (Test capacity of ZST vector) - #56841 (Add some unit tests to compiletest) Failed merges: r? @ghost
- Loading branch information
Showing
14 changed files
with
233 additions
and
20 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
Submodule stdsimd
updated
from 5e628c to 3c0503
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,47 @@ | ||
#![deny(unused_must_use)] | ||
#![feature(futures_api, pin, arbitrary_self_types)] | ||
|
||
use std::iter::Iterator; | ||
use std::future::Future; | ||
|
||
use std::task::{Poll, LocalWaker}; | ||
use std::pin::Pin; | ||
use std::unimplemented; | ||
|
||
struct MyFuture; | ||
|
||
impl Future for MyFuture { | ||
type Output = u32; | ||
|
||
fn poll(self: Pin<&mut Self>, lw: &LocalWaker) -> Poll<u32> { | ||
Poll::Pending | ||
} | ||
} | ||
|
||
fn iterator() -> impl Iterator { | ||
std::iter::empty::<u32>() | ||
} | ||
|
||
fn future() -> impl Future { | ||
MyFuture | ||
} | ||
|
||
fn square_fn_once() -> impl FnOnce(u32) -> u32 { | ||
|x| x * x | ||
} | ||
|
||
fn square_fn_mut() -> impl FnMut(u32) -> u32 { | ||
|x| x * x | ||
} | ||
|
||
fn square_fn() -> impl Fn(u32) -> u32 { | ||
|x| x * x | ||
} | ||
|
||
fn main() { | ||
iterator(); //~ ERROR unused implementer of `std::iter::Iterator` that must be used | ||
future(); //~ ERROR unused implementer of `std::future::Future` that must be used | ||
square_fn_once(); //~ ERROR unused implementer of `std::ops::FnOnce` that must be used | ||
square_fn_mut(); //~ ERROR unused implementer of `std::ops::FnMut` that must be used | ||
square_fn(); //~ ERROR unused implementer of `std::ops::Fn` that must be used | ||
} |
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 @@ | ||
�( |
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 |
---|---|---|
@@ -1,8 +1,40 @@ | ||
error: couldn't read $DIR/not-a-file.md: $FILE_NOT_FOUND_MSG (os error 2) | ||
--> $DIR/external-doc-error.rs:5:1 | ||
--> $DIR/external-doc-error.rs:5:17 | ||
| | ||
LL | #[doc(include = "not-a-file.md")] //~ ERROR: couldn't read | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
LL | #[doc(include = "not-a-file.md")] | ||
| ^^^^^^^^^^^^^^^ couldn't read file | ||
| | ||
= help: external doc paths are relative to the crate root | ||
|
||
error: $DIR/auxiliary/invalid-utf8.txt wasn't a utf-8 file | ||
--> $DIR/external-doc-error.rs:9:17 | ||
| | ||
LL | #[doc(include = "auxiliary/invalid-utf8.txt")] | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ contains invalid utf-8 | ||
|
||
error: expected path to external documentation | ||
--> $DIR/external-doc-error.rs:12:7 | ||
| | ||
LL | #[doc(include)] | ||
| ^^^^^^^ help: provide a file path with `=`: `include = "<path>"` | ||
|
||
error: expected path to external documentation | ||
--> $DIR/external-doc-error.rs:17:7 | ||
| | ||
LL | #[doc(include("../README.md"))] | ||
| ^^^^^^^^^^^^^^^^^^^^^^^ help: provide a file path with `=`: `include = "../README.md"` | ||
|
||
error: expected path to external documentation | ||
--> $DIR/external-doc-error.rs:22:7 | ||
| | ||
LL | #[doc(include = 123)] | ||
| ^^^^^^^^^^^^^ help: provide a file path with `=`: `include = "<path>"` | ||
|
||
error: expected path to external documentation | ||
--> $DIR/external-doc-error.rs:27:7 | ||
| | ||
LL | #[doc(include(123))] | ||
| ^^^^^^^^^^^^ help: provide a file path with `=`: `include = "<path>"` | ||
|
||
error: aborting due to previous error | ||
error: aborting due to 6 previous errors | ||
|
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