about summary refs log tree commit diff
path: root/compiler/rustc_data_structures/src/graph/scc/tests.rs
AgeCommit message (Collapse)AuthorLines
2025-04-28Use associated types for SCC annotations, per code review suggestionAmanda Stjerna-2/+8
2025-04-28Decouple SCC annotations from SCCsAmanda Stjerna-72/+106
This rewires SCC annotations to have them be a separate, visitor-type data structure. It was broken out of #130227, which needed them to be able to remove unused annotations after computation without recomputing the SCCs themselves. As a drive-by it also removes some redundant code from the hot loop in SCC construction for a performance improvement.
2025-02-08Rustfmtbjorn3-40/+43
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-43/+40
2024-06-12Extend SCC construction to enable extra functionalityAmanda Stjerna-7/+207
This patch has been extracted from #123720. It specifically enhances `Sccs` to allow tracking arbitrary commutative properties of SCCs, including - reachable values (max/min) - SCC-internal values (max/min) This helps with among other things universe computation: we can now identify SCC universes as a straightforward "find max/min" operation during SCC construction. It's also more or less zero-cost; don't use the new features, don't pay for them. This commit also vastly extends the documentation of the SCCs module, which I had a very hard time following.
2023-03-21Add `-Z time-passes-format` to allow specifying a JSON output for `-Z ↵John Kåre Alsaker-3/+3
time-passes`
2023-01-17Remove double spaces after dots in commentsMaybe Waffle-1/+1
2022-06-04Adapt rustc_data_structures tests to run in strict miriNilstrieb-0/+3
Some tests took too long and owning_ref is fundamentally flawed, so don't run these tests or run them with a shorter N. This makes miri with `-Zmiri-strict-provenance` usable to find UB.
2020-11-05Add test for sccc of a long listAndreas Molzer-0/+26
2020-10-31Add a benchmark test for sccc findingAndreas Molzer-0/+46
While a bit primitive, it should get us at least a better number than nothing.
2020-08-30mv compiler to compiler/mark-0/+141