summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2025-01-06Revert "force "HEAD" for non-CI and `git_upstream_merge_base` for CI ↵Pietro Albini-13/+3
environment" This reverts commit 33ac202904e7820268b71b3280a7d2590378e3b9.
2025-01-06Revert "add new CI step: "setup upstream remote""Pietro Albini-36/+0
This reverts commit 4454fa998c9da1f1eee1602c8e8cd2732505c104.
2025-01-06bump channel to stablePietro Albini-1/+1
2025-01-02Remove unneeded handling of backlines in doctest attributesGuillaume Gomez-2/+0
(cherry picked from commit c367cc3ef5648d5695fdb795cc66edbff88b4ce9)
2025-01-02Also handle cases where attributes are unclosedGuillaume Gomez-16/+40
(cherry picked from commit 23839853425e8c0c80d0aadb32bf5b4ba1bdf64b)
2025-01-02Correctly handle comments in attributes in doctests source codeGuillaume Gomez-0/+2
(cherry picked from commit de16ed35a326041f619de882dfcead1d02623328)
2025-01-02Move the `crate-loading` test to use `diff` outputEsteban Küber-0/+6
(cherry picked from commit 998ff2f0cd2902e86178d35b01ba78fe4633f80b)
2024-12-18Taking a raw ref of a deref is always safeLukas Wirth-4/+27
2024-12-05Update LLVM to 19.1.5DianQK-0/+0
(cherry picked from commit 605306efeff9b95f137e4f21bbdcf9038da68357)
2024-12-02Auto merge of #133546 - SomeoneToIgnore:beta, r=Mark-Simulacrumbors-243/+74
[beta] Revert r-a completions breakage As suggested by `@cuviper` in https://rust-lang.zulipchat.com/#narrow/channel/185405-t-compiler.2Frust-analyzer/topic/Completion.20IDs/near/484770216 Repeats the revert to `stable` https://github.com/rust-lang/rust/pull/133476 using https://patch-diff.githubusercontent.com/raw/rust-lang/rust/pull/133476.diff cc `@BoxyUwU` `@workingjubilee`
2024-11-29bump stage0Boxy-452/+350
2024-11-27Revert r-a completions breakageKirill Bulatov-243/+74
Repeats the revert to `stable` https://github.com/rust-lang/rust/pull/133476 using https://patch-diff.githubusercontent.com/raw/rust-lang/rust/pull/133476.diff
2024-11-26Ignore the rustc_bootstrap test during post-opt-dist testsJieyou Xu-0/+6
2024-11-26Revert "fix missing rustfmt for apple darwin"Boxy-9/+3
This reverts commit 2316749ca954030afed6145342808a8c1ae29fac.
2024-11-26Revert "fix missing rustfmt and clippy for msi"Boxy-70/+2
This reverts commit f5577a8174685aca342b9189e625648f25a23a20.
2024-11-25bump channel to betaBoxy-1/+1
2024-11-21Auto merge of #132362 - mustartt:aix-dylib-detection, r=jieyouxubors-15/+31
[AIX] change system dynamic library format Historically on AIX, almost all dynamic libraries are distributed in `.a` Big Archive Format which can consists of both static and shared objects in the same archive (e.g. `libc++abi.a(libc++abi.so.1)`). During the initial porting process, the dynamic libraries are kept as `.a` to simplify the migration, but semantically having an XCOFF object under the archive extension is wrong. For crate type `cdylib` we want to be able to distribute the libraries as archives as well. We are migrating to archives with the following format: ``` $ ar -t lib<name>.a lib<name>.so ``` where each archive contains a single member that is a shared XCOFF object that can be loaded.
2024-11-21Auto merge of #133246 - MarcoIeni:debug-info-2-windows-disable, r=Kobzolbors-1/+1
ci: Disable full `debuginfo-level=2` in windows alt job try-job: dist-x86_64-msvc-alt
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-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-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-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-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-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-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-19`InterpCx` store `TypingEnv` instead of a `ParamEnv`lcnr-13/+13
2024-11-19remove `TypingMode::from_param_env` in clippylcnr-68/+77
2024-11-19rustdoc: yeet `TypingEnv::from_param_env`lcnr-9/+7
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-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
2024-11-19Remove `TokenKind::InvalidPrefix`.Nicholas Nethercote-5/+4
It was added in #123752 to handle some cases involving emoji, but it isn't necessary because it's always treated the same as `TokenKind::InvalidIdent`. This commit removes it, which makes things a little simpler.