diff options
| author | bors <bors@rust-lang.org> | 2016-03-15 15:03:00 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2016-03-15 15:03:00 -0700 |
| commit | c66d2380a810c9a2b3dbb4f93a830b101ee49cc2 (patch) | |
| tree | f6df78f236db727ea65634bf48a2e978e2a5e1f1 /src/libstd/sys/unix/stack_overflow.rs | |
| parent | 74dfc1ddd9d6a9f541bc526c3401b92bcd16bd2b (diff) | |
| parent | 67395d816feec0e3f6ebd8a0f0075cf72bdb818e (diff) | |
| download | rust-c66d2380a810c9a2b3dbb4f93a830b101ee49cc2.tar.gz rust-c66d2380a810c9a2b3dbb4f93a830b101ee49cc2.zip | |
Auto merge of #31838 - aochagavia:trans, r=nrc
Refactor rustc_trans::save to allow other backends than CSV r? @nrc Things done: * Moved `(.*)Data` structs to an own module, so they can be imported easily (`use data::*`). * Created a `Dump` trait with callbacks for dumping items. * Refactored `DumpCsvVisitor` to use an implementor of `Dump` instead of dumping as CSV. Renamed it to `DumpVisitor`. * Created a `DumpCsv` struct that implements `Dump` and serializes items as CSV. I tried to extract some of the logic contained in `FmtStr` and `Recorder`, such as normalization of ids (I put it in `DumpVisitor`). I think it makes sense to provide the same information to other implementors of `Dump`, instead of normalizing only for `DumpCsv`. However, there is still some logic related to spans implemented only for `DumpCsv`. I just thought it would be better to merge this as soon as possible, since there are so much changes, and fix this afterwards.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
