Jubilee Young
27207069d8
rustc_transmute: Directly use types from rustc_abi
2024-10-27 20:29:27 -07:00
Michael Goulet
247ad3385c
Use dep: for crate dependencies
2024-07-15 12:40:10 -04:00
klensy
52501c2a75
bump itertools to 0.12
...
still depend on 0.11:
* clippy
* rustfmt, sigh
2024-03-08 12:34:05 +03:00
Jason Newcomb
be9b125d41
Convert TypeVisitor
and DefIdVisitor
to use VisitorResult
2024-03-05 13:28:15 -05:00
Nicholas Nethercote
3eadc6844b
Update itertools to 0.11.
...
Because the API for `with_position` improved in 0.11 and I want to use
it.
2023-11-22 08:13:21 +11:00
Nicholas Nethercote
8ff624a9f2
Clean up rustc_*/Cargo.toml
.
...
- 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-30 08:46:02 +11:00
Michael Goulet
60c95448c3
Use v0.0.0 in compiler crates
2023-10-18 21:55:15 +00:00
Jack Wrenn
1d844fe629
safe transmute: use FxIndex{Map,Set}
instead of FxHash{Map,Set}
...
resolves query instability issues, and probably better for performance
2022-08-23 15:52:49 +00:00
Jack Wrenn
f46fffc276
safe transmute: use Assume
struct to provide analysis options
...
This was left as a TODO in #92268 , and brings the trait more in
line with what was defined in MCP411.
`Assume::visibility` has been renamed to `Assume::safety`, as
library safety is what's actually being assumed; visibility is
just the mechanism by which it is currently checked (this may
change).
ref: https://github.com/rust-lang/compiler-team/issues/411
ref: https://github.com/rust-lang/rust/issues/99571
2022-08-22 18:37:54 +00:00
Jack Wrenn
bc4a1dea41
Initial (incomplete) implementation of transmutability trait.
...
This initial implementation handles transmutations between types with specified layouts, except when references are involved.
Co-authored-by: Igor null <m1el.2027@gmail.com>
2022-07-27 17:33:56 +00:00