about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2024-08-26Disable tree traversal optimization that is wrong due to lazy nodes.Johannes Hostert-5/+5
See #3846 for more information.
2024-08-26Update src/tools/rustbook/Cargo.lockEric Huss-0/+1
2024-08-26Fix "Unwrap block" assist with block modifiersChayim Refael Friedman-3/+55
The assist just assumes the `{` will be the first character, which led to strange outputs such as `nsafe {`.
2024-08-26interpret: do not make const-eval query result depend on tcx.sessRalf Jung-6/+40
2024-08-26const-eval: do not make UbChecks behavior depend on current crate's flagsRalf Jung-0/+4
2024-08-26tidy: skip revision llvm-components check for run-make tests许杰友 Jieyou Xu (Joe)-2/+8
Since run-make tests do not support revisions.
2024-08-26Auto merge of #17963 - avrong:avrong/error-lifetimes, r=Veykrilbors-33/+17
Always show error lifetime arguments as `'_` Fixes #17947 Changed error lifetime argument presentation in non-test environment to `'_` and now showing them even if all of args are error lifetimes. This also influenced some of the other tests like `extract_function.rs`, `predicate.rs` and `type_pos.rs`. Not sure whether I need to refrain from adding lifetimes args there. Happy to fix if needed
2024-08-26Add a run-make test for checking that certain `rustc_` crates build on stableJakub Beránek-3/+16
2024-08-26Show lifetime args if there are only error onesAleksei Trifonov-12/+2
2024-08-26Show and render error lifetime args as `'_`Aleksei Trifonov-21/+15
2024-08-26Auto merge of #17941 - ChayimFriedman2:pre-closure-to-fn, r=Veykrilbors-166/+815
Preliminary work for #17940 I split the PR as requested, and made small commits.
2024-08-26silence an overreaching clippy lintRalf Jung-0/+1
2024-08-26Merge from rustcThe Miri Cronjob Bot-3038/+3128
2024-08-26Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2024-08-26Fix Return Type Syntax to include `..` (i.e. `method(..)` and not ↵Chayim Refael Friedman-16/+183
`method()`) as specified in the RFC
2024-08-25strip whitespace for ignored tests reason commentsRémy Rakic-1/+1
2024-08-25compiletest: implement `needs-lvm-zstd` directiveRémy Rakic-1/+111
2024-08-25Auto merge of #129531 - Jarcho:clippyup, r=Manishearthbors-2961/+3044
Clippy subtree update r? `@Manishearth`
2024-08-25Auto merge of #17960 - duncanawoods:master, r=HKalbasibors-0/+8
fix: add extra_test_bin_args to test explorer test runner `@HKalbasi` I thought I included this in #17470 but it appears not so I have created a new issue #17959 for this fix.
2024-08-25Auto merge of #17961 - Veykril:autoderef-alloc, r=Veykrilbors-26/+60
internal: Don't allocate autoderef steps when not needed
2024-08-25internal: Don't allocate autoderef steps when not neededLukas Wirth-26/+60
2024-08-25fix: add extra_test_bin_args to test explorer test runnerduncan-0/+8
trim whitespace
2024-08-25Add test for triggering notification after timeouttiif-1/+40
2024-08-25Auto merge of #17958 - Veykril:deref-chain-method-completions, r=Veykrilbors-33/+90
fix: Fix trait method completions not acknowledging Deref impls
2024-08-25fix: Fix trait method completions not acknowledging Deref implsLukas Wirth-33/+90
2024-08-25Auto merge of #129521 - matthiaskrgr:rollup-uigv77m, r=matthiaskrgrbors-70/+64
Rollup of 9 pull requests Successful merges: - #128596 (stabilize const_fn_floating_point_arithmetic) - #129199 (make writes_through_immutable_pointer a hard error) - #129246 (Retroactively feature gate `ConstArgKind::Path`) - #129290 (Pin `cc` to 1.0.105) - #129323 (Implement `ptr::fn_addr_eq`) - #129500 (remove invalid `TyCompat` relation for effects) - #129501 (panicking: improve hint for Miri's RUST_BACKTRACE behavior) - #129505 (interpret: ImmTy: tighten sanity checks in offset logic) - #129510 (Fix `elided_named_lifetimes` in code) r? `@ghost` `@rustbot` modify labels: rollup
2024-08-25Auto merge of #17956 - Veykril:metadata-err, r=Veykrilbors-52/+60
fix: Fix metadata retrying eating original errors
2024-08-25fix: Fix metadata retrying eating original errorsLukas Wirth-52/+60
2024-08-24Rollup merge of #129512 - lolbinarycat:linkchecker-impl-docs, r=ehussTrevor Gross-2/+4
update the doc comment on lintchecker b/c it parses html now
2024-08-25Don't enable the search fast path for short associated functions when a ↵Chayim Refael Friedman-0/+4
search scope is set In most places where we set a search scope it is a single file, and so the fast path will actually harm performance, since it has to search for aliases in the whole project. The only exception that qualifies for the fast path is SSR (there is an exception that don't qualify for the fast path as it search for `use` items). It sets the search scope to avoid dependencies. We could make it use the fast path, but I didn't bother.
2024-08-24Merge commit '0f8eabd6231366bfc1bb1464601297c2d48f8f68' into clippyupJason Newcomb-2961/+3044
2024-08-24Impl PartialEq and Eq for `IndentLevel`Chayim Refael Friedman-1/+1
We can impl PartialOrd and Ord too, but I didn't need that.
2024-08-24Provide `impl From<ast::TypeOrConstParam> for ast::GenericParam`Chayim Refael Friedman-1/+10
2024-08-24Modify `hacks::parse_expr_from_str()` to take an edition tooChayim Refael Friedman-10/+14
This will be needed as we parse unknown identifiers and want to insert them into source code.
2024-08-24Add helper methods to retrieve `Future::Output` and `Iterator::Item`Chayim Refael Friedman-1/+24
2024-08-24Provide `Future::Output` and `Iterator` lang itemsChayim Refael Friedman-3/+9
2024-08-24Handle associated types that are lang itemsChayim Refael Friedman-5/+13
Previously we were ignoring them.
2024-08-24Add `gen` modifier to functionsChayim Refael Friedman-4/+38
We don't yet lower or maybe even parse them, but blocks already have `gen`, so why not.
2024-08-24Preserve all spans for closure captures, not just oneChayim Refael Friedman-179/+456
This is important for the "convert closure to fn" assist, as it needs to find and modify the places the captures are used.
2024-08-24Rollup merge of #129510 - GrigorenkoPV:fix-elided-named-lifetimes, r=cjgillotMatthias Krüger-2/+2
Fix `elided_named_lifetimes` in code https://github.com/rust-lang/rust/pull/129207#issuecomment-2308428671 r? cjgillot
2024-08-24Rollup merge of #129501 - RalfJung:miri-rust-backtrace, r=NoratriebMatthias Krüger-33/+33
panicking: improve hint for Miri's RUST_BACKTRACE behavior Should help with https://github.com/rust-lang/miri/issues/3838
2024-08-24Rollup merge of #128596 - RalfJung:const_fn_floating_point_arithmetic, ↵Matthias Krüger-35/+29
r=nnethercote stabilize const_fn_floating_point_arithmetic Part of https://github.com/rust-lang/rust/issues/128288 Fixes https://github.com/rust-lang/rust/issues/57241 The existing test `tests/ui/consts/const_let_eq_float.rs` ([link](https://github.com/RalfJung/rust/blob/const_fn_floating_point_arithmetic/tests/ui/consts/const_let_eq_float.rs)) covers the basics, and also Miri has extensive tests covering the interpreter's float machinery. Also, that machinery can already be used on stable inside `const`/`static` initializers, just not inside `const fn`. This was explicitly called out in https://github.com/rust-lang/rfcs/pull/3514 so in a sense t-lang just recently already FCP'd this, but let's hear from them whether they want another FCP for the stabilization here or whether that was covered by the FCP for the RFC. Cc ``@rust-lang/lang`` ### Open items - [x] Update the Reference: https://github.com/rust-lang/reference/pull/1566
2024-08-24Fix few bugs in closure capture computation, and add testsChayim Refael Friedman-3/+291
Also create a test infrastructure for capture computation.
2024-08-25Add 0 preemption rate flagtiif-0/+2
2024-08-25Add 0 preemption rate flag for blocking test and fix commenttiif-1/+1
2024-08-25Make blocking_epoll_callback a private functiontiif-43/+41
2024-08-25Remove thread_id from epoll::thread_ids after timeouttiif-13/+9
2024-08-25Fix error introduced by rebasetiif-4/+9
2024-08-25Check if the thread is blocked before waking them uptiif-1/+13
2024-08-25Change timeout valuetiif-2/+2