about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2025-01-28Merge pull request #19015 from Wilfred/mdbookLukas Wirth-2686/+2836
manual: Convert to mdbook
2025-01-28Fix scip symbols for implicit modulesDavid Richey-13/+30
2025-01-28Fix tests/codegen/float/f128Alisa Sireneva-0/+1
2025-01-28Merge pull request #19056 from Giga-Bowser/fix-syntax-tree-crlfLukas Wirth-76/+181
fix: Properly handle CRLF line endings in the syntax tree view
2025-01-28Merge pull request #19057 from darichey/status-bar-in-outputLukas Wirth-0/+4
Show status bar in RA output
2025-01-28Fix scip `crate` symbol nameDavid Richey-5/+17
2025-01-28ci: remove unused windows runnerMarcoIeni-4/+0
2025-01-28Disable `Receiver` based autoderef temporarilyLukas Wirth-6/+8
2025-01-28Rollup merge of #135961 - saethlin:skip-less-in-opt-dist, r=jieyouxuMatthias Krüger-14/+11
Fix 2/4 tests skipped by opt-dist The linker errors were because this one test, strangely, wants itself compiled with `-Ctarget-features=+crt-static`, and yet it looks like the runner image is simply missing static libraries for libc and libm. Eyeballing the output of ``` rustc +nightly --target=x86_64-pc-windows-msvc -O tests/codegen/vec-shrink-panik.rs --emit=llvm-ir ``` suggests that vec-shrink-panik should pass on Windows. And it's quite disturbing that such a test would have failed only on Windows to start with. Exactly why that was would require some advanced digging, but it looks clean now.
2025-01-28Rollup merge of #135748 - compiler-errors:len-2, r=RalfJung,oli-obkMatthias Krüger-0/+35
Lower index bounds checking to `PtrMetadata`, this time with the right fake borrow semantics 😸 Change `Rvalue::RawRef` to take a `RawRefKind` instead of just a `Mutability`. Then introduce `RawRefKind::FakeForPtrMetadata` and use that for lowering index bounds checking to a `PtrMetadata`. This new `RawRefKind::FakeForPtrMetadata` acts like a shallow fake borrow in borrowck, which mimics the semantics of the old `Rvalue::Len` operation we're replacing. We can then use this `RawRefKind` instead of using a span desugaring hack in CTFE. cc ``@scottmcm`` ``@RalfJung``
2025-01-28Merge from rustcBoxy-4351/+10673
2025-01-28Preparing for merge from rustcBoxy-1/+1
2025-01-28miri: optimize zeroed allocSpecificProtagonist-49/+29
Co-authored-by: Ralf Jung <post@ralfj.de>
2025-01-28Update username in build helper examplenora-2/+2
2025-01-28Update about-this-guide.mdJoren-vanGoethem-1/+0
2025-01-27add work-in-progress unstable book chaptersdianne-0/+38
These are very bare-bones, only intended to provide some documentation of what these feature gates are and aren't yet implementing.
2025-01-27Fix scip inherent impl overflowDavid Richey-6/+6
2025-01-28ABI-required target features: warn when they are missing in base CPU (rather ↵Ralf Jung-2/+2
than silently enabling them)
2025-01-28linker messages are no longer warnings by defaultRalf Jung-3/+1
2025-01-28Merge from rustcRalf Jung-300/+393
2025-01-28Preparing for merge from rustcRalf Jung-1/+1
2025-01-27rustdoc: add nobuild typescript checking to our JSMichael Howell-682/+1658
By nobuild, I mean that the type annotations are all in comments, not in the "native" typescript syntax. This is a bit uglier, but it lets you rapid-prototype without tsc, works with all the native browser debugging tools, and keeps Node out of Rust's bootstrap chain. This pull request mostly just adds ts-ignore annotations and type declarations. To actually take good advantage of typescript, we'll want to "burn down" this pile of unsafe code until we eventually have a version with almost none of these. This PR also adds tsc to the mingw-check Dockerfile, so that it can't fall out of date like the Closure annotations did. https://rust-lang.zulipchat.com/#narrow/channel/266220-t-rustdoc/topic/typescript
2025-01-28Represent the raw pointer for a array length check as a new kind of fake borrowMichael Goulet-0/+35
2025-01-27Fix rustc-pull CI's bash commandsJakub Beránek-2/+2
2025-01-27Back out "feat: Implement `default-field-values`"David Barsky-647/+31
This backs out commit 7de0b2e75a541b98f735ee6fcd12d326be38d23f.
2025-01-27Back out "Handle missing fields diagnostics"David Barsky-59/+12
This backs out commit e6a103ae50699db1dbb0676d075a4bcda2247939.
2025-01-27Back out "Merge record lit's ellipsis into pre-existing spread's variant"David Barsky-55/+34
This backs out commit c134b20c9cbc88a36e77acb8522e8dc4573bd906.
2025-01-27Back out "Compute diagnostics of a field body iff it has one"David Barsky-64/+22
This backs out commit b4d4d02db8a95f5507fbd0aa90904d7b774f0027.
2025-01-27Back out "Implement `HasResolver` and `HasModule` for `FieldId`"David Barsky-20/+19
This backs out commit ce9da9063097c26006886b3f403a0c50790c285a.
2025-01-27Back out "Add a test for field default value body as defining usage of TAIT"David Barsky-141/+27
This backs out commit 4fe18a6fb5a1181a04c47391f558ebab5b8b0f39.
2025-01-27Back out "Fix a mistake in condition"David Barsky-1/+2
This backs out commit e5c38558f5dbc37cbc91f9fda58144ce02e1f5aa.
2025-01-27Back out "Remove `has_default` from `FieldId`"David Barsky-35/+64
This backs out commit 8aa6c09fcee6270c787a6f00615d76343fbe5c07.
2025-01-27Fix 2/4 tests skipped by opt-distBen Kimock-14/+11
2025-01-27Auto merge of #136110 - RalfJung:miri-sync, r=RalfJungbors-16/+22
Miri subtree update r? `@ghost`
2025-01-27Show status bar in RA outputDavid Richey-0/+4
2025-01-27fix: Properly handle CRLF line endings in the syntax tree viewGiga Bowser-76/+181
2025-01-27Add FreeBSD as a target OS for TestDir to avoid warningsVladimir Krivopalov-2/+7
Currently, running rust-analyzer tests on FreeBSD produces an "unused variable" warning. The code is fully compatible with FreeBSD and doesn't have to be omitted. Signed-off-by: Vladimir Krivopalov <vladimir@krivopalov.ru>
2025-01-27Enable sanitizers on MSVC CI jobsTomasz Miąsko-4/+4
Previously MSVC CI would ignore all tests annotated with needs-sanitizer-support header.
2025-01-27Merge pull request #19051 from ChayimFriedman2/fn-ptr-unsafeLukas Wirth-1/+19
fix: Report calling unsafe fn pointer as unsafe
2025-01-27Merge pull request #19050 from ChayimFriedman2/iter-selfLukas Wirth-1/+36
fix: Don't suggest `into_iter().method()` on iterators
2025-01-27Merge pull request #19049 from ChayimFriedman2/add-reference-tyLukas Wirth-16/+5
minor: Remove duplicate method from `hir::Type`
2025-01-27Merge pull request #19052 from Veykril/push-yqwutllwwyypLukas Wirth-9/+14
Prioritize formatting thread tasks in main_loop
2025-01-27Prioritize formatting thread tasks in main_loopLukas Wirth-9/+14
2025-01-27Update booksrustbot-0/+0
2025-01-27Report calling unsafe fn pointer as unsafeChayim Refael Friedman-1/+19
2025-01-27Don't suggest `into_iter().method()` on iteratorsChayim Refael Friedman-1/+36
2025-01-27Remove duplicate method from `hir::Type`Chayim Refael Friedman-16/+5
I added it by mistake in #18927. I chose to keep the method as not static, because it's more comfortable, and keep the name `add_reference()` and not `reference()`, because it is clearer and better matches `strip_reference[s]()`.
2025-01-27ci: use ubuntu 24 on free runnersMarcoIeni-2/+2
2025-01-27Rollup merge of #136112 - fmease:clean-up-all-dead-files-in-ui-tests, ↵Guillaume Gomez-2/+1
r=compiler-errors Clean up all dead files inside `tests/ui/` While rebasing #135860 I noticed that there are several dead `*.stderr` files inside `tests/ui/`. When I checked thoroughly, I found 69 dead `*.$revision.stderr` files, 3 other dead `*.stderr` files and one dead `*.rs` file. Prior to #134808, compiletest's `--bless` didn't remove dead `*.stderr` files when the set of revisions changed in any way (renamings, removals, additions, …) which explains their existence. Regarding the dead `*.rs` file, that one was located inside an `auxiliary/` directory (together with a `*.stderr` file) despite not being meant to be an auxiliary file (it's not referenced by any `//@ aux-*`, it has an accompanying `*.stderr` file and it's obvious from looking at #111056 which added it). Ideally compiletest or tidy would forbid `*.std{out,err}` files inside `auxiliary/` dirs, that would've caught it. I moved it, updated it and turned it into a proper UI test. --- How to reproduce: 1. Run `rm tests/ui/**/*.stderr` 2. Run `./x test tests/ui --bless` (or similar) 3. Manually / semi-automatically go through all tests that were ignored (likely due to your OS etc. not matching) and restore any stderr files that were overzealously removed --- r? compiler
2025-01-27Rollup merge of #136037 - no1wudi:doc, r=jieyouxuGuillaume Gomez-17/+17
Mark all NuttX targets as tier 3 target and support the standard library The support for standard library added by https://github.com/rust-lang/rust/pull/130595.