diff options
| author | bors <bors@rust-lang.org> | 2020-05-22 15:33:32 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-05-22 15:33:32 +0000 |
| commit | 215f2d3294b08dbdcf8f7d40de21ef1e7eae0a2d (patch) | |
| tree | 7e00d93c42f269f074a0570ad48cc48ad98cf161 /src/test | |
| parent | a9ca1ec9280ca1e5020edd699917c3367a30a798 (diff) | |
| parent | e7503ca7bf78eece210c061f324ecfc8e3955321 (diff) | |
| download | rust-215f2d3294b08dbdcf8f7d40de21ef1e7eae0a2d.tar.gz rust-215f2d3294b08dbdcf8f7d40de21ef1e7eae0a2d.zip | |
Auto merge of #72464 - RalfJung:rollup-xhm7w7u, r=RalfJung
Rollup of 7 pull requests Successful merges: - #71829 (Fix suggestion to borrow in struct) - #72123 (Stabilize process_set_argv0 feature for Unix) - #72235 (Clean up E0590 explanation) - #72345 (Clean up E0593 explanation) - #72376 ([self-profling] Record the cgu name when doing codegen for a module) - #72399 (Add fast-path optimization for Ipv4Addr::fmt) - #72435 (rustllvm: Fix warnings about unused function parameters) Failed merges: r? @ghost
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/ui/command/command-argv0-debug.rs | 2 | ||||
| -rw-r--r-- | src/test/ui/command/command-argv0.rs | 2 | ||||
| -rw-r--r-- | src/test/ui/traits/traits-issue-71136.rs | 8 | ||||
| -rw-r--r-- | src/test/ui/traits/traits-issue-71136.stderr | 13 |
4 files changed, 21 insertions, 4 deletions
diff --git a/src/test/ui/command/command-argv0-debug.rs b/src/test/ui/command/command-argv0-debug.rs index 133d2ada2b2..cb948a91c10 100644 --- a/src/test/ui/command/command-argv0-debug.rs +++ b/src/test/ui/command/command-argv0-debug.rs @@ -4,8 +4,6 @@ // ignore-cloudabi no processes // ignore-emscripten no processes // ignore-sgx no processes -#![feature(process_set_argv0)] - use std::os::unix::process::CommandExt; use std::process::Command; diff --git a/src/test/ui/command/command-argv0.rs b/src/test/ui/command/command-argv0.rs index 56a9fb4d391..e3394e0567c 100644 --- a/src/test/ui/command/command-argv0.rs +++ b/src/test/ui/command/command-argv0.rs @@ -4,8 +4,6 @@ // ignore-cloudabi no processes // ignore-emscripten no processes // ignore-sgx no processes -#![feature(process_set_argv0)] - use std::env; use std::os::unix::process::CommandExt; use std::process::Command; diff --git a/src/test/ui/traits/traits-issue-71136.rs b/src/test/ui/traits/traits-issue-71136.rs new file mode 100644 index 00000000000..b21756e2b63 --- /dev/null +++ b/src/test/ui/traits/traits-issue-71136.rs @@ -0,0 +1,8 @@ +struct Foo(u8); + +#[derive(Clone)] +struct FooHolster { + the_foos: Vec<Foo>, //~ERROR Clone +} + +fn main() {} diff --git a/src/test/ui/traits/traits-issue-71136.stderr b/src/test/ui/traits/traits-issue-71136.stderr new file mode 100644 index 00000000000..4c0a43062f6 --- /dev/null +++ b/src/test/ui/traits/traits-issue-71136.stderr @@ -0,0 +1,13 @@ +error[E0277]: the trait bound `Foo: std::clone::Clone` is not satisfied + --> $DIR/traits-issue-71136.rs:5:5 + | +LL | the_foos: Vec<Foo>, + | ^^^^^^^^^^^^^^^^^^ expected an implementor of trait `std::clone::Clone` + | + = note: required because of the requirements on the impl of `std::clone::Clone` for `std::vec::Vec<Foo>` + = note: required by `std::clone::Clone::clone` + = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0277`. |
