1
Fork 0
rust/compiler/rustc_ast/src
Nicholas Nethercote d9fef774e3 Remove hir::BinOp, hir::BinOpKind, and hir::UnOp.
They're identical to the same-named types from `ast`. I find it silly
(and inefficient) to have all this boilerplate code to convert one type
to an identical type.

There is already a small amount of type sharing between the AST and HIR,
e.g. `Attribute`, `MacroDef`.

The commit adds a `pub use` to `rustc_hir` so that, for example,
`ast::BinOp` can also be referred to as `hir::BinOp`. This is so the
many existing `hir`-qualified mentions of these types don't need to
change.

The commit also moves a couple of operations from the (removed) HIR
types to the AST types, e.g. `is_by_value`.
2023-11-28 12:14:25 +11:00
..
attr Fix clippy::needless_borrow in the compiler 2023-11-21 20:13:40 +01:00
expand Generate better function argument names in global_allocator expansion 2023-08-06 07:36:05 -07:00
util Add gen blocks to ast and do some broken ast lowering 2023-10-27 13:05:48 +00:00
ast.rs Remove hir::BinOp, hir::BinOpKind, and hir::UnOp. 2023-11-28 12:14:25 +11:00
ast_traits.rs Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
entry.rs Format all the let chains in compiler 2023-10-13 08:59:36 +00:00
format.rs get auto traits for parallel rustc 2023-08-02 16:21:45 +08:00
lib.rs Add HashStable_NoContext to simplify HashStable implementations in rustc_type_ir 2023-11-21 05:49:44 +00:00
mut_visit.rs More detail when expecting expression but encountering bad macro argument 2023-11-16 16:19:04 +00:00
node_id.rs Replace no_ord_impl with orderable. 2023-11-22 18:38:17 +11:00
ptr.rs make rustc compilable 2023-04-16 07:25:13 +00:00
token.rs Auto merge of #114292 - estebank:issue-71039, r=b-naber 2023-11-17 20:57:12 +00:00
tokenstream.rs More detail when expecting expression but encountering bad macro argument 2023-11-16 16:19:04 +00:00
visit.rs fixes for rustfmt + ast visitor 2023-11-04 20:39:15 +01:00