Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb7b350c

Browse files
committed
docs
1 parent213ad10 commitb7b350c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎compiler/rustc_middle/src/ty/region.rs‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,12 @@ impl std::fmt::Debug for EarlyParamRegion {
352352
#[derive(HashStable)]
353353
/// The parameter representation of late-bound function parameters, "some region
354354
/// at least as big as the scope `fr.scope`".
355+
///
356+
/// Similar to a placeholder region as we create `LateParam` regions when entering a binder
357+
/// except they are always in the root universe and instead of using a boundvar to distinguish
358+
/// between others we use the `DefId` of the parameter. For this reason the `bound_region` field
359+
/// should basically always be `BoundRegionKind::BrNamed` as otherwise there is no way of telling
360+
/// different parameters apart.
355361
pubstructLateParamRegion{
356362
pubscope:DefId,
357363
pubbound_region:BoundRegionKind,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp