mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-02 11:29:08 +00:00
Replace ad-hoc type path shortening logic for recursive mono instantiation errors to use `tcx.short_string()` instead.
17 lines
701 B
Plaintext
17 lines
701 B
Plaintext
error: reached the recursion limit while instantiating `function::<Option<Option<Option<Option<...>>>>>`
|
|
--> $DIR/infinite-instantiation.rs:22:9
|
|
|
|
|
LL | function(counter - 1, t.to_option());
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
note: `function` defined here
|
|
--> $DIR/infinite-instantiation.rs:20:1
|
|
|
|
|
LL | fn function<T:ToOpt + Clone>(counter: usize, t: T) {
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
= note: the full name for the type has been written to '$TEST_BUILD_DIR/infinite-instantiation.long-type-$LONG_TYPE_HASH.txt'
|
|
= note: consider using `--verbose` to print the full type name to the console
|
|
|
|
error: aborting due to 1 previous error
|
|
|