Skip to content

Commit 93f877c

Browse files
committed
Document that lifetimes do not currently appear in any::type_name()'s output.
1 parent c9f1162 commit 93f877c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/libcore/any.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,9 @@ impl TypeId {
452452
/// `"std::option::Option<std::string::String>"`.
453453
///
454454
/// The returned string must not be considered to be a unique identifier of a
455-
/// type as multiple types may map to the same type name. In addition, the
455+
/// type as multiple types may map to the same type name. Similarly, there is no
456+
/// guarantee that all parts of a type will appear in the returned string: for
457+
/// example, lifetime specifiers are currently not included. In addition, the
456458
/// output may change between versions of the compiler.
457459
///
458460
/// The current implementation uses the same infrastructure as compiler

0 commit comments

Comments
 (0)