diff options
| author | Laurence Tratt <laurie@tratt.net> | 2020-05-04 11:01:31 +0100 |
|---|---|---|
| committer | Laurence Tratt <laurie@tratt.net> | 2020-05-04 11:04:53 +0100 |
| commit | 93f877ce870e9fd13ad7c6a05ccb4abd46a3d106 (patch) | |
| tree | f457635e8b00f16c411dd2c5693f786fc10f1a39 | |
| parent | c9f1162a6ffc81adcb114a616899edad0f7d0750 (diff) | |
| download | rust-93f877ce870e9fd13ad7c6a05ccb4abd46a3d106.tar.gz rust-93f877ce870e9fd13ad7c6a05ccb4abd46a3d106.zip | |
Document that lifetimes do not currently appear in any::type_name()'s output.
| -rw-r--r-- | src/libcore/any.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libcore/any.rs b/src/libcore/any.rs index 67698e5409f..2628f890332 100644 --- a/src/libcore/any.rs +++ b/src/libcore/any.rs @@ -452,7 +452,9 @@ impl TypeId { /// `"std::option::Option<std::string::String>"`. /// /// The returned string must not be considered to be a unique identifier of a -/// type as multiple types may map to the same type name. In addition, the +/// type as multiple types may map to the same type name. Similarly, there is no +/// guarantee that all parts of a type will appear in the returned string: for +/// example, lifetime specifiers are currently not included. In addition, the /// output may change between versions of the compiler. /// /// The current implementation uses the same infrastructure as compiler |
