summary refs log tree commit diff
path: root/compiler/rustc_macros/src/serialize.rs
AgeCommit message (Collapse)AuthorLines
2021-12-16Use field span in `rustc_macros` when emitting decode callAaron Hill-11/+15
This will cause backtraces to point to the location of the field in the struct/enum, rather than the derive macro. This makes it clear which field was being decoded when the backtrace was captured (which is especially useful if there are multiple fields with the same type).
2021-11-22Avoid generating empty closures for fieldless enumsMark Rousskov-7/+18
For many enums, this avoids generating lots of tiny stubs that need to be codegen'd and then inlined and removed by LLVM.
2021-06-01Remove unused functions and arguments from rustc_serializebjorn3-10/+8
2021-01-01rustc_serialize: specialize opaque encoding of some u8 sequencesTyson Nottingham-2/+2
2020-08-30mv compiler to compiler/mark-0/+290