summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2024-11-25Revert "Prepare for omittiong parts of completion data that need to be resolved"Kirill Bulatov-99/+16
This reverts commit 008d5130b7dce96693cd9c39cd5e71d9dc73bd5b.
2024-11-25Revert "Omit completion fields to be resolved later"Kirill Bulatov-99/+62
This reverts commit cc2686c1a9cf9a9e089f669d9d179812618008a7.
2024-11-25Revert "Resolve completion items"Kirill Bulatov-42/+11
This reverts commit ecae5a8b33abfa7b084aa0bd29d47f5b98ea2527.
2024-11-25Revert "Less clones"Kirill Bulatov-5/+5
This reverts commit b82c5ceba8cfb595f3556593fb3eb9cd03b1fb5c.
2024-11-25Revert "Fix the test"Kirill Bulatov-1/+1
This reverts commit b24723a5c74ab4881539bb97c7608c147f07c25e.
2024-11-25Revert "Small fixes"Kirill Bulatov-6/+6
This reverts commit 536ac471c47f06fd53daa651424ea5a78189491c.
2024-11-25Revert "Use completion item indices instead of property matching when ↵Kirill Bulatov-33/+15
searching for the completion item to resolve" This reverts commit fa46a9e2b605de60b11a29f5951e650c3c0f5089.
2024-11-25Revert "Update the file hash"Kirill Bulatov-1/+1
This reverts commit f0db79f31ada049bf490c8f27be7443f45460f09.
2024-11-25Revert "force "HEAD" for non-CI and `git_upstream_merge_base` for CI ↵Pietro Albini-13/+3
environment" This reverts commit 33ac202904e7820268b71b3280a7d2590378e3b9.
2024-11-25Revert "add new CI step: "setup upstream remote""Pietro Albini-36/+0
This reverts commit 4454fa998c9da1f1eee1602c8e8cd2732505c104.
2024-11-25bump channel to stableBoxy-1/+1
2024-11-21Auto merge of #13600 - samueltardieu:push-tzuvnutssmrs, r=xFrednetbors-2/+14
borrow_deref_ref: do not trigger on `&raw` references changelog: [`borrow_deref_ref`]: do not trigger on `&raw` references Fix #13584
2024-11-21Auto merge of #13553 - SpriteOvO:manual_is_power_of_two-change-category, ↵bors-2/+4
r=llogiq Change the category of `manual_is_power_of_two` to `pedantic` Fixes #13547. The value being checked might be a bit flag, suggesting `is_power_of_two` for it would make the code unreadable. changelog: [`manual_is_power_of_two`]: Change the category to `pedantic`
2024-11-15(ci) Update macOS to Xcode 15Eric Huss-5/+5
(cherry picked from commit 94579ff9301fcee893cd0c4ad9284ab5ef51e6cd)
2024-11-15rustdoc-search: case-sensitive only when capitals are usedMichael Howell-4/+7
This is the "smartcase" behavior, described by vim and dtolnay. (cherry picked from commit 32500aa8e0f23029c0fa69235d19f770106c016f)
2024-11-13Update the file hashKirill Bulatov-1/+1
2024-11-13Use completion item indices instead of property matching when searching for ↵Kirill Bulatov-15/+33
the completion item to resolve
2024-11-05rustdoc: skip stability inheritance for some item kindsLukas Markeffsky-17/+57
(cherry picked from commit 728315df79d19562b7be11011b54d20406abd1f4)
2024-10-29Update cargoWeihang Lo-0/+0
2024-10-17Move `too_long_first_doc_paragraph` to `nursery`Philipp Krones-1/+1
(cherry picked from commit a365aebdf03872722b8c78bdeb62c43851f0c72f)
2024-10-17bump stage0 to 1.82.0Josh Stone-452/+350
2024-10-14check `stage0`, `channel` and `version` files for CI rustconur-ozkan-6/+11
These files have important role for compiler builds, so include them in the "if-unchanged" rustc logic. Signed-off-by: onur-ozkan <work@onurozkan.dev> (cherry picked from commit 6e6cbdd2df0ae5a025c458d95a4c84df1b6af092)
2024-10-14bump channel to betaJosh Stone-1/+1
2024-10-13Rollup merge of #131642 - jieyouxu:build-fail-check-fail, r=KobzolMatthias Krüger-7/+26
Special case error message for a `build-fail` test that failed check build A `build-fail` test requires that a check build (roughly `--emit=metadata`, no codegen) succeeds but fails later. Previously, if its check build failed, the user will see the error message ``` error: test compilation failed although it shouldn't! ``` which is confusing. Because the test is `build-fail`, we want the test compilation to fail! This error message doesn't account for the difference between a check build and a complete build, so let's special case the error message for a `build-fail` test whose check build failed to instead say ``` error: `build-fail` test is required to pass check build, but check build failed ``` Fixes #130894.
2024-10-13Rollup merge of #131641 - RalfJung:unicode-bitset-static, r=dtolnayMatthias Krüger-4/+4
switch unicode-data bitsets back to 'static' Back in https://github.com/rust-lang/rust/pull/101401, these were changed to `const` to make some functions `const fn`. However, `@dtolnay` was [not happy](https://github.com/rust-lang/rust/issues/101400#issuecomment-1742500968) about this. Meanwhile, `const fn` can access immutable statics like these, so we can change this back. Part of https://github.com/rust-lang/rust/issues/101400.
2024-10-13Rollup merge of #131638 - Zalathar:debuggers, r=jieyouxuMatthias Krüger-274/+290
compiletest: Move debugger setup code out of `lib.rs` These functions contain a few hundred lines of code for dealing with debuggers (for `debuginfo` tests), and don't really belong in the crate root. Moving them out to their own module makes `lib.rs` easier to follow.
2024-10-13Rollup merge of #131614 - jieyouxu:rmake-no-rev, r=KobzolMatthias Krüger-5/+14
Error on trying to use revisions in `run-make` tests Currently, `run-make` tests do not support revisions.
2024-10-13Rollup merge of #131585 - Zalathar:original-line, r=jieyouxuMatthias Krüger-29/+10
compiletest: Remove the one thing that was checking a directive's `original_line` This special handling of `ignore-tidy*` was introduced during the migration to `//`@`` directives (#120881), and has become unnecessary after the subsequent removal of the legacy directive check (#131392).
2024-10-13switch unicode-data back to 'static'Ralf Jung-4/+4
2024-10-13Special case error message for a `build-fail` test that failed check build许杰友 Jieyou Xu (Joe)-7/+26
2024-10-13Move debugger setup code out of `lib.rs`Zalathar-274/+290
2024-10-12Rollup merge of #131358 - onur-ozkan:129528, r=Mark-SimulacrumTrevor Gross-3/+49
force "HEAD" for non-CI and `git_upstream_merge_base` for CI environment When rust-lang/rust is configured as remote, some of the git logic (for tracking changed files) that uses get_closest_merge_commit starts to produce annoying results as the upstream branch becomes outdated quickly (since it isn't updated with git pull). We can rely on HEAD for non-CI environments as we specifically treat bors commits as merge commits, which also exist on upstream. As for CI environments, we should use `git_upstream_merge_base` to correctly track modified files as bors commits may be in `HEAD` but not yet on the upstream remote. This is also an alternative fix for https://github.com/rust-lang/rust/issues/129528 since https://github.com/rust-lang/rust/pull/131331 reverts the previous fix attempts.
2024-10-12Rollup merge of #131334 - heiher:loong-sanitizers, r=Mark-SimulacrumTrevor Gross-0/+5
Enable sanitizers for loongarch64-unknown-* Enable sanitizers for `loongarch64-unknown-linux-{gnu,musl,ohos}` targets.
2024-10-12Rollup merge of #131120 - tgross35:stabilize-const_option, r=RalfJungTrevor Gross-3/+2
Stabilize `const_option` This makes the following API stable in const contexts: ```rust impl<T> Option<T> { pub const fn as_mut(&mut self) -> Option<&mut T>; pub const fn expect(self, msg: &str) -> T; pub const fn unwrap(self) -> T; pub const unsafe fn unwrap_unchecked(self) -> T; pub const fn take(&mut self) -> Option<T>; pub const fn replace(&mut self, value: T) -> Option<T>; } impl<T> Option<&T> { pub const fn copied(self) -> Option<T> where T: Copy; } impl<T> Option<&mut T> { pub const fn copied(self) -> Option<T> where T: Copy; } impl<T, E> Option<Result<T, E>> { pub const fn transpose(self) -> Result<Option<T>, E> } impl<T> Option<Option<T>> { pub const fn flatten(self) -> Option<T>; } ``` The following functions make use of the unstable `const_precise_live_drops` feature: - `expect` - `unwrap` - `unwrap_unchecked` - `transpose` - `flatten` Fixes: <https://github.com/rust-lang/rust/issues/67441>
2024-10-13Error on trying to use revisions in `run-make` tests许杰友 Jieyou Xu (Joe)-5/+14
Currently `run-make` tests do not support revisions.
2024-10-13Remove the one thing that was checking a directive's `original_line`Zalathar-28/+4
2024-10-13Rename `HeaderLine` to `DirectiveLine`Zalathar-8/+13
2024-10-12Stabilize `const_option`Trevor Gross-3/+2
This makes the following API stable in const contexts: impl<T> Option<T> { pub const fn as_mut(&mut self) -> Option<&mut T>; pub const fn expect(self, msg: &str) -> T; pub const fn unwrap(self) -> T; pub const unsafe fn unwrap_unchecked(self) -> T; pub const fn take(&mut self) -> Option<T>; pub const fn replace(&mut self, value: T) -> Option<T>; } impl<T> Option<&T> { pub const fn copied(self) -> Option<T> where T: Copy; } impl<T> Option<&mut T> { pub const fn copied(self) -> Option<T> where T: Copy; } impl<T, E> Option<Result<T, E>> { pub const fn transpose(self) -> Result<Option<T>, E> } impl<T> Option<Option<T>> { pub const fn flatten(self) -> Option<T>; } The following functions make use of the unstable `const_precise_live_drops` feature: - `expect` - `unwrap` - `unwrap_unchecked` - `transpose` - `flatten` Fixes: <https://github.com/rust-lang/rust/issues/67441>
2024-10-12Rollup merge of #131277 - ↵Matthias Krüger-34/+32
ismailarilik:handle-potential-query-instability-lint-for-clippy, r=xFrednet Handle `clippy` cases of `rustc::potential_query_instability` lint This PR removes `#![allow(rustc::potential_query_instability)]` line from [`src/tools/clippy/clippy_lints/src/lib.rs`](https://github.com/rust-lang/rust/blob/master/src/tools/clippy/clippy_lints/src/lib.rs#L30) and converts `FxHash{Map,Set}` types into `FxIndex{Map,Set}` to suppress lint errors. A somewhat tracking issue: https://github.com/rust-lang/rust/issues/84447
2024-10-12Rollup merge of #130965 - onur-ozkan:bootstrap-step-trait-doc, r=Mark-SimulacrumMatthias Krüger-18/+22
make `Step` doc-comments more clear Aiming to improve complicated `Step` documentation. Once we merge this, I will update [this page](https://rustc-dev-guide.rust-lang.org/building/bootstrapping/how-bootstrap-does-it.html?highlight=Step#synopsis-of--step) too.
2024-10-12Auto merge of #131612 - tgross35:rollup-zy3yg4p, r=tgross35bors-12/+29
Rollup of 7 pull requests Successful merges: - #130870 (Add suggestion for removing invalid path sep `::` in fn def) - #130954 (Stabilize const `ptr::write*` and `mem::replace`) - #131233 (std: fix stdout-before-main) - #131590 (yeet some clones) - #131596 (mark InterpResult as must_use) - #131597 (Take a display name for `tool_check_step!`) - #131605 (`LLVMConstInt` only allows integer types) r? `@ghost` `@rustbot` modify labels: rollup
2024-10-12Rollup merge of #131597 - jieyouxu:explicit-check-name, r=KobzolTrevor Gross-12/+29
Take a display name for `tool_check_step!` The tool build step already takes a display name, make the tool check step also take a display name to better represent the tool name. I.e. instead of `src/tools/cargo-miri` becoming `cargomiri`, it now becomes `cargo-miri`. Fixes #131592.
2024-10-12Auto merge of #131448 - DianQK:fixes-131164, r=onur-ozkanbors-0/+2
Update LLVM submodule Fixes (maybe after beta backport) #131164. r? nikic
2024-10-12Update LLVM submoduleDianQK-0/+0
2024-10-12Ignore the `download_ci_llvm` testDianQK-0/+2
2024-10-12Take a display name for `tool_check_step!`许杰友 Jieyou Xu (Joe)-12/+29
2024-10-12add new CI step: "setup upstream remote"onur-ozkan-0/+36
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-10-12force "HEAD" for non-CI and `git_upstream_merge_base` for CI environmentonur-ozkan-3/+13
When rust-lang/rust is configured as remote, some of the git logic (for tracking changed files) that uses get_closest_merge_commit starts to produce annoying results as the upstream branch becomes outdated quickly (since it isn't updated with git pull). We can rely on HEAD for non-CI environments as we specifically treat bors commits as merge commits, which also exist on upstream. As for CI environments, we should use `git_upstream_merge_base` to correctly track modified files as bors commits may be in `HEAD` but not yet on the upstream remote. Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-10-11Rollup merge of #131576 - Zalathar:tests-tests, r=jieyouxuTrevor Gross-36/+30
Flatten redundant test module `run_make_support::diff::tests::tests` This module is already named `tests`, and is already gated by `#[cfg(test)]`, so there's no need for it to also contain `mod tests`. r? jieyouxu
2024-10-11Rollup merge of #124874 - jedbrown:float-mul-add-fast, r=saethlinTrevor Gross-0/+93
intrinsics fmuladdf{32,64}: expose llvm.fmuladd.* semantics Add intrinsics `fmuladd{f32,f64}`. This computes `(a * b) + c`, to be fused if the code generator determines that (i) the target instruction set has support for a fused operation, and (ii) that the fused operation is more efficient than the equivalent, separate pair of `mul` and `add` instructions. https://llvm.org/docs/LangRef.html#llvm-fmuladd-intrinsic The codegen_cranelift uses the `fma` function from libc, which is a correct implementation, but without the desired performance semantic. I think this requires an update to cranelift to expose a suitable instruction in its IR. I have not tested with codegen_gcc, but it should behave the same way (using `fma` from libc). --- This topic has been discussed a few times on Zulip and was suggested, for example, by `@workingjubilee` in [Effect of fma disabled](https://rust-lang.zulipchat.com/#narrow/stream/122651-general/topic/Effect.20of.20fma.20disabled/near/274179331).