about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2024-11-22Refactor AnonSocket::read/writetiif-44/+80
2024-11-21aix: fix archive formatHenry Jiang-15/+31
fmt fix cfg for windows remove unused imports address comments update libc to 0.2.164 fmt remove unused imports
2024-11-21Auto merge of #133287 - matthiaskrgr:rollup-ab9j3pu, r=matthiaskrgrbors-1/+3
Rollup of 6 pull requests Successful merges: - #130236 (unstable feature usage metrics) - #131544 (Make asm label blocks safe context) - #131586 (Support s390x z13 vector ABI) - #132489 (Fix closure arg extraction in `extract_callable_info`, generalize it to async closures) - #133078 (tests: ui/inline-consts: add issue number to a test, rename other tests) - #133283 (Don't exclude relnotes from `needs-triage` label) r? `@ghost` `@rustbot` modify labels: rollup
2024-11-21Reorganize the "Source Code Representation" chapters (#2142)Boxy-354/+80
2024-11-21Rollup merge of #131544 - nbdd0121:asm_goto_safe_block, r=petrochenkovMatthias Krüger-1/+3
Make asm label blocks safe context Tracking issue: https://github.com/rust-lang/rust/issues/119364 `asm!()` is forced to be wrapped inside unsafe. If there's no special treatment, the label blocks would also always be unsafe with no way of opting out. It was suggested that a simple fix is to make asm label blocks safe: https://github.com/rust-lang/rust/issues/119364#issuecomment-2316037703. `@rustbot` labels: +A-inline-assembly +F-asm
2024-11-21Auto merge of #132629 - nnethercote:124141-preliminaries, r=petrochenkovbors-1/+1
#124141 preliminaries Preliminary changes required to start removing `Nonterminal` (https://github.com/rust-lang/rust/pull/124141). r? `@petrochenkov`
2024-11-21generate-copyright: Now generates a library file too.Jonathan Pallant-28/+180
We only run reuse once, so the output has to be filtered to find only the files that are relevant to the library tree. Outputs build/COPYRIGHT.html and build/COPYRIGHT-library.html.
2024-11-21fmtRalf Jung-6/+2
2024-11-21Merge from rustcRalf Jung-115/+133
2024-11-21Preparing for merge from rustcRalf Jung-1/+1
2024-11-21Auto merge of #133254 - Earlopain:llvm-19.1.4, r=DianQKbors-0/+0
Update LLVM to 19.1.4 Fixes https://github.com/rust-lang/rust/issues/125619 r? `@DianQK`
2024-11-20trophy case: add RwLock::downgrade bugRalf Jung-0/+1
2024-11-21Introduce `InvisibleOrigin` on invisible delimiters.Nicholas Nethercote-1/+1
It's not used meaningfully yet, but will be needed to get rid of interpolated tokens.
2024-11-20Merge pull request #4026 from eduardosm/soft-sqrtRalf Jung-68/+219
miri: implement square root without relying on host floats
2024-11-20miri: implement square root without relying on host floatsEduardo Sánchez Muñoz-68/+219
2024-11-20Auto merge of #131326 - dingxiangfei2009:issue-130836-attempt-2, r=nikomatsakisbors-0/+1
Reduce false positives of tail-expr-drop-order from consumed values (attempt #2) r? `@nikomatsakis` Tracked by #123739. Related to #129864 but not replacing, yet. Related to #130836. This is an implementation of the approach suggested in the [Zulip stream](https://rust-lang.zulipchat.com/#narrow/stream/213817-t-lang/topic/temporary.20drop.20order.20changes). A new MIR statement `BackwardsIncompatibleDrop` is added to the MIR syntax. The lint now works by inspecting possibly live move paths before at the `BackwardsIncompatibleDrop` location and the actual drop under the current edition, which should be one before Edition 2024 in practice.
2024-11-20Update LLVM to 19.1.4Earlopain-0/+0
2024-11-20Auto merge of #133251 - matthiaskrgr:rollup-gjeis3q, r=matthiaskrgrbors-12/+15
Rollup of 3 pull requests Successful merges: - #131904 (Stabilize const_pin_2) - #133239 (Fix LLVM target triple for `x86_64-win7-windows-msvc`) - #133241 (interpret: make typing_env field private) r? `@ghost` `@rustbot` modify labels: rollup
2024-11-20Rollup merge of #133241 - RalfJung:typing-env, r=lcnrMatthias Krüger-12/+15
interpret: make typing_env field private This was made public in https://github.com/rust-lang/rust/pull/133212 but IMO it should remain private. (Specifically, this prevents it from being mutated.) r? `@lcnr`
2024-11-20ci: Disable full `debuginfo-level=2` in windows alt jobMarcoIeni-1/+1
2024-11-20reduce false positives of tail-expr-drop-order from consumed valuesDing Xiang Fei-0/+1
take 2 open up coroutines tweak the wordings the lint works up until 2021 We were missing one case, for ADTs, which was causing `Result` to yield incorrect results. only include field spans with significant types deduplicate and eliminate field spans switch to emit spans to impl Drops Co-authored-by: Niko Matsakis <nikomat@amazon.com> collect drops instead of taking liveness diff apply some suggestions and add explantory notes small fix on the cache let the query recurse through coroutine new suggestion format with extracted variable name fine-tune the drop span and messages bugfix on runtime borrows tweak message wording filter out ecosystem types earlier apply suggestions clippy check lint level at session level further restrict applicability of the lint translate bid into nop for stable mir detect cycle in type structure
2024-11-20Auto merge of #133227 - weihanglo:update-cargo, r=weihanglobors-0/+0
Update cargo 5 commits in 69e595908e2c420e7f0d1be34e6c5b984c8cfb84..66221abdeca2002d318fde6efff516aab091df0e 2024-11-16 01:26:11 +0000 to 2024-11-19 21:30:02 +0000 - Docs for optional registry JSON fields (rust-lang/cargo#14839) - Allow registries to omit empty/default fields in JSON (rust-lang/cargo#14838) - docs(unstable): Link to -Zwarnings issue, tracking issue (rust-lang/cargo#14836) - fix(): error context for git_fetch refspec not found (rust-lang/cargo#14806) - you we distinction (rust-lang/cargo#14829)
2024-11-20interpret: make typing_env field privateRalf Jung-12/+15
2024-11-20Auto merge of #133234 - jhpratt:rollup-42dmg4p, r=jhprattbors-1/+1
Rollup of 5 pull requests Successful merges: - #132732 (Use attributes for `dangling_pointers_from_temporaries` lint) - #133108 (lints_that_dont_need_to_run: never skip future-compat-reported lints) - #133190 (CI: use free runner in dist-aarch64-msvc) - #133196 (Make rustc --explain compatible with BusyBox less) - #133216 (Implement `~const Fn` trait goal in the new solver) r? `@ghost` `@rustbot` modify labels: rollup
2024-11-20Make `Diag` a clickable link in Suggestion section (#2140)Yutaro Ohno-1/+2
2024-11-20Rollup merge of #133190 - MarcoIeni:dist-aarch64-msvc-free, r=KobzolJacob Pratt-1/+1
CI: use free runner in dist-aarch64-msvc try-job: dist-aarch64-msvc
2024-11-20Auto merge of #133212 - lcnr:questionable-uwu, r=compiler-errorsbors-109/+114
continue `ParamEnv` to `TypingEnv` transition cc #132279 r? `@compiler-errors`
2024-11-20Merge from rustcThe Miri Cronjob Bot-57/+320
2024-11-20Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2024-11-19Update cargoWeihang Lo-0/+0
2024-11-19Rollup merge of #133213 - alexcrichton:fix-tier-listing, r=jieyouxuMatthias Krüger-1/+1
Correct the tier listing of `wasm32-wasip2` This target is tier 2, not tier 3, and I forgot to update this. Closes #133206
2024-11-19Rollup merge of #133207 - jieyouxu:macos-objcopy, r=Kobzol,bjorn3Matthias Krüger-0/+9
Default-enable `llvm_tools_enabled` when no `config.toml` is present Fixes #133195. cc `@wesleywiser` could you double check if with this patch and no `config.toml` that you can run `./x test tests/ui --stage 1`? `llvm-objcopy` is usually required by cg_ssa on macOS to workaround bad `strip`s. cc `@bjorn3` I hope this doesn't break cg_clif... r? bootstrap
2024-11-19Rollup merge of #133201 - nnethercote:rm-TokenKind-InvalidPrefix, ↵Matthias Krüger-5/+4
r=compiler-errors Remove `TokenKind::InvalidPrefix` It's not needed. Best reviewed one commit at a time. r? `@estebank`
2024-11-19Rollup merge of #133175 - MarcoIeni:dist-i686-msvc-free, r=KobzolMatthias Krüger-1/+1
ci: use free runner in dist-i686-msvc try-job: dist-i686-msvc
2024-11-19Merge pull request #18485 from ↵David Barsky-6/+10
davidkurilla/feat-migrate-add_braces-to-use-SyntaxFactory feat: convert add_braces to SyntaxFactory SyntaxEditor abstraction
2024-11-19Merge pull request #18521 from tareknaser/syntax_factory_reorder_impl_itemsDavid Barsky-7/+14
Migrate `reorder_impl_items` Assist to Use `SyntaxFactory`
2024-11-19`InterpCx` store `TypingEnv` instead of a `ParamEnv`lcnr-13/+13
2024-11-19remove `TypingMode::from_param_env` in clippylcnr-68/+77
2024-11-19Merge pull request #18529 from ↵Laurențiu Nicola-1/+103
cmrschwarz/allow_leading_whitespace_in_merge_match_arms Improve selection handling for the `merge_match_arms` assist
2024-11-19rustdoc: yeet `TypingEnv::from_param_env`lcnr-9/+7
2024-11-19Merge pull request #18459 from Giga-Bowser/match-placeholdersLaurențiu Nicola-113/+128
feat: Use snippet placeholders for generated match arms
2024-11-19Fix missing submodule in `./x vendor`Eric Huss-1/+3
The `src/tools/rustc-perf` submodule is needed for vendoring because it is included in the vendor set.
2024-11-19move `fn is_item_raw` to `TypingEnv`lcnr-28/+26
2024-11-19Auto merge of #133205 - matthiaskrgr:rollup-xhhhp5u, r=matthiaskrgrbors-12/+13
Rollup of 4 pull requests Successful merges: - #131081 (Use `ConstArgKind::Path` for all single-segment paths, not just params under `min_generic_const_args`) - #132577 (Report the `unexpected_cfgs` lint in external macros) - #133023 (Merge `-Zhir-stats` into `-Zinput-stats`) - #133200 (ignore an occasionally-failing test in Miri) r? `@ghost` `@rustbot` modify labels: rollup
2024-11-19Correct the tier listing of `wasm32-wasip2`Alex Crichton-1/+1
This target is tier 2, not tier 3, and I forgot to update this. Closes #133206
2024-11-19Register change infoJieyou Xu-0/+5
2024-11-19Default-enable `llvm_tools_enabled` when no `config.toml` is presentJieyou Xu-0/+4
2024-11-19Merge pull request #4035 from discord9/masterRalf Jung-32/+57
refactor: refine thread variant for windows
2024-11-19refactor: refine thread variant for windowsdiscord9-32/+57
2024-11-19Rollup merge of #132577 - Urgau:check-cfg-report-extern-macro, r=petrochenkovMatthias Krüger-5/+5
Report the `unexpected_cfgs` lint in external macros This PR marks the `unexpected_cfgs` lint as being reportable in external macros, as it's probably not the intention of the macro author to leave ineffective cfgs in the users code. Fixes #132572 try-job: aarch64-gnu-debug