8df39667dc
This option guards the logic of writing long type names in files and instead using short forms in error messages in rustc_middle/ty/error behind a flag. The main motivation for this change is to disable this behaviour when running ui tests. This logic can be triggered by running tests in a directory that has a long enough path, e.g. /my/very-long-path/where/rust-codebase/exists/ This means ui tests can fail depending on how long the path to their file is. Some ui tests actually rely on this behaviour for their assertions, so for those we enable the flag manually.
39 lines
1.8 KiB
Plaintext
39 lines
1.8 KiB
Plaintext
error[E0277]: `Helper<'a, T>` is not an iterator
|
|
--> $DIR/inherent-bound-in-probe.rs:41:21
|
|
|
|
|
LL | type IntoIter = Helper<'a, T>;
|
|
| ^^^^^^^^^^^^^ `Helper<'a, T>` is not an iterator
|
|
|
|
|
= help: the trait `Iterator` is not implemented for `Helper<'a, T>`
|
|
note: required by a bound in `std::iter::IntoIterator::IntoIter`
|
|
--> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
|
|
|
|
error[E0275]: overflow evaluating the requirement `&_: IntoIterator`
|
|
--> $DIR/inherent-bound-in-probe.rs:45:17
|
|
|
|
|
LL | Helper::new(&self.0)
|
|
| ^^^
|
|
|
|
|
= help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`inherent_bound_in_probe`)
|
|
note: required for `&BitReaderWrapper<_>` to implement `IntoIterator`
|
|
--> $DIR/inherent-bound-in-probe.rs:35:13
|
|
|
|
|
LL | impl<'a, T> IntoIterator for &'a BitReaderWrapper<T>
|
|
| ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^
|
|
LL | where
|
|
LL | &'a T: IntoIterator<Item = &'a u8>,
|
|
| ------------- unsatisfied trait bound introduced here
|
|
= note: 126 redundant requirements hidden
|
|
= note: required for `&BitReaderWrapper<BitReaderWrapper<BitReaderWrapper<BitReaderWrapper<BitReaderWrapper<...>>>>>` to implement `IntoIterator`
|
|
= note: the full type name has been written to '$TEST_BUILD_DIR/methods/inherent-bound-in-probe/inherent-bound-in-probe.long-type-hash.txt'
|
|
note: required by a bound in `Helper<'a, T>`
|
|
--> $DIR/inherent-bound-in-probe.rs:26:25
|
|
|
|
|
LL | &'a T: IntoIterator<Item = &'a u8>,
|
|
| ^^^^^^^^^^^^^ required by this bound in `Helper<'a, T>`
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
Some errors have detailed explanations: E0275, E0277.
|
|
For more information about an error, try `rustc --explain E0275`.
|