about summary refs log tree commit diff
path: root/compiler/rustc_mir_build/src/builder/custom/mod.rs
AgeCommit message (Collapse)AuthorLines
2025-08-15Port `#[custom_mir(..)]` to the new attribute systemSasha Pourcelot-33/+32
2025-04-17Replace infallible `name_or_empty` methods with fallible `name` methods.Nicholas Nethercote-1/+2
I'm removing empty identifiers everywhere, because in practice they always mean "no identifier" rather than "empty identifier". (An empty identifier is impossible.) It's better to use `Option` to mean "no identifier" because you then can't forget about the "no identifier" possibility. Some specifics: - When testing an attribute for a single name, the commit uses the `has_name` method. - When testing an attribute for multiple names, the commit uses the new `has_any_name` method. - When using `match` on an attribute, the match arms now have `Some` on them. In the tests, we now avoid printing empty identifiers by not printing the identifier in the `error:` line at all, instead letting the carets point out the problem.
2025-01-31Remove the `mir_build` hook.Nicholas Nethercote-1/+1
It was downgraded from a query in #122721 but it can just be a vanilla function because it's not called in `rustc_middle`.
2024-12-18mir: require `is_cleanup` when creating `BasicBlockData`DianQK-1/+1
2024-12-17Rename `rustc_mir_build::build` to `builder`Zalathar-0/+176