diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2024-03-07 14:23:52 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2024-03-11 08:48:03 +0000 |
| commit | 55ea94402b5c57a8c937a0efdd4b86e3521dcd7f (patch) | |
| tree | e1b4079425d73f33636fa9ec19f502a4352fbd38 /tests/ui/kindck/kindck-send-object1.stderr | |
| parent | e2e751e76d0242102ef1095b185850f4239fa5ab (diff) | |
| download | rust-55ea94402b5c57a8c937a0efdd4b86e3521dcd7f.tar.gz rust-55ea94402b5c57a8c937a0efdd4b86e3521dcd7f.zip | |
Run a single huge `par_body_owners` instead of many small ones after each other.
This improves parallel rustc parallelism by avoiding the bottleneck after each individual `par_body_owners` (because it needs to wait for queries to finish, so if there is one long running one, a lot of cores will be idle while waiting for the single query).
Diffstat (limited to 'tests/ui/kindck/kindck-send-object1.stderr')
| -rw-r--r-- | tests/ui/kindck/kindck-send-object1.stderr | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/ui/kindck/kindck-send-object1.stderr b/tests/ui/kindck/kindck-send-object1.stderr index f2aa814676f..5d06a2ab4da 100644 --- a/tests/ui/kindck/kindck-send-object1.stderr +++ b/tests/ui/kindck/kindck-send-object1.stderr @@ -12,6 +12,14 @@ note: required by a bound in `assert_send` LL | fn assert_send<T:Send+'static>() { } | ^^^^ required by this bound in `assert_send` +error: lifetime may not live long enough + --> $DIR/kindck-send-object1.rs:14:5 + | +LL | fn test52<'a>() { + | -- lifetime `'a` defined here +LL | assert_send::<&'a (dyn Dummy + Sync)>(); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'a` must outlive `'static` + error[E0277]: `(dyn Dummy + 'a)` cannot be sent between threads safely --> $DIR/kindck-send-object1.rs:29:19 | @@ -28,14 +36,6 @@ note: required by a bound in `assert_send` LL | fn assert_send<T:Send+'static>() { } | ^^^^ required by this bound in `assert_send` -error: lifetime may not live long enough - --> $DIR/kindck-send-object1.rs:14:5 - | -LL | fn test52<'a>() { - | -- lifetime `'a` defined here -LL | assert_send::<&'a (dyn Dummy + Sync)>(); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'a` must outlive `'static` - error: aborting due to 3 previous errors For more information about this error, try `rustc --explain E0277`. |
