about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2024-06-22don't ICE when encountering an extern type field during validationRalf Jung-3/+5
2024-06-22Add more flags for `llvm-readobj`Jerry Wang-0/+18
2024-06-22Auto merge of #3690 - TDecking:adx, r=RalfJungbors-48/+128
Implement LLVM x86 adx intrinsics See title. It also explots a small opportunity to deduplicate a bit of intrinsics code.
2024-06-22evaluate arguments first, not inside the logicRalf Jung-2/+7
2024-06-22Make `effects` an incomplete featureDeadbeef-1/+1
2024-06-22./miri: nicer error when building miri-script failsRalf Jung-1/+2
2024-06-22Increase search depth to account for more granual stepsTavo Annus-5/+7
2024-06-22Remove Changelog: XXX title from Github release notesLaurențiu Nicola-0/+9
2024-06-22Simplify `impl_method` tacticTavo Annus-104/+41
2024-06-22Simplify `impl_static_method` tacticTavo Annus-102/+28
2024-06-22Rollup merge of #126823 - ↵Guillaume Gomez-2/+1
GuillaumeGomez:migrate-run-make-inline-always-many-cgu, r=Kobzol Migrate `run-make/inline-always-many-cgu` to `rmake.rs` Part of https://github.com/rust-lang/rust/issues/121876. r? `@jieyouxu`
2024-06-22Rollup merge of #126723 - estebank:dot-dot-dot, r=NadrierilGuillaume Gomez-4/+4
Fix `...` in multline code-skips in suggestions When we have long code skips, we write `...` in the line number gutter. For suggestions, we were "centering" the `...` with the line, but that was inconsistent with what we do in every other case *and* off-center.
2024-06-22Migrate `run-make/inline-always-many-cgu` to `rmake.rs`Guillaume Gomez-1/+0
2024-06-22Make `read_dir` method take a mutable callbackGuillaume Gomez-1/+1
2024-06-22Auto merge of #126816 - weihanglo:update-cargo, r=weihanglobors-0/+0
Update cargo 17 commits in 3ed207e416fb2f678a40cc79c02dcf4f936a21ce..bc89bffa5987d4af8f71011c7557119b39e44a65 2024-06-18 19:18:22 +0000 to 2024-06-22 00:36:36 +0000 - test: migrate weak_dep_features, workspaces and yank to snapbox (rust-lang/cargo#14111) - test: migrate features and features(2|_namespaced) to snapbox (rust-lang/cargo#14100) - test: Add auto-redaction for not found error (rust-lang/cargo#14124) - test: migrate build to snapbox (rust-lang/cargo#14068) - test: migrate unit_graph, update and vendor to snapbox (rust-lang/cargo#14119) - fix(test): Un-redact Packaged files (rust-lang/cargo#14123) - test: Auto-redact file number (rust-lang/cargo#14121) - test: migrate lints_table and lints/(mod|unknown_lints) to snapbox (rust-lang/cargo#14104) - Simplify checking feature syntax (rust-lang/cargo#14106) - test: migrate testsuites to snapbox (rust-lang/cargo#14091) - Make `-Cmetadata` consistent across platforms (rust-lang/cargo#14107) - fix(toml): Warn when edition is unuset, even when MSRV is unset (rust-lang/cargo#14110) - Add `CodeFix::apply_solution` and impl `Clone` (rust-lang/cargo#14092) - test: migrate `cargo_alias_config&cargo_config/mod` to snapbox (rust-lang/cargo#14093) - Simplify checking for dependency cycles (rust-lang/cargo#14089) - test: Migrate `pub_priv.rs` to snapshot (rust-lang/cargo#14103) - test: migrate rustdoc and rustdocflags to snapbox (rust-lang/cargo#14098) <!-- r? ghost -->
2024-06-22Remove remove not-very-helpful optimizationsTavo Annus-47/+0
2024-06-21Rollup merge of #126811 - compiler-errors:tidy-ftl, r=estebankJubilee-0/+87
Add a tidy rule to check that fluent messages and attrs don't end in `.` This adds a new dependency on `fluent-parse` to `tidy` -- we already rely on it in rustc so I feel like it's not that big of a deal. This PR also adjusts many error messages that currently end in `.`; not all of them since I added an `ALLOWLIST`, excluded `rustc_codegen_*` ftl files, and `.teach_note` attributes. r? ``@estebank`` ``@oli-obk``
2024-06-21Rollup merge of #126787 - Strophox:get-bytes, r=RalfJungJubilee-0/+4
Add direct accessors for memory addresses in `Machine` (for Miri) The purpose of this PR is to enable direct (immutable) access to memory addresses in `Machine`, which will be needed for further extension of Miri. This is done by adding (/completing missings pairs of) accessor functions, with the relevant signatures as follows: ```rust /* rust/compiler/rustc_middle/src/mir/interpret/allocation.rs */ pub trait AllocBytes { // .. fn as_ptr(&self) -> *const u8; /*fn as_mut_ptr(&mut self) -> *mut u8; -- Already in the compiler*/ } impl<Prov: Provenance, Extra, Bytes: AllocBytes> Allocation<Prov, Extra, Bytes> { // .. pub fn get_bytes_unchecked_raw(&self) -> *const u8; /*pub fn get_bytes_unchecked_raw_mut(&mut self) -> *mut u8; -- Already in the compiler*/ } ``` ```rust /* rust/compiler/rustc_const_eval/src/interpret/memory.rs */ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> { // .. pub fn get_alloc_bytes_unchecked_raw(&self, id: AllocId) -> InterpResult<'tcx, *const u8>; pub fn get_alloc_bytes_unchecked_raw_mut(&mut self, id: AllocId) -> InterpResult<'tcx, *mut u8>; } ``` r? ``@RalfJung``
2024-06-21Rollup merge of #126712 - Oneirical:bootest-constestllation, r=jieyouxuJubilee-3/+0
Migrate `relocation-model`, `error-writing-dependencies` and `crate-name-priority` `run-make` tests to rmake Part of #121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html). Needs MSVC try-job due to #28026, almost guaranteed to fail, but let's see anyways. try-job: aarch64-gnu `/* try-job: x86_64-msvc */` try-job: x86_64-apple-1 try-job: armhf-gnu try-job: test-various
2024-06-21Update cargoWeihang Lo-0/+0
2024-06-21Add a tidy rule to make sure that diagnostics don't end in periodsMichael Goulet-0/+87
2024-06-21Auto merge of #3696 - RalfJung:ci, r=oli-obkbors-85/+54
CI: try to share setup code across actions
2024-06-21CI: try to share setup code across actionsRalf Jung-85/+54
2024-06-21rewrite mismatching-target-triples to rmakeOneirical-1/+0
2024-06-21rewrite pdb-alt-path to rmakeOneirical-1/+0
2024-06-21Run `data_constructor` tactic only backwardsTavo Annus-190/+75
2024-06-21Auto merge of #17469 - roife:fix-issue-17425, r=Veykrilbors-0/+1
fix: use ItemInNs::Macros to convert ModuleItem to ItemInNs fix #17425. When converting `PathResolution` to `ItemInNs`, we should convert `ModuleDef::Macro` to `ItemInNs::Macros` to ensure that it can be found in `DefMap`.
2024-06-21Prevent re-allocation in `CallableSig::from_params_and_return`Lukas Wirth-8/+9
2024-06-21Save allocations for empty generic_defaults query resultsLukas Wirth-60/+67
2024-06-21Don't attempt to compute implict sized clauses for empty genericsLukas Wirth-37/+46
2024-06-21Save allocations for empty generic_predicates query resultsLukas Wirth-14/+27
2024-06-21Lazy genericsLukas Wirth-11/+26
2024-06-21SimplifyLukas Wirth-27/+27
2024-06-21Move out addition logicTobias Decking-39/+29
2024-06-21There can only be one self paramLukas Wirth-66/+61
2024-06-21Light docs and privacyLukas Wirth-106/+84
2024-06-21fix: don't remove parentheses for calls of function-like pointers that are ↵davidsemakula-0/+37
members of a struct or union
2024-06-21Implement LLVM x86 adx intrinsicsTobias Decking-38/+123
2024-06-21fix: use ItemInNs::Macros to convert ModuleItem to ItemInNsroife-0/+1
2024-06-21add as_ptr to trait AllocBytes, fix 2 impls; add pub fn ↵Strophox-0/+4
get_bytes_unchecked_raw in allocation.rs; add pub fn get_alloc_bytes_unchecked_raw[_mut] in memory.rs
2024-06-21Auto merge of #3689 - adwinwhite:lseek64, r=RalfJungbors-1/+29
Fix ICE caused by seeking past `i64::MAX` Make Miri behave the same as standard library on file seeking offset. Fixes #3680.
2024-06-21Auto merge of #3694 - southball:fix/use_strict_ops_instead_of_checked_ops, ↵bors-75/+65
r=RalfJung Use strict ops instead of checked ops ## What Replace `checked_add(...).unwrap()` with `strict_add(...)`, etc. Resolves #3668.
2024-06-21Extract generics moduleLukas Wirth-323/+333
2024-06-21Auto merge of #3695 - RalfJung:no-libc-on-win, r=RalfJungbors-1/+16
don't rely on libc existing on Windows Fixes https://github.com/rust-lang/miri/issues/3692
2024-06-21don't rely on libc existing on WindowsRalf Jung-1/+16
2024-06-21Rollup merge of #126767 - compiler-errors:static-foreign-item, r=spastorinoMatthias Krüger-2/+2
`StaticForeignItem` and `StaticItem` are the same The struct `StaticItem` and `StaticForeignItem` are the same, so remove `StaticForeignItem`. Having them be separate is unique to `static` items -- unlike `ForeignItemKind::{Fn,TyAlias}`, which use the normal AST item. r? ``@spastorino`` or ``@oli-obk``
2024-06-21Fix some missing onesSouthball-7/+7
2024-06-21Use strict ops instead of checked opsSouthball-68/+58
2024-06-21Merge from rustcThe Miri Cronjob Bot-816/+954
2024-06-21Preparing for merge from rustcThe Miri Cronjob Bot-1/+1