Skip to content

Commit c9fbaa6

Browse files
authored
Add a comment
1 parent 31ae3b2 commit c9fbaa6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compiler/rustc_middle/src/ty/flags.rs

+3
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ impl FlagComputation {
5959
{
6060
let mut computation = FlagComputation::new();
6161

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.
6265
if !value.bound_vars().is_empty() {
6366
computation.flags = computation.flags | TypeFlags::HAS_RE_LATE_BOUND;
6467
}

0 commit comments

Comments
 (0)