1
Fork 0
rust/compiler/rustc_middle/src
David Wood f86169a58f
mir_transform: implement forced inlining
Adds `#[rustc_force_inline]` which is similar to always inlining but
reports an error if the inlining was not possible, and which always
attempts to inline annotated items, regardless of optimisation levels.
It can only be applied to free functions to guarantee that the MIR
inliner will be able to resolve calls.
2025-01-10 18:37:54 +00:00
..
dep_graph Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
hir Exhaustively handle expressions in patterns 2025-01-08 07:33:46 +00:00
hooks Move some code from Compiler::enter to GlobalCtxt::finish 2024-11-09 17:55:39 +00:00
infer remove non-borrowck member constraints 2024-12-20 10:04:01 +01:00
middle explicitly model that certain ABIs require/forbid certain target features 2024-12-31 12:41:20 +01:00
mir mir_transform: implement forced inlining 2025-01-10 18:37:54 +00:00
query Remove the now-useless Result from lit_to_const 2025-01-09 08:48:46 +00:00
thir Introduce default_field_values feature 2024-12-09 21:55:01 +00:00
traits Add derived causes for host effect predicates 2025-01-06 17:49:46 +00:00
ty mir_transform: implement forced inlining 2025-01-10 18:37:54 +00:00
util Improve find_self_call with reborrowed receiver 2025-01-06 03:17:04 +00:00
arena.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
error.rs Move some code from Compiler::enter to GlobalCtxt::finish 2024-11-09 17:55:39 +00:00
lib.rs move strict provenance lints to new feature gate, remove old feature gates 2024-10-21 15:22:17 +01:00
lint.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
macros.rs Improve const traits diagnostics for new desugaring 2024-10-02 19:45:17 +08: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 Introduce default_field_values feature 2024-12-09 21:55:01 +00:00
values.rs Rename ty_def_id so people will stop using it by accident 2024-12-13 16:36:38 +00:00