about summary refs log tree commit diff
path: root/compiler/rustc_smir/Cargo.toml
AgeCommit message (Collapse)AuthorLines
2025-07-14rename `stable_mir` to `rustc_public`, and `rustc_smir` to `rustc_public_bridge`Makai-16/+0
2025-07-06move `stable_mir` back to its own crate and move `rustc_internal` to ↵Makai-3/+0
the`stable_mir` crate As part of this reorganization, some traits need to be moved from `rustc_smir::context::traits` to `stable_mir::unstable::internal_cx`. These traits are specifically designed for `InternalCx` to clarify the behavior of different functions that share the same name. This move is necessary to avoid orphan rule violations.
2025-04-05let `rustc_smir` host `stable_mir` for refactoringMakai-1/+1
2025-03-20Use `-Wunused_crate_dependencies` for compiler crates.Nicholas Nethercote-1/+0
It's very useful. There are some false positives involving integration tests in `rustc_pattern_analysis` and `rustc_serialize`. There is also a false positive involving `rustc_driver_impl`'s `rustc_randomized_layouts` feature. And I removed a `rustc_span` mention in a doc comment in `rustc_log` because it wasn't integral to the comment but caused a dev-dependency.
2025-03-10Revert "Use workspace lints for crates in `compiler/` #138084"许杰友 Jieyou Xu (Joe)-3/+0
Revert <https://github.com/rust-lang/rust/pull/138084> to buy time to consider options that avoids breaking downstream usages of cargo on distributed `rustc-src` artifacts, where such cargo invocations fail due to inability to inherit `lints` from workspace root manifest's `workspace.lints` (this is only valid for the source rust-lang/rust workspace, but not really the distributed `rustc-src` artifacts). This breakage was reported in <https://github.com/rust-lang/rust/issues/138304>. This reverts commit 48caf81484b50dca5a5cebb614899a3df81ca898, reversing changes made to c6662879b27f5161e95f39395e3c9513a7b97028.
2025-03-08Specify rust lints for `compiler/` crates via Cargo.Nicholas Nethercote-0/+3
By naming them in `[workspace.lints.rust]` in the top-level `Cargo.toml`, and then making all `compiler/` crates inherit them with `[lints] workspace = true`. (I omitted `rustc_codegen_{cranelift,gcc}`, because they're a bit different.) The advantages of this over the current approach: - It uses a standard Cargo feature, rather than special handling in bootstrap. So, easier to understand, and less likely to get accidentally broken in the future. - It works for proc macro crates. It's a shame it doesn't work for rustc-specific lints, as the comments explain.
2025-02-22Upgrade the compiler to edition 2024Michael Goulet-1/+1
2024-12-15Add hir::AttributeJonathan Dönszelmann-1/+1
2024-06-28Support fetching `Attribute` of items.Adwin White-0/+2
2024-02-12Add APIs for fetching foreign items including foreign modules, their ABIs, ↵Mohammad Omidvar-0/+1
and their items
2023-12-07Add instance evaluation and methods to read allocCelina G. Val-0/+1
The instance evaluation is needed to handle intrinsics such as `type_id` and `type_name`. Since we now use Allocation to represent all evaluated constants, provide a few methods to help process the data inside an allocation.
2023-10-30Clean up `rustc_*/Cargo.toml`.Nicholas Nethercote-2/+2
- Sort dependencies and features sections. - Add `tidy` markers to the sorted sections so they stay sorted. - Remove empty `[lib`] sections. - Remove "See more keys..." comments. Excluded files: - rustc_codegen_{cranelift,gcc}, because they're external. - rustc_lexer, because it has external use. - stable_mir, because it has external use.
2023-10-23Add method to convert internal to stable constructsCelina G. Val-0/+1
2023-10-23Avoid having `rustc_smir` depend on `rustc_interface` or `rustc_driver`Oli Scherer-2/+0
2023-10-09defids are indexmappedOğuz Ağcayazı-0/+1
2023-10-06Remove unneeded dependency.Nicholas Nethercote-4/+3
Also sort them.
2023-09-25Split out the stable part of smir into its own crate to prevent accidental ↵Oli Scherer-18/+8
usage of forever unstable things
2023-08-29Create StableMir replacer for SMirCallsouz-a-0/+6
2023-07-10Fix standalone buildCelina G. Val-1/+5
Add extern declarations and optional dependencies to fix build done directly via `cargo build`.
2023-07-02Use scoped-tls for SMIR to map between TyCtxt and SMIR datastructuresyukang-0/+1
2023-05-05Add Assert terminator to SMIRSantiago Pastorino-0/+1
2023-03-06Create new rustc_smir struct to map future cratesCelina G. Val-16/+3
+ Add some information to the README.md
2022-06-02List all crates used in crate source in Cargo.tomlOli Scherer-3/+18
2022-06-02Add 'compiler/rustc_smir/' from commit ↵Oli Scherer-0/+13
'9abcb5c7b574cf316eb23d3f469187bb86ba3019' git-subtree-dir: compiler/rustc_smir git-subtree-mainline: fb1976011e3df96b5d3eccd6b2f4e51ef7dc8f16 git-subtree-split: 9abcb5c7b574cf316eb23d3f469187bb86ba3019