about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2024-10-30Rollup merge of #132338 - nnethercote:rm-Engine, r=nnethercoteMatthias Krüger-3/+1
Remove `Engine` It's just unnecessary plumbing. Removing it results in less code, and simpler code. r? ``@cjgillot``
2024-10-30Merge from rustcThe Miri Cronjob Bot-6554/+14833
2024-10-30Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2024-10-30compiletest: improve robustness of LLVM version handling许杰友 Jieyou Xu (Joe)-70/+139
2024-10-30Remove `Analysis::into_engine`.Nicholas Nethercote-3/+1
This is a standard pattern: ``` MyAnalysis.into_engine(tcx, body).iterate_to_fixpoint() ``` `into_engine` and `iterate_to_fixpoint` are always called in pairs, but sometimes with a builder-style `pass_name` call between them. But a builder-style interface is overkill here. This has been bugging me a for a while. This commit: - Merges `Engine::new` and `Engine::iterate_to_fixpoint`. This removes the need for `Engine` to have fields, leaving it as a trivial type that the next commit will remove. - Renames `Analysis::into_engine` as `Analysis::iterate_to_fixpoint`, gives it an extra argument for the optional pass name, and makes it call `Engine::iterate_to_fixpoint` instead of `Engine::new`. This turns the pattern from above into this: ``` MyAnalysis.iterate_to_fixpoint(tcx, body, None) ``` which is shorter at every call site, and there's less plumbing required to support it.
2024-10-29rust-analyzer: `rustc_abi::Abi` => `BackendRepr`Jubilee Young-11/+11
2024-10-29miri: `rustc_abi::Abi` => `BackendRepr`Jubilee Young-9/+20
2024-10-29update toolslcnr-16/+17
2024-10-29Style hover messages a bit differentlyLukas Wirth-116/+362
2024-10-29Publish test-fixture => ra_ap_test_fixtureSam McCall-1/+1
2024-10-29Do not render meta info when hovering usagesLukas Wirth-83/+124
2024-10-29Auto merge of #132317 - workingjubilee:rollup-x21ncea, r=workingjubileebors-4/+4
Rollup of 12 pull requests Successful merges: - #131375 (compiler: apply clippy::clone_on_ref_ptr for CI) - #131520 (Mark `str::is_char_boundary` and `str::split_at*` unstably `const`.) - #132119 (Hack out effects support for old solver) - #132194 (Collect item bounds for RPITITs from trait where clauses just like associated types) - #132216 (correct LLVMRustCreateThinLTOData arg types) - #132233 (Split `boxed.rs` into a few modules) - #132266 (riscv-soft-abi-with-float-features.rs: adapt for LLVM 20) - #132270 (clarified doc for `std::fs::OpenOptions.truncate()`) - #132284 (Remove my ping for rustdoc/clean/types.rs) - #132293 (Remove myself from mentions inside `tests/ui/check-cfg` directory) - #132312 (Delete `tests/crashes/23707.rs` because it's flaky) - #132313 (compiletest: Rename `command-list.rs` to `directive-list.rs`) r? `@ghost` `@rustbot` modify labels: rollup
2024-10-29Merge pull request #18432 from Veykril/lw-yptzmuxyvxxtLukas Wirth-4/+7
fix: Fix the server not honoring diagnostic refresh support
2024-10-29Rollup merge of #132313 - Zalathar:directive-list, r=jieyouxuJubilee-3/+3
compiletest: Rename `command-list.rs` to `directive-list.rs` Because I forget the name of this file literally every single time I need to find and edit it. r? jieyouxu
2024-10-29Rollup merge of #132233 - WaffleLapkin:box-module-split, r=workingjubileeJubilee-1/+1
Split `boxed.rs` into a few modules I wanted to add an impl for `Box<_>`, but was quickly discouraged by the 3K file. This splits off a couple bits, making it at least a bit more manageable. r? ````@workingjubilee```` (I think you are not bothered by refactorings like this?)
2024-10-29fix: Fix the server not honoring diagnostic refresh supportLukas Wirth-4/+7
2024-10-29Merge pull request #18427 from ChayimFriedman2/cleanup-tyLukas Wirth-170/+151
Cleanup TypeRef lowering
2024-10-29Bump rustc cratesLaurențiu Nicola-17/+17
2024-10-29Rename `command-list.rs` to `directive-list.rs`Zalathar-3/+3
2024-10-29Merge from rust-lang/rustLaurențiu Nicola-587/+1114
2024-10-29Preparing for merge from rust-lang/rustLaurențiu Nicola-1/+1
2024-10-29Remove region from adjustmentsMichael Goulet-8/+8
2024-10-29Auto merge of #128985 - GrigorenkoPV:instantly-dangling-pointer, r=Urgaubors-9/+15
Lint against getting pointers from immediately dropped temporaries Fixes #123613 ## Changes: 1. New lint: `dangling_pointers_from_temporaries`. Is a generalization of `temporary_cstring_as_ptr` for more types and more ways to get a temporary. 2. `temporary_cstring_as_ptr` is removed and marked as renamed to `dangling_pointers_from_temporaries`. 3. `clippy::temporary_cstring_as_ptr` is marked as renamed to `dangling_pointers_from_temporaries`. 4. Fixed a false positive[^fp] for when the pointer is not actually dangling because of lifetime extension for function/method call arguments. 5. `core::cell::Cell` is now `rustc_diagnostic_item = "Cell"` ## Questions: - [ ] Instead of manually checking for a list of known methods and diagnostic items, maybe add some sort of annotation to those methods in library and check for the presence of that annotation? https://github.com/rust-lang/rust/pull/128985#issuecomment-2318714312 ## Known limitations: ### False negatives[^fn]: See the comments in `compiler/rustc_lint/src/dangling.rs` 1. Method calls that are not checked for: - `temporary_unsafe_cell.get()` - `temporary_sync_unsafe_cell.get()` 2. Ways to get a temporary that are not recognized: - `owning_temporary.field` - `owning_temporary[index]` 3. No checks for ref-to-ptr conversions: - `&raw [mut] temporary` - `&temporary as *(const|mut) _` - `ptr::from_ref(&temporary)` and friends [^fn]: lint **should** be emitted, but **is not** [^fp]: lint **should not** be emitted, but **is**
2024-10-28Bless a miri testMaybe Lapkin-1/+1
After moving some `Box` internals to a different module, the path in the diagnostic changed.
2024-10-28Merge pull request #3998 from RalfJung/contribOli Scherer-8/+19
contributing guide: mention expectations around force pushes and squashing
2024-10-28Cleanup TypeRef loweringChayim Refael Friedman-170/+151
By removing interior mutability from it.
2024-10-28contributing guide: mention expectations around force pushes and squashingRalf Jung-8/+19
2024-10-28Merge pull request #18420 from ChayimFriedman2/cfg-true-falseLukas Wirth-6/+87
feat: Support `cfg(true)` and `cfg(false)`
2024-10-28Merge pull request #18421 from Veykril/push-uxxwvwnqvomrLukas Wirth-707/+684
Move text-edit into ide-db
2024-10-28Merge pull request #18413 from ShoyuVanilla/extern-crate-reexportLukas Wirth-3/+79
fix: Allow public re-export of `extern crate` import
2024-10-28Merge pull request #18422 from ChayimFriedman2/cursed-name-resLukas Wirth-52/+180
fix: Properly resolve prelude paths inside modules inside blocks
2024-10-28Merge pull request #18312 from LastExceed/symbolkind-variableLukas Wirth-0/+94
Report document symbols of kind `variable` for let statements
2024-10-28ReformatLukas Wirth-21/+21
2024-10-28Move text-edit into ide-dbLukas Wirth-707/+684
2024-10-28Auto merge of #132262 - matthiaskrgr:rollup-pcphi6l, r=matthiaskrgrbors-95/+94
Rollup of 4 pull requests Successful merges: - #131391 (Stabilize `isqrt` feature) - #132248 (rustc_transmute: Directly use types from rustc_abi) - #132252 (compiler: rename LayoutS to LayoutData) - #132253 (Known-bug test for `keyword_idents` lint not propagating to other files) r? `@ghost` `@rustbot` modify labels: rollup
2024-10-28New lint: `dangling_pointers_from_temporaries`Pavel Grigorenko-9/+15
2024-10-28Rollup merge of #132252 - workingjubilee:rename-layouts-to-layoutdata, ↵Matthias Krüger-2/+2
r=jieyouxu compiler: rename LayoutS to LayoutData Bid `LayoutS` goodbye because it looks like a typo. `LayoutS` is the last of the types that use the "`{TypeName}` is the interned type, `{TypeName}S` is the backing data that is interned" convention. This is pretty confusing to those not intimately familiar with the history of rustc's names for its types over time, and doubly so now that there are no other examples in the tree. Abolish this convention.
2024-10-28Rollup merge of #131391 - ChaiTRex:isqrt, r=scottmcm,tgross35Matthias Krüger-93/+92
Stabilize `isqrt` feature Stabilizes the `isqrt` feature. FCP is incomplete. Closes #116226
2024-10-28Merge pull request #18074 from ChayimFriedman2/typeref-source-mapLukas Wirth-928/+2510
internal: Build source map for `hir_def::TypeRef`s
2024-10-28Auto merge of #132244 - jyn514:linker-refactors, r=bjorn3bors-1/+9
fix various linker warnings separated out from https://github.com/rust-lang/rust/pull/119286; this doesn't have anything user-facing, i just want to land these changes so i can stop rebasing them. r? `@bjorn3`
2024-10-28Merge pull request #18256 from MoskalykA/use-is_none_orLaurențiu Nicola-21/+4
Start using `Option::is_none_or`
2024-10-28Merge pull request #18412 from lnicola/windows-no-gzLaurențiu Nicola-1/+2
internal: Stop producing .gz artifacts for Windows
2024-10-28Merge pull request #3992 from YohDeadfall/android-syscallRalf Jung-70/+93
Android: Added syscall support
2024-10-28Android: Added syscall supportYoh Deadfall-70/+93
2024-10-28Merge pull request #3954 from Mandragorian/coverage-reportRalf Jung-11/+173
Add option for generating coverage reports
2024-10-28Rollup merge of #132225 - clubby789:run-make-dynamic, r=jieyouxu许杰友 Jieyou Xu (Joe)-0/+4
Dynamically link run-make support Fixes #131810 r? `@jieyouxu`
2024-10-27rust-analyzer: Rename LayoutS to LayoutDataJubilee Young-2/+2
2024-10-27don't pass `-L .../auxiliary` unless it existsjyn-1/+9
this avoids warnings from macOS ld
2024-10-27Add option for generating coverage reportsKonstantin Andrikopoulos-11/+173
Add a `--coverage` option in the `test` subcommand of the miri script. This option, when set, will generate a coverage report after running the tests. `cargo-binutils` is needed as a dependency to generate the reports.
2024-10-27add testLastExceed-0/+76