about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2025-03-24fix: Yet another false positive invalid cast diagnosticShoyu Vanilla-26/+134
2025-03-23Use zip/deflate-flate2 to avoid BSL-1.0 depLaurențiu Nicola-34/+1
2025-03-23Say which test failed the `COMPILETEST_REQUIRE_ALL_LLVM_COMPONENTS` assertionJieyou Xu-4/+5
2025-03-23Document `supported-crate-types` print request in unstable bookJieyou Xu-0/+27
2025-03-23Merge pull request #19400 from Shourya742/2025-03-20-fix-syntax-highlightingLukas Wirth-18/+77
Fix missing syntax highlighting for `&raw const` / `&raw mut` in all files.
2025-03-23chore: Bump dependenciesLukas Wirth-197/+261
2025-03-23chore: Remove unused dependenciesLukas Wirth-96/+45
2025-03-23doc: fix reference to #create-a-configtomlChiichen-1/+1
2025-03-22Auto merge of #138841 - matthiaskrgr:rollup-bfkls57, r=matthiaskrgrbors-21/+105
Rollup of 8 pull requests Successful merges: - #138018 (rustdoc: Use own logic to print `#[repr(..)]` attributes in JSON output.) - #138294 (Mark some std tests as requiring `panic = "unwind"`) - #138468 (rustdoc js: add nonnull helper and typecheck src-script.js) - #138675 (Add release notes for 1.85.1) - #138765 (Fix Thread::set_name on cygwin) - #138786 (Move some driver code around) - #138793 (target spec check: better error when llvm-floatabi is missing) - #138822 (De-Stabilize `file_lock`) r? `@ghost` `@rustbot` modify labels: rollup
2025-03-22Auto merge of #138831 - matthiaskrgr:rollup-3t0dqiz, r=matthiaskrgrbors-4/+1
Rollup of 7 pull requests Successful merges: - #138609 (Add stack overflow handler for cygwin) - #138639 (Clean UI tests 2 of n) - #138773 (catch_unwind intrinsic: document return value) - #138782 (test(ui): add tuple-struct-where-clause-suggestion ui test for #91520) - #138794 (expand: Do not report `cfg_attr` traces on macros as unused attributes) - #138801 (triagebot: add autolabel rules for D-* and L-*) - #138804 (Allow inlining for `Atomic*::from_ptr`) r? `@ghost` `@rustbot` modify labels: rollup
2025-03-22Rollup merge of #138468 - lolbinarycat:rustdoc-js-less-expect-error-part3, ↵Matthias Krüger-9/+70
r=notriddle rustdoc js: add nonnull helper and typecheck src-script.js this removes ``@ts-nocheck`` from `src-script.js` and adds a `nonnull` helper function that assists in adding null checks to places where null values should be impossible. r? `@notriddle`
2025-03-22rustdoc: Use own logic to print `#[repr(..)]` attributes in JSON output.Predrag Gruevski-12/+35
2025-03-22Merge pull request #19419 from ShoyuVanilla/issue-15132Lukas Wirth-7/+73
Render layout and other extra information on hovering `Self`
2025-03-22Merge pull request #19416 from ShoyuVanilla/issue-15037Lukas Wirth-71/+91
fix: Handle multiple `#[repr(..)]` attrs correctly
2025-03-22rustdoc: be more strict about "Methods from Deref"binarycat-3/+32
hack: is_doc_subtype_of always returns true for TyAlias it's worth noting that this function is only used in the handling of "Methods from Deref", and we were previously assuming all generic parameters were meaningless, so this is still an improvment from the status quo. this change means that we will have strictly less false positives without adding any new false negitives. Co-authored-by: Guillaume Gomez <guillaume1.gomez@gmail.com>
2025-03-22Improve contributing/README.mdBenjaminBrienen-8/+8
2025-03-22Render layout and other extra informations on hovering `Self`Shoyu Vanilla-7/+73
2025-03-22Group test diffs by stage in post-merge analysisJakub Beránek-18/+25
2025-03-22Rollup merge of #138639 - spencer3035:clean-ui-tests-2-of-n, r=jieyouxuMatthias Krüger-4/+1
Clean UI tests 2 of n Modified 4 tests in tests/ui. Cleaned 3 and deleted one. I have a final commit changing the values in `src/tools/tidy/src/ui_tests.rs`. I wasn't sure if it was best practice to change this value as you go along or once at the end. I can rebase to something that incrementally changes the value in the "cleaned" commits if that is preferred. Related Issues: #73494 #133895 r? jieyouxu
2025-03-22Rollup merge of #138763 - aDotInTheVoid:two-years-later, r=GuillaumeGomezMatthias Krüger-2/+17
jsondocck: Replace `jsonpath_lib` with `jsonpath-rust` The current jsonpath implementation we use isn't spec-compliant, and is buggy. See https://github.com/freestrings/jsonpath/issues/91 To solve it, it's replaced with https://github.com/besok/jsonpath-rust. This is spec-compiant, and doesn't have a really awkward bug we need to always dance around. Unfortunately, this requires rewriting almost every test, as the behaviour of `[?(```@`,``` which is *extremely* common was changed. (But the new behaviour makes way more sense, and isn't buggy with tripply nested selectors) Unblocks #110406. Makes #100515 much easier as we don't need to explain the broken JSONPath implementation Best reviewed commit-by-commit. The first does the replacement. The next two rewrite the test-suite mechanically. The last rewrites the test-suite by hand. r? ```@GuillaumeGomez```
2025-03-22Rollup merge of #138535 - yotamofek:pr/rustdoc/lang-string-parse-cleanup, ↵Matthias Krüger-44/+41
r=notriddle Cleanup `LangString::parse` Flatten some `if`s into match patterns Use `str::strip_prefix` instead of `starts_with`+indexing Avoid redundant tests for `extra.is_some()`
2025-03-22fix: Handle multiple `#[repr(..)]` attrs correctlyShoyu Vanilla-71/+91
2025-03-22Speed up resolving "Generate delegate method" assist (part 2)Felicián Németh-570/+532
Make it compile by adding a `None` subtype to rest of the AssistId instantiations.
2025-03-22Speed up resolving "Generate delegate method" assist (part 1)Felicián Németh-10/+30
Fix #19322 Sometimes there are 185 "Generate delegate" assists with the same assist_id and asssist_kind. This commit introduces and additional differentiator: assist_subtype. Therefore, when the LSP client sends an assist resolve request, rust-analyzer only need to compute edits for a single assist instead of 185.
2025-03-21cleaned and organized 3 tests in `./tests/ui/issues`Spencer-4/+1
2025-03-22fix: Properly calculate the layouts of tuple ptrs whose last fields are DSTShoyu Vanilla-0/+19
2025-03-22Auto merge of #138808 - weihanglo:update-cargo, r=weihanglobors-0/+0
Update cargo 14 commits in 6cf8267012570f63d6b86e85a2ae5627de52df9e..307cbfda3119f06600e43cd38283f4a746fe1f8b 2025-03-14 15:25:36 +0000 to 2025-03-20 20:00:39 +0000 - feat: Add custom completer for cargo &lt;TAB&gt; to complete aliases defined in config.toml (rust-lang/cargo#15319) - fix(build-dir): Renamed workspace-manifest-path-hash to workspace-path-hash (rust-lang/cargo#15334) - feat: vcs, color, and message format native completion (rust-lang/cargo#15322) - Fix `[env]` `relative` description in reference (rust-lang/cargo#15332) - chore: fix some typos (rust-lang/cargo#15329) - Cleanup for rustc-link-arg-cdylib (rust-lang/cargo#15326) - fix(toml): Report '&lt;target&gt;.edition' deprecation to users (rust-lang/cargo#15321) - test(build-std): address overly-matched snapshot (rust-lang/cargo#15325) - Added `build.build_dir` templating support (rust-lang/cargo#15236) - docs: make it clearer that `rust_version` is enforced during compile (rust-lang/cargo#15303) - feat: Add custom completer for cargo +&lt;TAB&gt; to complete toolchain name (rust-lang/cargo#15301) - chore: fix some typos (rust-lang/cargo#15316) - fix: deduplicate crate types in cargo rustc command (rust-lang/cargo#15314) - docs: mention wrong URLs as a cause of git authentication errors (rust-lang/cargo#15304) r? ghost
2025-03-21Update cargoWeihang Lo-0/+0
2025-03-21Merge pull request #19412 from Veykril/push-krktmvxmlxmtLukas Wirth-47/+46
chore: Remove some unnecessary usage of `Semantics`
2025-03-21chore: Remove some unnecessary usage of `Semantics`Lukas Wirth-47/+46
2025-03-21Auto merge of #138791 - matthiaskrgr:rollup-ev46cqr, r=matthiaskrgrbors-57/+62
Rollup of 9 pull requests Successful merges: - #138364 (ports the compiler test cases to new rust_intrinsic format) - #138570 (add `naked_functions_target_feature` unstable feature) - #138623 ([bootstrap] Use llvm_runtimes for compiler-rt) - #138627 (Autodiff cleanups) - #138669 (tests: accept some noise from LLVM 21 in symbols-all-mangled) - #138706 (Improve bootstrap git modified path handling) - #138709 (Update GCC submodule) - #138717 (Add an attribute that makes the spans from a macro edition 2021, and fix pin on edition 2024 with it) - #138721 (Use explicit cpu in some asm and codegen tests.) r? `@ghost` `@rustbot` modify labels: rollup
2025-03-21add test for &raw const/&raw mut is not syntax-highlighted in all filesbit-aloo-0/+61
2025-03-21change from krate to Option<krate> in syntax highlighting to incorporate ↵bit-aloo-18/+16
modules which are not part of any crate
2025-03-21Merge pull request #19409 from Veykril/push-osqtywsvmwxvLukas Wirth-35/+42
minor: Don't query the database in workspace switching
2025-03-21add syntax validation test for &impl 'abit-aloo-0/+30
2025-03-21add syntax validation test for ambiguous +bit-aloo-0/+39
2025-03-21validate_impl_object_ty: Add diagnostics for and ambiguous .bit-aloo-1/+30
2025-03-21Rollup merge of #138709 - Kobzol:update-gcc, r=GuillaumeGomezMatthias Krüger-0/+0
Update GCC submodule Includes https://github.com/rust-lang/gcc/pull/66 to use our mirrors for downloading GCC dependencies. r? ```@GuillaumeGomez```
2025-03-21Rollup merge of #138706 - Kobzol:bootstrap-git-refactor-1, r=onur-ozkanMatthias Krüger-56/+58
Improve bootstrap git modified path handling Drive-by improvements extracted out of https://github.com/rust-lang/rust/pull/138591. r? ``@onur-ozkan``
2025-03-21Rollup merge of #138623 - daltenty:daltenty/fix-compiler-rt, r=KobzolMatthias Krüger-1/+4
[bootstrap] Use llvm_runtimes for compiler-rt Trying to enable `compiler-rt` via `LLVM_ENABLE_PROJECTS` is no longer a supported option in LLVM, and gives you nasty warnings: ``` Using LLVM_ENABLE_PROJECTS=compiler-rt is deprecated now, and will become a fatal error in the LLVM 21 release. Please use -DLLVM_ENABLE_RUNTIMES=compiler-rt or see the instructions at https://compiler-rt.llvm.org/ for building the runtimes. ``` try-job: aarch64-gnu-debug try-job: x86_64-gnu-debug
2025-03-21Merge pull request #4236 from RalfJung/rustupRalf Jung-1266/+5089
Rustup
2025-03-21Merge pull request #19348 from jnyfah/some-branchLukas Wirth-6/+34
Add text edit support for return type hints on non-block body closures
2025-03-21Merge pull request #19397 from gvozdvmozgu/postfix-const-blockLukas Wirth-20/+86
add postfix completion for const block
2025-03-21Merge from rustcRalf Jung-1265/+5088
2025-03-21Preparing for merge from rustcRalf Jung-1/+1
2025-03-21Merge pull request #19408 from Veykril/push-wtnxzulsovxyLukas Wirth-464/+2844
refactor: Reduce codegen burden for generated syntax
2025-03-21Fix test using `download-ci-llvm=true` on CIJakub Beránek-1/+1
2025-03-21Disable CI mode when checking default bootstrap profilesJakub Beránek-1/+2
2025-03-21Set `if-unchanged` as the default value for `download-ci-llvm` when we're on CI.Jakub Beránek-1/+8
2025-03-21Allow unused code in testsJakub Beránek-0/+1
To avoid working around some code being unused in tests due to it being stubbed out with `#[cfg(test)]`.