Skip to content

Commit c93198f

Browse files
committed
use _val to ignore parameter of any::type_name_of_val
1 parent c605199 commit c93198f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/libcore/any.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,6 @@ pub const fn type_name<T: ?Sized>() -> &'static str {
496496
/// ```
497497
#[unstable(feature = "type_name_of_val", issue = "66359")]
498498
#[rustc_const_unstable(feature = "const_type_name", issue = "63084")]
499-
pub const fn type_name_of_val<T: ?Sized>(val: &T) -> &'static str {
500-
let _ = val;
499+
pub const fn type_name_of_val<T: ?Sized>(_val: &T) -> &'static str {
501500
type_name::<T>()
502501
}

0 commit comments

Comments
 (0)