Use the diagnostic namespace (#2246)

This commit is contained in:
Georg Semmler
2023-09-29 09:25:26 +02:00
committed by GitHub
parent 930e2ab7c1
commit 2f6200dfbd
26 changed files with 126 additions and 109 deletions
@@ -6,14 +6,14 @@ error: future cannot be sent between threads safely
|
= help: within `impl Future<Output = ()>`, the trait `Send` is not implemented for `Rc<()>`
note: future is not `Send` as this value is used across an await
--> tests/debug_handler/fail/not_send.rs:6:13
--> tests/debug_handler/fail/not_send.rs:6:14
|
5 | let rc = std::rc::Rc::new(());
| -- has type `Rc<()>` which is not `Send`
5 | let _rc = std::rc::Rc::new(());
| --- has type `Rc<()>` which is not `Send`
6 | async {}.await;
| ^^^^^^ await occurs here, with `rc` maybe used later
| ^^^^^ await occurs here, with `_rc` maybe used later
7 | }
| - `rc` is later dropped here
| - `_rc` is later dropped here
note: required by a bound in `check`
--> tests/debug_handler/fail/not_send.rs:3:1
|