rust/compiler/rustc_middle/src
Nicholas Nethercote b023671ce2 Add pattern_complexity_limit to Limits.
It's similar to the other limits, e.g. obtained via `get_limit`. So it
makes sense to handle it consistently with the other limits. We now use
`Limit`/`usize` in most places instead of `Option<usize>`, so we use
`Limit::new(usize::MAX)`/`usize::MAX` to emulate how `None` used to work.

The commit also adds `Limit::unlimited`.
2025-02-17 09:30:33 +11:00
..
dep_graph Remove impl_for_typed_def_id macro. 2025-02-04 08:34:11 +11:00
hir Simplify intra-crate qualifiers. 2025-02-11 14:59:13 +11:00
hooks Pretty print pattern type values with transmute if they don't satisfy their pattern 2025-02-05 14:56:41 +00:00
infer Clean up trivial traversal/lift impl generator macro calls. 2025-02-06 13:31:43 +11:00
middle Add pattern_complexity_limit to Limits. 2025-02-17 09:30:33 +11:00
mir Move MirPatch from rustc_middle to rustc_mir_transform. 2025-02-14 16:15:57 +11:00
query Fix early lint check desc in query 2025-02-14 09:49:57 +08:00
thir Fix an inconsistent import. 2025-02-04 08:34:11 +11:00
traits Implement and use BikeshedGuaranteedNoDrop for union/unsafe field validity 2025-02-13 03:45:04 +00:00
ty Add pattern_complexity_limit to Limits. 2025-02-17 09:30:33 +11:00
util Simplify intra-crate qualifiers. 2025-02-11 14:59:13 +11:00
arena.rs intern valtrees 2025-02-13 00:38:17 +01:00
error.rs compiler: Make middle errors pub(crate) and bury some dead code 2025-02-11 21:57:05 -08:00
lib.rs stabilize feature(trait_upcasting) 2025-02-06 23:30:23 +01:00
lint.rs Convert two rustc_middle::lint functions to Span methods. 2025-02-02 13:57:34 +11:00
macros.rs Don't export the Trivial* macros. 2025-01-31 16:04:13 +11:00
metadata.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
tests.rs Give an item related to issue 27438 a more meaningful name 2024-04-30 22:27:19 +02:00
thir.rs Simplify intra-crate qualifiers. 2025-02-11 14:59:13 +11:00
values.rs Simplify intra-crate qualifiers. 2025-02-11 14:59:13 +11:00