diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-07-19 02:51:07 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-07-24 12:29:45 +0300 |
| commit | bf8fc8adfc76f31a8fb6a4cb0dee02f262bd766a (patch) | |
| tree | a8da70f217469424dbb22c71cc9bdbb3e1a137ff /src/test/ui/thinlto | |
| parent | 76b1ffaf6c70abd3fa4da2e694dc709116258098 (diff) | |
| download | rust-bf8fc8adfc76f31a8fb6a4cb0dee02f262bd766a.tar.gz rust-bf8fc8adfc76f31a8fb6a4cb0dee02f262bd766a.zip | |
syntax_ext: Improve and simplify code generated by `#[global_allocator]`
Instead of
```
mod allocator_abi { /* methods */ }
```
we now generate
```
const _: () = { /* methods */ }
```
and use `std_path` for paths referring to standard library entities.
This way we no longer need to generate `use` and `extern crate` imports, and `#[global_allocator]` starts working inside unnamed blocks.
Diffstat (limited to 'src/test/ui/thinlto')
0 files changed, 0 insertions, 0 deletions
