We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31ae3b2 commit c9fbaa6Copy full SHA for c9fbaa6
compiler/rustc_middle/src/ty/flags.rs
@@ -59,6 +59,9 @@ impl FlagComputation {
59
{
60
let mut computation = FlagComputation::new();
61
62
+ // In some cases, there are binders with variables that are unused (e.g., `for<'a> fn(u32)`).
63
+ // Set the flag to represent the `'a` in this example. Note that if there are late bound types
64
+ // or consts, this flag will also get set.
65
if !value.bound_vars().is_empty() {
66
computation.flags = computation.flags | TypeFlags::HAS_RE_LATE_BOUND;
67
}
0 commit comments