diff options
| author | bors <bors@rust-lang.org> | 2015-02-16 16:38:51 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-02-16 16:38:51 +0000 |
| commit | e4e7aa28566d062514a7a1f5534d76b9d82f524a (patch) | |
| tree | 55a2ef204f3faf8da57c84317fd2ca3e9bae80f1 /src/libstd/process.rs | |
| parent | c5db290bf6df986a6acd5ce993f278c18e55ca37 (diff) | |
| parent | b49f5281c2125eec67a9c671dae3ba6fb271611a (diff) | |
| download | rust-e4e7aa28566d062514a7a1f5534d76b9d82f524a.tar.gz rust-e4e7aa28566d062514a7a1f5534d76b9d82f524a.zip | |
Auto merge of #21744 - eddyb:rvalue-promotion, r=nikomatsakis
This includes everything necessary for promoting borrows of constant rvalues to `'static`. That is, `&expr` will have the type `&'static T` if `const T: &'static T = &expr;` is valid. There is a small exception, dereferences of raw pointers, as they misbehave. They still "work" in constants as I didn't want to break legitimate uses (are there any?). The qualification done here can be expanded to allow simple CTFE via `const fn`.
Diffstat (limited to 'src/libstd/process.rs')
0 files changed, 0 insertions, 0 deletions
