about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2025-01-27Merge pull request #19047 from lnicola/rename-highlightLaurențiu Nicola-0/+14
fix: Fix syntactic highlighting for renames
2025-01-27Fix syntactic highlighting for renamesLaurențiu Nicola-0/+14
2025-01-27Merge pull request #19044 from ChayimFriedman2/deprecated-safeLukas Wirth-100/+274
fix: Fix #[rustc_deprecated_safe_2024]
2025-01-27Fix a missing standard token in semantic highlightingChayim Refael Friedman-2/+3
That was used as a fallback, causing a panic when the fallback was chosen. I also made sure this won't happen again by guaranteeing in the macro generating the tokens that they all exist.
2025-01-27Fix #[rustc_deprecated_safe_2024]Chayim Refael Friedman-100/+274
It should be considered by the edition of the caller, not the callee. Technically we still don't do it correctly - we need the span of the method name (if it comes from a macro), but we don't keep it and this is good enough for now.
2025-01-27Bump ui_testOli Scherer-9/+13
2025-01-27Avoid a bool and use an Option of ZST insteadOli Scherer-13/+23
2025-01-27Remove `has_default` from `FieldId`Shoyu Vanilla-64/+35
2025-01-27Fix a mistake in conditionShoyu Vanilla-2/+1
2025-01-27Add a test for field default value body as defining usage of TAITShoyu Vanilla-27/+141
2025-01-27Implement `HasResolver` and `HasModule` for `FieldId`Shoyu Vanilla-19/+20
2025-01-27Compute diagnostics of a field body iff it has oneShoyu Vanilla-22/+64
2025-01-27Merge record lit's ellipsis into pre-existing spread's variantShoyu Vanilla-34/+55
2025-01-27Handle missing fields diagnosticsShoyu Vanilla-12/+59
2025-01-27feat: Implement `default-field-values`Shoyu Vanilla-31/+647
2025-01-27Merge pull request #19036 from Veykril/push-nprltlwvryxwLukas Wirth-526/+645
Split out `ExpressionStore` from `Body`
2025-01-27Merge pull request #19037 from ChayimFriedman2/fix-other-testLukas Wirth-8/+83
fix: In completion's expand, consider recursion stop condition (when we're not inside a macro call anymore) *after* the recursive call instead of before it
2025-01-27Auto merge of #136116 - fmease:rollup-c8pk3mj, r=fmeasebors-201/+269
Rollup of 8 pull requests Successful merges: - #126604 (Uplift `clippy::double_neg` lint as `double_negations`) - #135158 (Add `TooGeneric` variant to `LayoutError` and emit `Unknown`) - #135635 (Move `std::io::pipe` code into its own file) - #136072 (add two old crash tests) - #136079 (compiler_fence: fix example) - #136091 (Add some tracing to core bootstrap logic) - #136097 (rustc_ast: replace some len-checks + indexing with slice patterns etc.) - #136101 (triagebot: set myself on vacation) r? `@ghost` `@rustbot` modify labels: rollup
2025-01-27Auto merge of #135937 - bjorn3:separate_coretests_crate, r=jieyouxu,tgross35bors-4/+4
Put the core unit tests in a separate coretests package Having standard library tests in the same package as a standard library crate has bad side effects. It causes the test to have a dependency on a locally built standard library crate, while also indirectly depending on it through libtest. Currently this works out fine in the context of rust's build system as both copies are identical, but for example in cg_clif's tests I've found it basically impossible to compile both copies with the exact same compiler flags and thus the two copies would cause lang item conflicts. This PR moves the tests of libcore to a separate package which doesn't depend on libcore, thus preventing the duplicate crates even when compiler flags don't exactly match between building the sysroot (for libtest) and building the test itself. The rest of the standard library crates do still have this issue however.
2025-01-27Rollup merge of #136091 - jieyouxu:core-tracing, r=clubby789León Orell Valerian Liehr-50/+165
Add some tracing to core bootstrap logic Follow-up to #135391. ### Summary Add some initial tracing logging to bootstrap, focused on the core logic (in this PR). Also: - Adjusted tracing-tree style to not use indent lines (I found that more distracting than helpful). - Avoid glob-importing `tracing` items. - Improve the rustc-dev-guide docs on bootstrap tracing. ### Example output ```bash $ BOOTSTRAP_TRACING=bootstrap=TRACE ./x check src/bootstrap ``` ![Example bootstrap tracing output](https://github.com/user-attachments/assets/0be39042-0822-44b6-9451-30427cfea156) r? bootstrap
2025-01-27Rollup merge of #135158 - FedericoBruzzone:master, r=lukas-codeLeón Orell Valerian Liehr-5/+11
Add `TooGeneric` variant to `LayoutError` and emit `Unknown` What's in this PR? - Add `TooGeneric` variant to `LayoutError` and emit `Unknown` one With this PR these issues and their respective ICEs are resolved: - fixes https://github.com/rust-lang/rust/issues/135020 - fixes https://github.com/rust-lang/rust/issues/135138
2025-01-27Rollup merge of #126604 - kadiwa4:uplift_double_negation, r=nnethercoteLeón Orell Valerian Liehr-146/+93
Uplift `clippy::double_neg` lint as `double_negations` Warns about cases like this: ```rust fn main() { let x = 1; let _b = --x; //~ WARN use of a double negation } ``` The intent is to keep people from thinking that `--x` is a prefix decrement operator. `++x`, `x++` and `x--` are invalid expressions and already have a helpful diagnostic. I didn't add a machine-applicable suggestion to the lint because it's not entirely clear what the programmer was trying to achieve with the `--x` operation. The code that triggers the lint should always be reviewed manually. Closes #82987
2025-01-27Make a previously unreachable UI test reachableLeón Orell Valerian Liehr-1/+0
2025-01-27Remove all dead files inside tests/ui/León Orell Valerian Liehr-1/+1
2025-01-27Mark all NuttX targets as tier 3 target and support the standard libraryHuang Qi-17/+17
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2025-01-27Add `TooGeneric` variant to `LayoutError` and emit `Unknown` oneFedericoBruzzone-5/+11
- `check-pass` test for a MRE of #135020 - fail test for #135138 - switch to `TooGeneric` for checking CMSE fn signatures - switch to `TooGeneric` for compute `SizeSkeleton` (for transmute) - fix broken tests
2025-01-26Merge pull request #2223 from marxin/CI-cache-restore-keyNoah Lev-2/+4
CI: use key-restore for cache GH action
2025-01-26Support RFC 2396Chayim Refael Friedman-24/+132
AKA. target_feature 1.1, or non unsafe target_feature.
2025-01-26Correct information on dylib compressionEric Huss-1/+1
Compression of dylibs was removed in https://github.com/rust-lang/rust/pull/113695 (and decompression removed in https://github.com/rust-lang/rust/pull/132402).
2025-01-26Merge pull request #4154 from RalfJung/linux-futexRalf Jung-3/+2
make linux-futex test less flaky
2025-01-26make linux-futex test less flakyRalf Jung-3/+2
2025-01-26Pre-intern name when searching module childrenMark Rousskov-1/+2
This avoids a good deal of work, since each module child can now just be compared via u32 comparison, rather than fetching the raw &str (requiring locking and indexing into the interner) and then comparing the two strings (also relatively expensive).
2025-01-27rustc-dev-guide: update bootstrap tracing docs许杰友 Jieyou Xu (Joe)-32/+58
2025-01-27bootstrap: add more logging许杰友 Jieyou Xu (Joe)-2/+93
2025-01-27bootstrap: adjust config file cascading fallback comment许杰友 Jieyou Xu (Joe)-1/+5
2025-01-27bootstrap: adjust tracing style许杰友 Jieyou Xu (Joe)-11/+6
2025-01-27bootstrap: avoid glob imports in `main` binary许杰友 Jieyou Xu (Joe)-5/+4
2025-01-26In completion's expand, consider recursion stop condition (when we're not ↵Chayim Refael Friedman-8/+83
inside a macro call anymore) *after* the recursive call instead of before it This is because our detection is imperfect, and miss some cases such as an impersonating `test` macro, so we hope we'll expand successfully in this case.
2025-01-26many-seeds: do not use more than 8 threadsRalf Jung-4/+3
2025-01-26many-seeds: in keep-going mode, print how many tests failedRalf Jung-2/+8
2025-01-26prevent weird macOS linker errors from breaking the buildRalf Jung-1/+3
2025-01-26Auto merge of #136087 - jhpratt:rollup-tam1mzn, r=jhprattbors-65/+93
Rollup of 7 pull requests Successful merges: - #133631 (Support QNX 7.1 with `io-sock`+libstd and QNX 8.0 (`no_std` only)) - #134358 (compiler: Set `target_abi = "ilp32e"` on all riscv32e targets) - #135812 (Fix GDB `OsString` provider on Windows ) - #135842 (TRPL: more backward-compatible Edition changes) - #135946 (Remove extra whitespace from rustdoc breadcrumbs for copypasting) - #135953 (ci.py: check the return code in `run-local`) - #136019 (Add an `unchecked_div` alias to the `Div<NonZero<_>>` impls) r? `@ghost` `@rustbot` modify labels: rollup
2025-01-26remove `clippy::double_neg`Kalle Wachsmuth-146/+93
2025-01-26Put all coretests in a separate cratebjorn3-4/+4
2025-01-26Add GenericDefId::StaticIdLukas Wirth-24/+46
2025-01-26Split out `ExpressionStore` from `Body`Lukas Wirth-445/+531
2025-01-26Auto merge of #135753 - compiler-errors:from-ty-const, r=oli-obkbors-10/+6
Get rid of `mir::Const::from_ty_const` This function is strange, because it turns valtrees into `mir::Const::Value`, but the rest of the const variants stay as type system consts. All of the callsites except for one in `instsimplify` (array length simplification of `ptr_metadata` call) just go through the valtree arm of the function, so it's easier to just create a `mir::Const` directly for those. For the instsimplify case, if we have a type system const we should *keep* having a type system const, rather than turning it into a `mir::Const::Value`; it doesn't really matter in practice, though, bc `usize` has no padding, but it feels more principled.
2025-01-26Merge pull request #19035 from rust-lang/Veykril-patch-1Lukas Wirth-12/+6
Update outdated permissions section in the README.md
2025-01-26Update outdated permissions section in the README.mdLukas Wirth-12/+6
2025-01-26Rollup merge of #135953 - cuviper:ci-run-local-fail, r=KobzolJacob Pratt-1/+1
ci.py: check the return code in `run-local` If the run fails, it should report that and return a non-zero exit status. The simplest way to do that is with `run(..., check=True)`, which raises a `CalledProcessError`.