about summary refs log tree commit diff
path: root/src/test/codegen-units/item-collection/static-init.rs
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-16/+0
2020-08-30ty: remove obsolete printerDavid Wood-3/+3
This commit removes the obsolete printer and replaces all uses of it with `FmtPrinter`. Of the replaced uses, all but one use was in `debug!` logging, two cases were notable: - `MonoItem::to_string` is used in `-Z print-mono-items` and therefore affects the output of all codegen-units tests. - `DefPathBasedNames` was used in `librustc_codegen_llvm/type_of.rs` with `LLVMStructCreateNamed` and that'll now get different values, but this should result in no functional change. Signed-off-by: David Wood <david@davidtw.co>
2020-07-22sess: disable polymorphisationDavid Wood-1/+1
This commit disables polymorphisation to resolve regressions related to closures which inherit unused generic parameters and are then used in casts or reflection. Signed-off-by: David Wood <david@davidtw.co>
2020-07-20mir: `unused_generic_params` queryDavid Wood-1/+1
This commit implements the `unused_generic_params` query, an initial version of polymorphization which detects when an item does not use generic parameters and is being needlessly monomorphized as a result. Signed-off-by: David Wood <david@davidtw.co>
2019-04-23Remove unnecessary ignore-tidy-linelengthvarkor-1/+0
2018-12-25Remove licensesMark Rousskov-10/+0
2018-05-17Rename trans to codegen everywhere.Irina Popa-5/+4
2017-12-26Convert codegen-unit tests to use `start` instead of `main`Bastian Köcher-21/+7
The new Termination traits brings in the unwinding machinery and that blows up the required `TRANS_ITEM`s.
2017-12-26Fixes codegen-units testsBastian Köcher-0/+20
2017-03-18translate drop glue using MIRAriel Ben-Yehuda-1/+0
Drop of arrays is now translated in trans::block in an ugly way that I should clean up in a later PR, and does not handle panics in the middle of an array drop, but this commit & PR are growing too big.
2016-05-11Add test for collecting items in staticsJames Miller-0/+23