diff options
| author | bors <bors@rust-lang.org> | 2013-03-11 21:12:43 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-03-11 21:12:43 -0700 |
| commit | 9b9ffd5b4196d409dd76c224442ee0fee91fd9e4 (patch) | |
| tree | 7539a8b5ccee75ed63ea57e822ddde4f8033f650 /src/libsyntax/parse | |
| parent | 48cb9a8ac0b95408a142ea7bc9767414eba2cbb3 (diff) | |
| parent | 1df0a0ba0f04e15d74307088dd3c952dd61f2183 (diff) | |
| download | rust-9b9ffd5b4196d409dd76c224442ee0fee91fd9e4.tar.gz rust-9b9ffd5b4196d409dd76c224442ee0fee91fd9e4.zip | |
auto merge of #5304 : jld/rust/const-adjustments, r=graydon
These changes make const translation use adjustments (autodereference, autoreference, bare-fn-to-closure), like normal code does, replacing some ad-hoc logic that wasn't always right. As a convenient side-effect, explicit dereference (both of pointers and of newtypes) is also supported in const expressions. There is also a “bonus fix” for a bug in the pretty-printer exposed by one of the added tests.
Diffstat (limited to 'src/libsyntax/parse')
0 files changed, 0 insertions, 0 deletions
