From 61a644a2eb680f5e12d17ec27563f9c141ba7d3a Mon Sep 17 00:00:00 2001 From: Jake Hughes Date: Fri, 8 Nov 2024 14:43:02 +0000 Subject: [PATCH] QoL fix: we display the type now in the error --- tests/ui/static/gc/fsa/stdlib_errors.stderr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ui/static/gc/fsa/stdlib_errors.stderr b/tests/ui/static/gc/fsa/stdlib_errors.stderr index 8c3a24db1e0fa..241ce9934a67a 100644 --- a/tests/ui/static/gc/fsa/stdlib_errors.stderr +++ b/tests/ui/static/gc/fsa/stdlib_errors.stderr @@ -18,7 +18,7 @@ LL | println!("Boom {}", self.1.0); // deref `Unsafe` | it uses a type which is not safe to use in a finalizer. ... LL | Gc::new(t); - | --------^- `Gc::new` requires that it implements the `FinalizeSafe` trait. + | --------^- `Gc::new` requires that Unsafe implements the `FinalizeSafe` trait. | = help: `Gc` runs finalizers on a separate thread, so drop methods must only use values whose types implement `FinalizerSafe`.