rust/compiler/rustc_parse/src/parser
Matthias Krüger c6662879b2
Rollup merge of #138040 - thaliaarchi:use-prelude-size-of.compiler, r=compiler-errors
compiler: Use `size_of` from the prelude instead of imported

Use `std::mem::{size_of, size_of_val, align_of, align_of_val}` from the prelude instead of importing or qualifying them. Apply this change across the compiler.

These functions were added to all preludes in Rust 1.80.

r? ``@compiler-errors``
2025-03-09 10:34:49 +01:00
..
mut_visit Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
tokenstream update cfg(bootstrap) 2025-01-08 21:26:39 +01:00
attr.rs Rename ast::TokenKind::Not as ast::TokenKind::Bang. 2025-03-03 09:26:13 +11:00
attr_wrapper.rs Rustfmt 2025-02-08 22:12:13 +00:00
diagnostics.rs Give a better error message on async use in edition 2015 2025-03-06 17:58:34 -03:00
expr.rs Use closure parse code 2025-03-06 17:58:32 -03:00
generics.rs Implment #[cfg] and #[cfg_attr] in where clauses 2025-03-01 22:02:46 +08:00
item.rs Rollup merge of #134797 - spastorino:ergonomic-ref-counting-1, r=nikomatsakis 2025-03-07 19:15:33 +01:00
mod.rs Parse and allow const use closures 2025-03-06 17:58:34 -03:00
nonterminal.rs Remove NtPath. 2025-02-28 08:42:14 +11:00
pat.rs Rename ast::TokenKind::Not as ast::TokenKind::Bang. 2025-03-03 09:26:13 +11:00
path.rs Replace ast::TokenKind::BinOp{,Eq} and remove BinOpToken. 2025-03-03 09:26:11 +11:00
stmt.rs Rename ast::TokenKind::Not as ast::TokenKind::Bang. 2025-03-03 09:26:13 +11:00
tests.rs Rename ast::TokenKind::Not as ast::TokenKind::Bang. 2025-03-03 09:26:13 +11:00
token_type.rs compiler: Use size_of from the prelude instead of imported 2025-03-07 13:37:04 -08:00
ty.rs Rename ast::TokenKind::Not as ast::TokenKind::Bang. 2025-03-03 09:26:13 +11:00