From 3ae4abbaa312dce8086732fd8a4fb7f741e5e325 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Wed, 2 Oct 2019 14:23:36 -0400 Subject: [PATCH] correct coercion comments --- src/test/ui/async-await/return-ty-raw-ptr-coercion.rs | 2 +- src/test/ui/async-await/return-ty-unsize-coercion.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/ui/async-await/return-ty-raw-ptr-coercion.rs b/src/test/ui/async-await/return-ty-raw-ptr-coercion.rs index 570e745f8c7..9fe0869cad6 100644 --- a/src/test/ui/async-await/return-ty-raw-ptr-coercion.rs +++ b/src/test/ui/async-await/return-ty-raw-ptr-coercion.rs @@ -11,7 +11,7 @@ use std::fmt::Debug; const TMP: u32 = 22; -// Coerce from `Box<"asdf">` to `Box`. +// Coerce from `&u32` to `*const u32` fn raw_pointer_coercion() { fn sync_example() -> *const u32 { &TMP diff --git a/src/test/ui/async-await/return-ty-unsize-coercion.rs b/src/test/ui/async-await/return-ty-unsize-coercion.rs index 4d1b87677ed..8855e2e55ef 100644 --- a/src/test/ui/async-await/return-ty-unsize-coercion.rs +++ b/src/test/ui/async-await/return-ty-unsize-coercion.rs @@ -9,7 +9,7 @@ use std::fmt::Debug; -// Coerce from `Box<"asdf">` to `Box`. +// Unsizing coercion from `Box<&'static str>` to `Box`. fn unsize_trait_coercion() { fn sync_example() -> Box { Box::new("asdf") @@ -20,7 +20,7 @@ fn unsize_trait_coercion() { } } -// Coerce from `Box<[u32; N]>` to `Box<[32]>`. +// Unsizing coercion from `Box<[u32; N]>` to `Box<[32]>`. fn unsize_slice_coercion() { fn sync_example() -> Box<[u32]> { Box::new([0])