Matthias Krüger
ad4f303a5d
Rollup merge of #113556 - cuviper:trim-rls, r=Mark-Simulacrum
...
Don't use serde-derive in the rls shim
The already-small RLS shim can get a little smaller, and faster to
build, if we drop the serde-derive dependency and decode the one
"method" field it needs manually from `serde_json::Value`.
2023-07-11 00:58:18 +02:00
Matthias Krüger
40b1c5b716
Rollup merge of #113551 - jyn514:dry-run-exclude, r=ozkanonur
...
bootstrap: Don't print "Skipping" twice
Bootstrap executes itself twice: once with DryRun::SelfCheck and DryRun::Disabled. Change it not to print the "Skipping" message if SelfCheck is enabled.
See https://github.com/rust-lang/rust/actions/runs/5503931599/jobs/10029625567?pr=113514#step:24:772 .
2023-07-11 00:58:18 +02:00
Matthias Krüger
3413ace988
Rollup merge of #113548 - rustbot:docs-update, r=ehuss
...
Update books
## rust-lang/book
1 commits in 21cf840842bdf768a798869f06373c96c1cc5122..668c64760b5c7ea654facb4ba5fe9faddfda27cc
2023-06-29 13:50:36 UTC to 2023-06-29 13:50:36 UTC
- Remove adjective about what kind of number this is
## rust-lang/edition-guide
2 commits in f63e578b92ff43e8cc38fcaa257b660f45c8a8c2..2751bdcef125468ea2ee006c11992cd1405aebe5
2023-07-10 14:29:51 UTC to 2023-07-08 18:05:44 UTC
- Update a link to a section in the cargo workspaces. (rust-lang/edition-guide#283 )
- b'...' byte strings -> byte chars (rust-lang/edition-guide#282 )
## rust-embedded/book
2 commits in f2aed2fe8e9f55508c86ba3aa4b6789b18a08a22..1e5556dd1b864109985d5871616ae6b9164bcead
2023-06-29 07:34:47 UTC to 2023-06-27 23:43:06 UTC
- add constgebra to list of math crates (rust-embedded/book#358 )
- Switch to GHMQ (rust-embedded/book#357 )
## rust-lang/nomicon
1 commits in c369e4b489332f8721fbae630354fa83385d457d..302b995bcb24b70fd883980fd174738c3a10b705
2023-07-05 16:08:32 UTC to 2023-07-05 16:08:32 UTC
- Minor improvements (rust-lang/nomicon#414 )
## rust-lang/reference
5 commits in 5ca365eac678cb0d41a20b3204546d6ed70c7171..1ea0178266b3f3f613b0fabdaf16a83961c99cdb
2023-07-08 22:11:07 UTC to 2023-06-26 16:51:55 UTC
- Remove doc of unstable feature of never type (rust-lang/reference#1376 )
- Typo: 'assingee' to 'assignee' in expressions.md (rust-lang/reference#1377 )
- str type: make sentence more readable (rust-lang/reference#1374 )
- Remove obsolete note about soundness hole in type-layout.md (rust-lang/reference#1367 )
- Typo: 'a' to 'an' in destructors.md (rust-lang/reference#1371 )
## rust-lang/rust-by-example
1 commits in 57636d6926762861f34e030d52ca25a71e95e5bf..8a87926a985ce32ca1fad1be4008ee161a0b91eb
2023-07-07 22:44:06 UTC to 2023-07-07 22:44:06 UTC
- Hint for RGB color calculation (rust-lang/rust-by-example#1726 )
## rust-lang/rustc-dev-guide
18 commits in 17fe3e948498c50e208047a750f17d6a8d89669b..b5a12d95e32ae53791cc6ab44417774667ed2ac6
2023-07-09 14:50:50 UTC to 2023-06-28 04:55:24 UTC
- fix: update link to function coverage (rust-lang/rustc-dev-guide#1727 )
- Fix a bug in getting-started.md (rust-lang/rustc-dev-guide#1726 )
- improve explanation of placing tests in separate file (rust-lang/rustc-dev-guide#1721 )
- various fixes/improvements to Contributing chapter (rust-lang/rustc-dev-guide#1723 )
- ty::ConstKind has moved (rust-lang/rustc-dev-guide#1724 )
- document `./x test --rustc-args` option (rust-lang/rustc-dev-guide#1719 )
- tests/run-make files have moved (rust-lang/rustc-dev-guide#1716 )
- replace dead link (rust-lang/rustc-dev-guide#1717 )
- fix link (rust-lang/rustc-dev-guide#1718 )
- update link (rust-lang/rustc-dev-guide#1709 )
- typo (rust-lang/rustc-dev-guide#1706 )
- OwningRef exists no more (rust-lang/rustc-dev-guide#1715 )
- Try to avoid confusion (rust-lang/rustc-dev-guide#1713 )
- Issue1707 doc simply use x (rust-lang/rustc-dev-guide#1710 )
- include rustc-dev-guide's own issues in suggested search (rust-lang/rustc-dev-guide#1708 )
- Improve feature gate and x.py docs (rust-lang/rustc-dev-guide#1701 )
- Fix some links (rust-lang/rustc-dev-guide#1705 )
- Define more lint terms. (rust-lang/rustc-dev-guide#1681 )
2023-07-11 00:58:17 +02:00
Matthias Krüger
c2d4af6a63
Rollup merge of #113543 - cuviper:triagebot-llvm, r=jyn514
...
Remove `rustc_llvm` from llvm-stamp nags
LLVM is not *built* by `compiler/rustc_llvm` at all, only bindings on
top of it, so there's no need to bump `download-ci-llvm-stamp` for that.
2023-07-11 00:58:17 +02:00
Matthias Krüger
d2a3afebdd
Rollup merge of #113528 - workingjubilee:use-at-minsigstksz-in-rustc-signal-handler, r=WaffleLapkin
...
Dynamically size sigaltstk in rustc
rustc installs a signal stack that assumes that MINSIGSTKSZ is a constant, unchanging value. Newer hardware undermines that assumption greatly, with register files larger than glibc's traditional static MINSIGSTKZ. Properly handle this so that it is correct on all supported Linux versions with all CPUs.
2023-07-11 00:58:16 +02:00
Matthias Krüger
92a101866d
Rollup merge of #113523 - workingjubilee:reuse-const-inbounds-gep2, r=cuviper
...
Reuse LLVMConstInBoundsGEP2
We have had LLVM 14 as our minimum for a bit now.
2023-07-11 00:58:15 +02:00
Matthias Krüger
87f978d83c
Rollup merge of #113386 - joshtriplett:style-guide-combinable-expressions, r=compiler-errors
...
style-guide: Expand example of combinable expressions to include arrays
Arrays are allowed as combinable expressions, but none of the examples
show that.
2023-07-11 00:58:15 +02:00
bors
1d4f5affbd
Auto merge of #113544 - Kobzol:ci-macos-13, r=jyn514
...
CI: use `macos-13` runner for Apple jobs
Trying if performance of Apple CI improves with macOS 13 and SIP disabled. Speed-up:
```
x86_64-apple-1: ~2h 20m > ~1h 20m
x86_64-apple-2: ~1h 45m > ~1h 15m
```
r? `@pietroalbini`
2023-07-10 22:35:11 +00:00
Josh Stone
a219505f7c
Only use max_line_length = 100 for *.rs
...
This setting was added to match rustfmt, but it's been taking effect on
all file editing, which I notice most on git `COMMIT_EDITMSG`. I want to
keep my default 72-width commit messages, please. :)
2023-07-10 15:18:36 -07:00
Chris Wailes
dfcd3226ba
Correct the Android stat struct definitions
...
See https://cs.android.com/android/platform/superproject/+/master:bionic/libc/include/sys/stat.h
for reference.
2023-07-10 15:13:25 -07:00
Josh Stone
dd5fa7d9b3
Don't use serde-derive in the rls shim
...
The already-small RLS shim can get a little smaller, and faster to
build, if we drop the serde-derive dependency and decode the one
"method" field it needs manually from `serde_json::Value`.
2023-07-10 14:53:57 -07:00
DropDemBits
99abcdc1eb
format let-else in promote_local_to_const
2023-07-10 17:49:27 -04:00
DropDemBits
11debaf61a
Migrate fix_visibility
to mutable ast
2023-07-10 17:39:55 -04:00
Tetsuharu Ohzeki
445b4fc27f
editor/code: Sort the style to import types
...
see:
- https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/consistent-type-imports.md
- https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-import-type-side-effects.md
2023-07-11 06:12:00 +09:00
bors
949ecea0d0
Auto merge of #15258 - HKalbasi:mir, r=HKalbasi
...
Support getrandom syscall
And fix some simd intrinsic bugs and add a memory limit to prevent huge allocations from breaking the main process.
2023-07-10 21:02:04 +00:00
hkalbasi
59420afa46
Support getrandom syscall
2023-07-11 00:29:06 +03:30
Sebastian Sturm
872cd30325
[lsp-server] Ignore 'Content-Length' case
2023-07-10 22:36:52 +02:00
jyn
8c91c8fe84
Don't print "Skipping" twice
...
Bootstrap executes itself twice: once with DryRun::SelfCheck and DryRun::Disabled.
Change it not to print the "Skipping" message if SelfCheck is enabled.
See https://github.com/rust-lang/rust/actions/runs/5503931599/jobs/10029625567?pr=113514#step:24:772 .
2023-07-10 15:19:54 -05:00
Michael Goulet
a74db1abb3
Fix another strange suggestion span
2023-07-10 20:09:28 +00:00
Michael Goulet
3a3f4a2144
Don't use method span on clone suggestion
2023-07-10 20:09:28 +00:00
Michael Goulet
fe870424a7
Do not set up wrong span for adjustments
2023-07-10 20:09:26 +00:00
rustbot
b706cf80b0
Update books
2023-07-10 12:23:19 -07:00
Jubilee Young
094cb1a9fb
Dynamically size sigaltstk in rustc
...
rustc installs a signal stack that assumes that
MINSIGSTKSZ is a constant, unchanging value.
Newer hardware undermines that assumption greatly,
with register files larger than MINSIGSTKZ.
Properly handle this so that it is correct on
all supported Linux versions with all CPUs.
2023-07-10 12:05:16 -07:00
bors
8ca44ef9ca
Auto merge of #112988 - spastorino:new-rpitit-24, r=compiler-errors
...
Replace RPITIT current impl with new strategy that lowers as a GAT
This PR replaces the current implementation of RPITITs with the new implementation that we had under -Zlower-impl-trait-in-trait-to-assoc-ty flag that lowers the RPIT as a GAT on the trait and on the impls that implement that trait.
Opening this PR as a draft because this goes after #112682 , ~#112981~ and ~#112983~.
As soon as those are merged, I can rebase and we should run perf, crater and test a lot.
r? `@compiler-errors`
2023-07-10 19:01:30 +00:00
Celina G. Val
b9f378b19b
Implement a few more rvalue translation to smir
...
- Introduce an Opaque type for adding information that is still
internal to the compiler.
2023-07-10 11:47:48 -07:00
Jakub Beránek
8e0a87bdf4
CI: use macos-13
runner for Apple jobs
2023-07-10 20:22:15 +02:00
Celina G. Val
697563289d
Implement Stable for AssertMessage
2023-07-10 10:06:18 -07:00
Celina G. Val
44d0fce150
Fix standalone build
...
Add extern declarations and optional dependencies to fix build done
directly via `cargo build`.
2023-07-10 10:06:18 -07:00
bors
ea02f4cba1
Auto merge of #15251 - Veykril:builtin-expand, r=Veykril
...
Skip building subtrees for builtin derives
This is a waste of resources, we go from node to subtree just to go from subtree to node in the expander impl. We can skip the subtree building and only build the tokenmap instead.
2023-07-10 16:14:47 +00:00
Urgau
103949b241
Drop uplifted clippy::fn_null_check
2023-07-10 18:12:41 +02:00
Urgau
c0fbeeab16
Drop uplifted clippy::fn_null_check
2023-07-10 18:12:41 +02:00
Urgau
f6d2bf63d3
Uplift clippy::fn_null_check
to rustc
2023-07-10 18:12:41 +02:00
Josh Stone
68a381f38e
Remove rustc_llvm
from llvm-stamp nags
...
LLVM is not *built* by `compiler/rustc_llvm` at all, only bindings on
top of it, so there's no need to bump `download-ci-llvm-stamp` for that.
2023-07-10 09:02:47 -07:00
Camille GILLOT
a5031d569e
Call super for debuginfo.
2023-07-10 16:01:19 +00:00
Camille GILLOT
b4c342edea
Simplify visit_place.
2023-07-10 16:01:19 +00:00
Camille GILLOT
6d7304167c
Bless incremental test.
2023-07-10 16:01:18 +00:00
Camille GILLOT
4de2d8fb66
Perform reference propagation earlier.
2023-07-10 16:01:18 +00:00
Camille GILLOT
b74a144a5f
Enable by default.
2023-07-10 16:01:18 +00:00
Camille GILLOT
341e0f78d1
Fortify codegen test.
2023-07-10 16:01:18 +00:00
bors
785a33d3e1
Auto merge of #15254 - tetsuharuohzeki:add-fixme-exactOptionalPropertyTypes, r=lnicola
...
editor/code: Add FIXME comments for TS' `--exactOptionalPropertyTypes` option
This add the FIXME comment for https://github.com/rust-lang/rust-analyzer/issues/15253
2023-07-10 14:40:47 +00:00
Tetsuharu Ohzeki
e54f6636b6
editor/code: Add FIXME comments for TS' --exactOptionalPropertyTypes
option
2023-07-10 23:39:08 +09:00
Lukas Wirth
f6c09099da
Don't unnecessarily clone the input tt for decl macros
2023-07-10 16:28:23 +02:00
Lukas Wirth
d5f64f875a
Infallibe ExpandDatabase::macro_def
2023-07-10 16:23:29 +02:00
bors
6f2e8aaba6
Auto merge of #15252 - tetsuharuohzeki:enable-unknonw-catch, r=lnicola
...
editor/code: Enable TypeScript's `--useUnknownInCatchVariables` option
This enables TypeScript's [`--useUnknownInCatchVariables`](https://www.typescriptlang.org/tsconfig#useUnknownInCatchVariables ).
2023-07-10 14:22:21 +00:00
Tetsuharu Ohzeki
444bc5b3ba
editor/code: Enable TypeScript's --useUnknownInCatchVariables
option
...
see: https://www.typescriptlang.org/tsconfig#useUnknownInCatchVariables
2023-07-10 23:13:36 +09:00
Tetsuharu Ohzeki
a66b7e3eba
editor/code: Remove unused sendRequestWithRetry
2023-07-10 23:13:36 +09:00
Tetsuharu Ohzeki
fd31006646
editor/code: Assert types in catch in sendRequestWithRetry()
properly
2023-07-10 23:13:36 +09:00
bors
05b82e551e
Auto merge of #94748 - tbu-:pr_file_arc, r=Amanieu
...
Add `Read`, `Write` and `Seek` impls for `Arc<File>` where appropriate
If `&T` implements these traits, `Arc<T>` has no reason not to do so
either. This is useful for operating system handles like `File` or
`TcpStream` which don't need a mutable reference to implement these
traits.
CC #53835 .
CC #94744 .
2023-07-10 13:26:42 +00:00
Lukas Wirth
4ff93398fd
Skip buildin subtrees for builtin derives
2023-07-10 15:19:00 +02:00
lcnr
4965caf9be
avoid building proof trees in select
2023-07-10 15:17:01 +02:00