diff options
| author | Ralf Jung <post@ralfj.de> | 2020-08-14 11:17:03 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2020-08-14 11:17:03 +0200 |
| commit | 6e11329b54c2fc4e3ed73f84c1bce13f253cfed7 (patch) | |
| tree | 703cec12ca1c14a4c97a82509edb351a1e4beb9c | |
| parent | 8e5a27766ff14af36448a4b4c0a8bff84090168f (diff) | |
| download | rust-6e11329b54c2fc4e3ed73f84c1bce13f253cfed7.tar.gz rust-6e11329b54c2fc4e3ed73f84c1bce13f253cfed7.zip | |
mention 'lifetime extension' in promotion doc comments
| -rw-r--r-- | src/librustc_mir/transform/promote_consts.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_mir/transform/promote_consts.rs b/src/librustc_mir/transform/promote_consts.rs index c0564105701..94637bae44a 100644 --- a/src/librustc_mir/transform/promote_consts.rs +++ b/src/librustc_mir/transform/promote_consts.rs @@ -101,7 +101,7 @@ impl TempState { /// of a larger candidate. #[derive(Copy, Clone, PartialEq, Eq, Debug)] pub enum Candidate { - /// Borrow of a constant temporary. + /// Borrow of a constant temporary, candidate for lifetime extension. Ref(Location), /// Promotion of the `x` in `[x; 32]`. |
