about summary refs log tree commit diff
path: root/compiler/rustc_middle/src/ty/cast.rs
AgeCommit message (Collapse)AuthorLines
2025-02-11Simplify intra-crate qualifiers.Nicholas Nethercote-1/+1
The following is a weird pattern for a file within `rustc_middle`: ``` use rustc_middle::aaa; use crate::bbb; ``` More sensible and standard would be this: ``` use crate::{aaa, bbb}; ``` I.e. we generally prefer using `crate::` to using a crate's own name. (Exceptions are things like in macros where `crate::` doesn't work because the macro is used in multiple crates.) This commit fixes a bunch of these weird qualifiers.
2024-09-24unify dyn* coercions with other pointer coercionsLukas Markeffsky-6/+0
2024-07-29Reformat `use` declarations.Nicholas Nethercote-2/+2
The previous commit updated `rustfmt.toml` appropriately. This commit is the outcome of running `x fmt --all` with the new formatting options.
2024-04-29Remove `extern crate rustc_macros` from `rustc_middle`.Nicholas Nethercote-1/+1
2024-04-03rename `expose_addr` to `expose_provenance`joboet-1/+1
2024-03-23rename MIR int2ptr casts to match library nameRalf Jung-1/+1
2024-03-22Make RawPtr take Ty and Mutbl separatelyMichael Goulet-1/+1
2022-10-06Remove `mir::CastKind::Misc`ouz-a-0/+26
2022-09-27rustc_typeck to rustc_hir_analysislcnr-1/+1
2022-09-12Rename some variantsMichael Goulet-2/+1
2022-09-12dyn* through more typechecking and MIREric Holk-0/+5
2022-07-05Add a helper method with an explicit name instead of hand rolling a match 3xOli Scherer-0/+6
2021-01-18Use `rustc_type_ir::{IntTy,UintTy,FloatTy} instead of the `rustc_ast` ones ↵LeSeulArtichaut-2/+1
in types
2021-01-17Edit rustc_middle::ty::cast docspierwill-5/+6
Link to RFC 401 and add missing punctuation.
2020-09-04Change ty.kind to a methodLeSeulArtichaut-1/+1
2020-08-30mv compiler to compiler/mark-0/+67