about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/mentioned_items.rs
AgeCommit message (Collapse)AuthorLines
2025-07-01Remove support for dyn*Michael Goulet-2/+1
2025-02-22Fix binding mode problemsMichael Goulet-1/+1
2025-01-23Disable non-required MIR opts with `optimize(none)`clubby789-0/+4
Co-authored-by: Waffle Lapkin <waffle.lapkin@gmail.com>
2024-09-24be even more precise about "cast" vs "coercion"Lukas Markeffsky-4/+4
2024-09-24unify dyn* coercions with other pointer coercionsLukas Markeffsky-3/+3
2024-09-10Remove references from some structs.Nicholas Nethercote-4/+4
In all cases the struct can own the relevant thing instead of having a reference to it. This makes the code simpler, and in some cases removes a struct lifetime.
2024-09-10Improve comment formatting.Nicholas Nethercote-1/+3
By reflowing comment lines that are too long, and a few that are very short. Plus some other very minor formatting tweaks.
2024-09-09Reduce visibilities, and add `warn(unreachable_pub)`.Nicholas Nethercote-1/+1
Lots of unnecessary `pub`s in this crate. Most are downgraded to `pub(super)`, though some don't need any visibility.
2024-09-03Move `MirPass` to `rustc_mir_transform`.Nicholas Nethercote-2/+2
Because that's now the only crate that uses it. Moving stuff out of `rustc_middle` is always welcome. I chose to use `impl crate::MirPass`/`impl crate::MirLint` (with explicit `crate::`) everywhere because that's the only mention of `MirPass`/`MirLint` used in all of these files. (Prior to this change, `MirPass` was mostly imported via `use rustc_middle::mir::*` items.)
2024-08-01MIR required_consts, mentioned_items: ensure we do not forget to fill these ↵Ralf Jung-2/+1
lists
2024-07-29Reformat `use` declarations.Nicholas Nethercote-1/+2
The previous commit updated `rustfmt.toml` appropriately. This commit is the outcome of running `x fmt --all` with the new formatting options.
2024-07-07Support tail calls in mir via `TerminatorKind::TailCall`Maybe Waffle-1/+1
2024-05-09Make builtin_deref just return a TyMichael Goulet-2/+2
2024-03-20mentioned_items: avoid adding str/slice unsizing castsRalf Jung-9/+16
2024-03-20mentioned_items: record all callee and coerced closure types, whether they ↵Ralf Jung-29/+42
are FnDef/Closure or not They may become FnDef during monomorphization!
2024-03-20mentioned items: also handle closure-to-fn-ptr coercionsRalf Jung-0/+16
2024-03-20mentioned items: also handle vtablesRalf Jung-1/+25
2024-03-20collector: recursively traverse 'mentioned' items to evaluate their constantsRalf Jung-0/+57