Skip to content

Commit 6e11329

Browse files
committed
mention 'lifetime extension' in promotion doc comments
1 parent 8e5a277 commit 6e11329

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_mir/transform/promote_consts.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ impl TempState {
101101
/// of a larger candidate.
102102
#[derive(Copy, Clone, PartialEq, Eq, Debug)]
103103
pub enum Candidate {
104-
/// Borrow of a constant temporary.
104+
/// Borrow of a constant temporary, candidate for lifetime extension.
105105
Ref(Location),
106106

107107
/// Promotion of the `x` in `[x; 32]`.

0 commit comments

Comments
 (0)