about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--library/core/src/any.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/core/src/any.rs b/library/core/src/any.rs
index 72528185707..bc66fdbd0d8 100644
--- a/library/core/src/any.rs
+++ b/library/core/src/any.rs
@@ -616,6 +616,7 @@ impl TypeId {
     /// assert_eq!(is_string(&0), false);
     /// assert_eq!(is_string(&"cookie monster".to_string()), true);
     /// ```
+    #[inline]
     #[must_use]
     #[stable(feature = "rust1", since = "1.0.0")]
     #[rustc_const_unstable(feature = "const_type_id", issue = "77125")]