about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2023-06-08Whoops, submodule change was actually valid - undoing fixupAndrew Xie-1/+1
2023-06-08fixup! Removed stable/unstable sort arg from into_sorted_stable_ord, fixed a ↵Andrew Xie-1/+1
few misc issues, added collect to UnordItems
2023-06-08Removed stable/unstable sort arg from into_sorted_stable_ord, fixed a few ↵Andrew Xie-1/+1
misc issues, added collect to UnordItems
2023-06-06Make TraitEngine::new use the right solver, add compare modeMichael Goulet-0/+4
2023-06-05Auto merge of #112071 - WaffleLapkin:group-rfcs-tests, r=oli-obkbors-1/+1
Group rfcs tests This moves all RFC tests to `tests/ui/rfcs/rfc-NNNN-title-title-title/...` I had to rename some tests due to conflicts, but otherwise this is just a move.
2023-06-05Revert error in doc commentNeven Villani-5/+5
Also punctuation
2023-06-05Auto merge of #112317 - GuillaumeGomez:rollup-toh0gpo, r=GuillaumeGomezbors-0/+2
Rollup of 6 pull requests Successful merges: - #112243 (Remove unneeded `Buffer` allocations when `&mut fmt::Write` can be used directly) - #112263 (Remove ExtendElement, ExtendWith, extend_with) - #112291 (Disable RustAnalyzer check by default, run Rustfmt check before) - #112299 (Don't double-print status messages in GHA) - #112311 (Ignore fluent message reordering in `git blame`) - #112315 (fix spelling error) Failed merges: - #112251 (rustdoc: convert `if let Some()` that always matches to variable) r? `@ghost` `@rustbot` modify labels: rollup
2023-06-05Bless tidy root entry limitMaybe Waffle-1/+1
2023-06-05Differentiate between explicit accesses and accesses inserted by TBNeven Villani-142/+195
2023-06-05Merge commit 'ed87e0a20a9d196a5ea659ea46ae9574be666d4f' into sync-from-raLaurențiu Nicola-1/+4
2023-06-05Merge commit 'aa9bc8612514d216f84eec218dfd19ab83f3598a' into sync-from-raLaurențiu Nicola-17585/+57666
2023-06-04Don't double-print status messages in GHAjyn-0/+2
Before: ``` Building stage0 tool jsondocck (x86_64-unknown-linux-gnu) Building stage0 tool jsondocck (x86_64-unknown-linux-gnu) Downloading crates ... ``` After: ``` Building stage0 tool jsondocck (x86_64-unknown-linux-gnu) Downloading crates ... ```
2023-06-04Remove rustc-workspace-hackEric Huss-23/+0
2023-06-04Auto merge of #112259 - weihanglo:update-cargo, r=weihanglobors-0/+0
Update cargo 14 commits in f7b95e31642e09c2b6eabb18ed75007dda6677a0..b0fa79679e717cd077b7fc0fa4166f47107f1ba9 2023-05-30 19:25:02 +0000 to 2023-06-03 14:19:48 +0000 - Emit error when users try to use a toolchain via the `add` or `install` command (rust-lang/cargo#12226) - Support "default" option for `build.jobs` (rust-lang/cargo#12222) - Fix typo in changelog (rust-lang/cargo#12227) - chore: Sort `-Z` flags match statement (rust-lang/cargo#12223) - Update curl-sys (rust-lang/cargo#12218) - Bump to 0.73.0; update changelog (rust-lang/cargo#12219) - refactor: housekeeping for 1.70.0 (rust-lang/cargo#12217) - nit: fix typo in changelog for 1.70 (rust-lang/cargo#12215) - Remove a noop `.clone` (rust-lang/cargo#12213) - refactor: compiler invocations (rust-lang/cargo#12211) - cargo clean: use `remove_dir_all` (rust-lang/cargo#11442) - Add a small note about indexes ignoring SemVer build metadata. (rust-lang/cargo#12206) - Revert "chore: detect the channel a PR wants to merge into" (rust-lang/cargo#12204) - Don't distinguish `Debuginfo::None` and `Debuginfo::Explicit(None)` (rust-lang/cargo#12205) r? `@ghost`
2023-06-03Auto merge of #112244 - RalfJung:miri, r=oli-obkbors-108/+218
update Miri Also adjust Miri's compiletest a little: in pre-subtree days we added `-A unused -Astable-features` to have the Miri toolstate break less often. But nowadays it just causes confusion when Miri CI works in rustc but fails on the Miri side so let's get rid of this difference. r? `@oli-obk`
2023-06-03Update cargoWeihang Lo-0/+0
2023-06-03Auto merge of #2915 - RalfJung:as_os_str_bytes, r=RalfJungbors-20/+5
use as_os_str_bytes Make use of the new operations recently added (tracking issue: https://github.com/rust-lang/rust/issues/111544). At least the "host OsStr to target bytes" direction now works even for non-utf-8 strings on all hosts!
2023-06-03use as_os_str_bytesRalf Jung-20/+5
2023-06-03Rollup merge of #111998 - jyn514:ra-dogfooding, r=Mark-SimulacrumMatthias Krüger-1/+3
Add other workspaces to `linkedProjects` in rust_analyzer_settings This makes go-to-definition, etc. work in cg_clif, cg_gcc, rust-analyzer, and src/tools/x.
2023-06-03Auto merge of #2887 - Vanille-N:tb-mut-transmute, r=RalfJungbors-118/+1641
TB: more fail tests (mostly shared with SB) Although it was not in the tests, `mem::transmute` works for `UnsafeCell -> &` as well. Draft: will also introduce more test cases for cases that fail. Draft: depends on the new error messages from #2888
2023-06-03miri compiletest: no longer allow some warnings in rustc test suiteRalf Jung-11/+2
2023-06-03Select more TB fail testsNeven Villani-118/+1641
- reorganize tests/ structure: {stacked,tree,both}_borrows - UnsafeCell transmutation (the one that should fail, i.e. transmute & -> UnsafeCell then try to write) - select TB pass tests from existing SB fail tests (and a version that fails TB) - many fail tests now shared * extra test for TB that parent write invalidates child reads * buggy_* tests now shared * tests for deep retagging (pass_invalid_shr_*) now shared * extra TB test that shared references are read-only * aliasing_mut{1,2,3,4} adapted to fail both * extra TB test that write to raw parent invalidates shared children * mut_exclusive_violation2 now shared * issue-miri-1050-2 revisions fix - deduplications
2023-06-03add unchecked_shl testRalf Jung-2/+25
2023-06-03Auto merge of #112217 - arlosi:update-vuln-deps, r=Mark-Simulacrumbors-3/+5
Update dependencies with reported vulnerabilities Vulnerable dependencies: * bumpalo 3.12.1 (yanked) * updated to 3.13.0 * tokio 1.8.4 - https://rustsec.org/advisories/RUSTSEC-2023-0001 * updated to 1.28.2 * remove_dir_all 0.5.3 - https://rustsec.org/advisories/RUSTSEC-2023-0018 * removed by using the standard library function in `rust-installer` instead and updating to `tempfile@3.5.0` (which also removes the dependency). The new dependencies come from `tempfile@3.5.0` which adds the dependency on `rustix`
2023-06-02explain windows sync layoutsDrMeepster-0/+3
2023-06-02add deref_pointer_asDrMeepster-3/+19
2023-06-02deref shim arguments with actual ty instead of declared tyDrMeepster-126/+215
2023-06-02Update dependencies with reported vulnerabilitiesArlo Siemsen-3/+5
bumpalo 3.12.1 (yanked) * updated to 3.13.0 tokio 1.8.4 - https://rustsec.org/advisories/RUSTSEC-2023-0001 * updated to 1.28.2 remove_dir_all 0.5.3 - https://rustsec.org/advisories/RUSTSEC-2023-0018 * removed by using the standard library function in `rust-installer` instead and updating to `tempfile@3.5.0` (which also removes the dependency).
2023-06-02Rollup merge of #112165 - fee1-dead-contrib:rn-defualtness, r=compiler-errorsMatthias Krüger-1/+1
Rename `impl_defaultness` to `defaultness` Since this isn't just about the `impl`.
2023-06-02Rollup merge of #111647 - klensy:cstr, r=oli-obkMatthias Krüger-1/+0
use c literals in compiler and library Use c literals #108801 in compiler and library currently blocked on: * <strike>rustfmt: don't know how to format c literals</strike> nope, nightly one works. * <strike>bootstrap</strike> r? `@ghost` `@rustbot` blocked
2023-06-02Auto merge of #112203 - flip1995:clippyup, r=Manishearthbors-654/+2971
Update Clippy r? `@Manishearth`
2023-06-02Merge commit '30448e8cf98d4754350db0c959644564f317bc0f' into clippyupPhilipp Krones-654/+2971
2023-06-02fmtRalf Jung-10/+13
2023-06-02Merge from rustcRalf Jung-227/+169
2023-06-02Preparing for merge from rustcRalf Jung-1/+1
2023-06-02Auto merge of #112198 - compiler-errors:rollup-o2xe4of, r=compiler-errorsbors-13/+15
Rollup of 7 pull requests Successful merges: - #111670 (Require that const param tys implement `ConstParamTy`) - #111914 (CFI: Fix cfi with async: transform_ty: unexpected GeneratorWitness(Bi…) - #112030 (Migrate `item_trait_alias` to Askama) - #112150 (Support 128-bit atomics on all x86_64 Apple targets) - #112174 (Fix broken link) - #112190 (Improve comments on `TyCtxt` and `GlobalCtxt`.) - #112193 (Check tuple elements are `Sized` in `offset_of`) Failed merges: - #112071 (Group rfcs tests) r? `@ghost` `@rustbot` modify labels: rollup
2023-06-01Implement custom diagnostic for ConstParamTyMichael Goulet-13/+15
2023-06-01Use translatable diagnostics in `rustc_const_eval`Deadbeef-26/+68
2023-06-01Rename `impl_defaultness` to `defaultness`Deadbeef-1/+1
2023-06-01Auto merge of #103877 - oli-obk:const_eval_step_limit, r=fee1-deadbors-4/+0
Replace const eval limit by a lint and add an exponential backoff warning The lint triggers at the first power of 2 that comes after 1 million function calls or traversed back-edges (takes less than a second on usual programs). After the first emission, an unsilenceable warning is repeated at every following power of 2 terminators, causing it to get reported less and less the longer the evaluation runs. cc `@rust-lang/wg-const-eval` fixes #93481 closes #67217
2023-06-01Auto merge of #111567 - Urgau:uplift_cast_ref_to_mut, r=b-naberbors-168/+65
Uplift `clippy::cast_ref_to_mut` lint This PR aims at uplifting the `clippy::cast_ref_to_mut` lint into rustc. ## `cast_ref_to_mut` (deny-by-default) The `cast_ref_to_mut` lint checks for casts of `&T` to `&mut T` without using interior mutability. ### Example ```rust,compile_fail fn x(r: &i32) { unsafe { *(r as *const i32 as *mut i32) += 1; } } ``` ### Explanation Casting `&T` to `&mut T` without interior mutability is undefined behavior, as it's a violation of Rust reference aliasing requirements. ----- Mostly followed the instructions for uplifting a clippy lint described here: https://github.com/rust-lang/rust/pull/99696#pullrequestreview-1134072751 `@rustbot` label: +I-lang-nominated r? compiler ----- For Clippy: changelog: Moves: Uplifted `clippy::cast_ref_to_mut` into rustc
2023-05-31use c literals in libraryklensy-1/+0
2023-05-31Auto merge of #111076 - ↵bors-0/+18
notriddle:notriddle/silence-private-dep-trait-impl-suggestions, r=cjgillot diagnostics: exclude indirect private deps from trait impl suggest Fixes #88696
2023-05-31Adjust tests for newly uplifted cast_ref_to_mut lintUrgau-0/+4
2023-05-31Drop uplifted clippy::cast_ref_to_mutUrgau-168/+61
2023-05-31Remove const eval limit and implement an exponential backoff lint insteadOli Scherer-4/+0
2023-05-31Auto merge of #2908 - RalfJung:bench, r=oli-obkbors-16/+16
CI: test ./miri bench
2023-05-31miri-script: Transform Windows paths to unix.Piotr Osiewicz-1/+1
python3 snippet used to fill $MIRIDIR variable returns native paths. Down the line in `bench` subcommand this leads to benchmark setup failure, preventing contributors from running benchmarks on Windows hosts. This commit replaces usage of native os.path module with pathlib, which explicitly converts paths to Unix flavour.
2023-05-31Auto merge of #2907 - RalfJung:rustup, r=RalfJungbors-196/+124
Rustup
2023-05-31Rollup merge of #111975 - jyn514:normalization, r=cjgillotMatthias Krüger-29/+18
Stop normalizing so many different prefixes Previously, we would normalize *all* of - the absolute path to the repository checkout - the /rustc/$sha for stage1 (if `remap-debuginfo` was enabled) - the /rustc/$sha for download-rustc - the sysroot for download-rustc Now, we consistently only normalize /rustc/FAKE_PREFIX. Not only is this much simpler, but it also avoids ongoing maintenance for download-rustc and makes it much less likely that tests break by accident. - Change `tests/ui/track-diagnostics/track6.rs` to use a relative path instead of an absolute one. I am not actually sure why `track_caller` works here, but it does seem to work :shrug: - Pass `-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX` to all suites, not just UI. In particular, mir-opt tests emit /rustc/ paths in their output. r? ```@cjgillot``` since you reviewed https://github.com/rust-lang/rust/pull/110699 - this is the test that it doesn't regress :)