Federico Maria Morrone
9cf080099d
docs: Document x86_64-unknown-linux-none target
2024-05-11 21:37:24 +02:00
Federico Maria Morrone
a3ef01b1fc
Add x86_64-unknown-linux-none target
2024-05-11 21:37:23 +02:00
Oneirical
50539da261
rewrite alloc tests & remove import
2024-05-11 15:35:49 -04:00
Guillaume Gomez
0712ae865f
Add extern_
method to Rustdoc
2024-05-11 21:09:00 +02:00
Guillaume Gomez
0761802e50
Add python_command
and source_path
functions
2024-05-11 21:09:00 +02:00
Guillaume Gomez
4a00debfef
Add crate_name
method to Rustdoc
and Rustc
2024-05-11 21:09:00 +02:00
Guillaume Gomez
23e965eb68
Add crate_type
method to Rustdoc
2024-05-11 21:09:00 +02:00
Joshua Liebow-Feeser
15df3d78e4
References must also be non-null
2024-05-11 12:08:19 -07:00
bjorn3
a167142946
Translate MIR to clif ir in parallel with parallel rustc
...
On dev-desktop the advantage of cg_clif over cg_llvm on simple-raytracer
is 15% when parallel rustc is disabled. With -Zthreads=16 the advantage
goes from 5% to 22% with this change.
2024-05-11 18:51:59 +00:00
Joshua Liebow-Feeser
1cefaa7432
Relax slice safety requirements
...
Per https://github.com/rust-lang/rust/pull/116677#issuecomment-1945495786 , the language as written promises too much. This PR relaxes the language to be consistent with current semantics. If and when #117945 is implemented, we can revert to the old language.
2024-05-11 11:50:20 -07:00
David Carlier
1e232fea1b
std::alloc: using posix_memalign instead of memalign on solarish.
...
simpler code path since small alignments are already taking care of.
close GH-124787
2024-05-11 18:08:35 +00:00
onur-ozkan
8c5375ad8e
move comments position in src/stage0
...
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-05-11 20:49:01 +03:00
onur-ozkan
aa2faefe12
remove outdated stage0.json parts
...
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-05-11 20:48:58 +03:00
onur-ozkan
b46c3f279d
use shared stage0 parser from build_helper
...
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-05-11 20:48:41 +03:00
bjorn3
50b34279c3
Split cgus into todo and done before the main module codegen loop
2024-05-11 17:39:51 +00:00
bjorn3
9ee010cc34
Try to workaround gha issue with the caching action
2024-05-11 17:19:46 +00:00
bjorn3
9e4e805488
Avoid ICE on transmuting invalid bools
...
Fixes rust-lang/rustc_codegen_cranelift#1433
2024-05-11 17:06:43 +00:00
bjorn3
906db0229f
Avoid CValue::const_val for discriminants
2024-05-11 17:03:34 +00:00
bors
3349155ac0
Auto merge of #125007 - klensy:filecheckty, r=Mark-Simulacrum
...
fix few typos in filecheck annotations
Inspired by https://github.com/rust-lang/rust/pull/123886#discussion_r1597358732
`rg -g '*.rs' '//\s+?[\w-]+(-[\w]+):' -r '$1' -oNI | sort -u`
Should https://llvm.org/docs/CommandGuide/FileCheck.html#cmdoption-FileCheck-ignore-case be used for case-insensetive match for filecheck?
2024-05-11 17:00:31 +00:00
bjorn3
8cf40c46b2
Don't attempt to polymorphize statics
...
Fixes rust-lang/rust#124319
2024-05-11 16:36:12 +00:00
bors
100b123a0d
Auto merge of #124213 - rust-lang:cargo_update, r=Mark-Simulacrum
...
Weekly `cargo update`
Automation to keep dependencies in `Cargo.lock` current.
The following is the output from `cargo update`:
```txt
Locking 77 packages to latest compatible versions
Updating allocator-api2 v0.2.16 -> v0.2.18
Updating anstream v0.6.13 -> v0.6.14
Updating anstyle v1.0.6 -> v1.0.7
Updating anstyle-lossy v1.1.0 -> v1.1.1
Updating anstyle-parse v0.2.3 -> v0.2.4
Updating anstyle-query v1.0.2 -> v1.0.3
Updating anstyle-svg v0.1.3 -> v0.1.4
Updating anstyle-wincon v3.0.2 -> v3.0.3
Updating anyhow v1.0.81 -> v1.0.83
Updating autocfg v1.2.0 -> v1.3.0
Updating bumpalo v3.15.4 -> v3.16.0
Updating bytecount v0.6.7 -> v0.6.8
Updating clap_complete v4.5.1 -> v4.5.2
Updating color-print v0.3.5 -> v0.3.6
Updating color-print-proc-macro v0.3.5 -> v0.3.6
Updating colorchoice v1.0.0 -> v1.0.1
Updating dissimilar v1.0.7 -> v1.0.9
Updating either v1.10.0 -> v1.11.0
Updating encoding_rs v0.8.33 -> v0.8.34
Updating errno v0.3.8 -> v0.3.9
Updating fastrand v2.0.2 -> v2.1.0
Updating flate2 v1.0.28 -> v1.0.30
Updating fluent-bundle v0.15.2 -> v0.15.3
Updating fluent-syntax v0.11.0 -> v0.11.1
Updating getrandom v0.2.13 -> v0.2.14 (latest: v0.2.15)
Updating hashbrown v0.14.3 -> v0.14.5
Updating intl-memoizer v0.5.1 -> v0.5.2
Adding is_terminal_polyfill v1.70.0
Updating jobserver v0.1.28 -> v0.1.31
Updating lock_api v0.4.11 -> v0.4.12
Updating num-traits v0.2.18 -> v0.2.19
Removing packed_simd v0.3.9
Updating parking_lot v0.12.1 -> v0.12.2
Updating parking_lot_core v0.9.9 -> v0.9.10
Updating pest v2.7.9 -> v2.7.10
Updating pest_derive v2.7.9 -> v2.7.10
Updating pest_generator v2.7.9 -> v2.7.10
Updating pest_meta v2.7.9 -> v2.7.10
Updating proc-macro2 v1.0.79 -> v1.0.82
Updating pulldown-cmark v0.10.2 -> v0.10.3
Updating pulldown-cmark-escape v0.10.0 -> v0.10.1
Updating quote v1.0.35 -> v1.0.36
Adding redox_syscall v0.5.1
Updating rustc-demangle v0.1.23 -> v0.1.24
Updating rustix v0.38.32 -> v0.38.34
Updating rustversion v1.0.15 -> v1.0.16
Updating ryu v1.0.17 -> v1.0.18
Updating security-framework v2.10.0 -> v2.11.0
Updating security-framework-sys v2.10.0 -> v2.11.0
Updating self_cell v1.0.3 -> v1.0.4
Updating semver v1.0.22 -> v1.0.23
Updating serde v1.0.197 -> v1.0.201
Updating serde_derive v1.0.197 -> v1.0.201
Updating serde_json v1.0.115 -> v1.0.117
Updating socket2 v0.5.6 -> v0.5.7
Updating syn v2.0.58 -> v2.0.62
Updating sysinfo v0.30.8 -> v0.30.12
Updating thiserror v1.0.58 -> v1.0.60
Updating thiserror-impl v1.0.58 -> v1.0.60
Updating tokio-util v0.7.10 -> v0.7.11
Updating type-map v0.4.0 -> v0.5.0
Updating unic-langid v0.9.4 -> v0.9.5
Updating unic-langid-impl v0.9.4 -> v0.9.5
Updating unic-langid-macros v0.9.4 -> v0.9.5
Updating unic-langid-macros-impl v0.9.4 -> v0.9.5
Updating unicode-width v0.1.11 -> v0.1.12
Updating winapi-util v0.1.6 -> v0.1.8
Updating windows-targets v0.52.4 -> v0.52.5
Updating windows_aarch64_gnullvm v0.52.4 -> v0.52.5
Updating windows_aarch64_msvc v0.52.4 -> v0.52.5
Updating windows_i686_gnu v0.52.4 -> v0.52.5
Adding windows_i686_gnullvm v0.52.5
Updating windows_i686_msvc v0.52.4 -> v0.52.5
Updating windows_x86_64_gnu v0.52.4 -> v0.52.5
Updating windows_x86_64_gnullvm v0.52.4 -> v0.52.5
Updating windows_x86_64_msvc v0.52.4 -> v0.52.5
Updating zerocopy v0.7.32 -> v0.7.34
Updating zerocopy-derive v0.7.32 -> v0.7.34
note: pass `--verbose` to see 94 unchanged dependencies behind latest
```
2024-05-11 14:53:07 +00:00
Mark Rousskov
12200c912a
Update Cargo.lock
2024-05-11 10:27:17 -04:00
Mark Rousskov
3aa16f0d2f
Pin libc back to 0.2.153
2024-05-11 10:25:37 -04:00
Mark Rousskov
e068e004d7
Add windows_i686_gnullvm to the list
2024-05-11 10:25:37 -04:00
bjorn3
f437815d91
Compile for x86_64 on macOS even with an arm64 host
...
We don't support arm64 on macOS yet.
2024-05-11 14:11:53 +00:00
bjorn3
8fe6e74047
Fix rustc tests
2024-05-11 14:01:29 +00:00
bjorn3
250d0832a1
Rustup to rustc 1.80.0-nightly ( 6e1d94708
2024-05-10)
2024-05-11 13:51:22 +00:00
bjorn3
6633d66954
Sync from rust 6e1d94708a
2024-05-11 13:37:51 +00:00
Ralf Jung
e00f27b7be
io::Write::write_fmt: panic if the formatter fails when the stream does not fail
2024-05-11 15:13:18 +02:00
bors
686bfc4c42
Auto merge of #125010 - matthiaskrgr:rollup-270pck3, r=matthiaskrgr
...
Rollup of 5 pull requests
Successful merges:
- #124928 (Stabilize `byte_slice_trim_ascii` for `&[u8]`/`&str`)
- #124954 (Document proper usage of `fmt::Error` and `fmt()`'s `Result`.)
- #124969 (check if `x test tests` missing any test directory)
- #124978 (Handle Deref expressions in invalid_reference_casting)
- #125005 (Miri subtree update)
r? `@ghost`
`@rustbot` modify labels: rollup
2024-05-11 12:46:54 +00:00
Matthias Krüger
8f03405419
Rollup merge of #125005 - RalfJung:miri-sync, r=RalfJung
...
Miri subtree update
r? `@ghost`
2024-05-11 13:16:42 +02:00
Matthias Krüger
8eac6d2333
Rollup merge of #124978 - saethlin:ref-casting_derefs, r=Urgau,Nilstrieb
...
Handle Deref expressions in invalid_reference_casting
Similar to https://github.com/rust-lang/rust/pull/124908
See https://github.com/rust-lang/rust/issues/124951 for context; this PR fixes the last of the known false postiive cases with this lint that we encounter in Crater.
2024-05-11 13:16:41 +02:00
Matthias Krüger
7d7a182c29
Rollup merge of #124969 - onur-ozkan:test-tests-remap, r=Mark-Simulacrum
...
check if `x test tests` missing any test directory
Add a unit test to ensure we don't skip any test directories for `x test tests` in the future.
2024-05-11 13:16:41 +02:00
Matthias Krüger
6c3fce90cc
Rollup merge of #124954 - kpreid:fmterr, r=Nilstrieb
...
Document proper usage of `fmt::Error` and `fmt()`'s `Result`.
I've seen several newcomers wonder why `fmt::Error` doesn't have any error detail information, or propose to return it in response to an error condition found inside a `impl fmt::Display for MyType`.
That is incorrect, per [a lone paragraph of the `fmt` module's documentation](https://doc.rust-lang.org/1.78.0/std/fmt/index.html#formatting-traits ). However, users looking to implement a formatting trait won't necessarily look there. Therefore, let's add the critical information (that formatting per se is infallible) to all the involved items: every `fmt()` method, and `fmt::Error`.
This PR is not intended to make any novel claims about `fmt`; only to repeat an existing one in places where it will be more visible.
2024-05-11 13:16:40 +02:00
Matthias Krüger
03ff775966
Rollup merge of #124928 - okaneco:trim_ascii, r=workingjubilee
...
Stabilize `byte_slice_trim_ascii` for `&[u8]`/`&str`
Remove feature from documentation examples
Update intra-doc link for `u8::is_ascii_whitespace` on `&[u8]` functions
Closes #94035
FCP has successfully completed https://github.com/rust-lang/rust/issues/94035#issuecomment-2102690397
2024-05-11 13:16:40 +02:00
Urgau
e89a2cc895
Always hide private fields in aliased type
2024-05-11 13:11:46 +02:00
Dario Nieuwenhuis
ebf574fb97
Add test for #122775
2024-05-11 12:59:06 +02:00
Guillaume Gomez
8167a35319
Migrate run-make/rustdoc-shared-flags
to rmake
2024-05-11 12:39:22 +02:00
bors
35c5e67c69
Auto merge of #124567 - Jules-Bertholet:and-eats-andmut, r=Nadrieril
...
Match ergonomics 2024: let `&` patterns eat `&mut`
r? `@Nadrieril`
cc https://github.com/rust-lang/rust/issues/123076
`@rustbot` label A-edition-2024 A-patterns
2024-05-11 10:39:11 +00:00
klensy
d97ed2d349
fix few typo in filecheck annotations
2024-05-11 13:10:24 +03:00
bors
79a85d4e99
Auto merge of #3598 - RalfJung:heap, r=RalfJung
...
alloc: update comments around malloc() alignment
Also separate the C heap shims form the Windows heap shims; their guarantees aren't quite the same.
2024-05-11 08:53:42 +00:00
Ralf Jung
01b151ebd4
separate windows heap functions from C heap shims
2024-05-11 10:52:08 +02:00
Ralf Jung
7a0ee91ba5
alloc: update comments around malloc() alignment
2024-05-11 10:52:02 +02:00
bors
2259028a70
Auto merge of #124762 - madsmtm:refactor-apple-target-abi, r=lcnr,BlackHoleFox
...
Refactor Apple `target_abi`
This was bundled together with `Arch`, which complicated a few code paths and meant we had to do more string matching than necessary.
CC `@BlackHoleFox` as you've worked on the Apple target spec before
Related: Is there a reason why `Target`/`TargetOptions` use `StaticCow` for so many things, instead of an enum with defined values (and perhaps a catch-all case for custom target json files)? Tagging `@Nilstrieb,` as you might know?
2024-05-11 08:32:35 +00:00
bors
2427bf9113
Auto merge of #3597 - rust-lang:rustup-2024-05-11, r=RalfJung
...
Automatic Rustup
2024-05-11 07:00:13 +00:00
bors
be7549f82c
Auto merge of #125000 - matthiaskrgr:rollup-cc9lc2y, r=matthiaskrgr
...
Rollup of 4 pull requests
Successful merges:
- #124766 (std::rand: adding solaris/illumos for getrandom support.)
- #124818 (Update ena to 0.14.3)
- #124991 (Fix typo in ManuallyDrop's documentation)
- #124994 (Add `@saethlin` to some triagebot groups)
r? `@ghost`
`@rustbot` modify labels: rollup
2024-05-11 06:26:35 +00:00
Michael Goulet
e444017b49
Consolidate obligation cause codes for where clauses
2024-05-11 02:10:45 -04:00
Matthias Krüger
a4317c4eec
Rollup merge of #124994 - saethlin:saethlin-triagebot, r=scottmcm
...
Add @saethlin to some triagebot groups
I think this is a reasonable approximation of what I can review, and should encourage people to request me.
r? scottmcm
2024-05-11 08:00:16 +02:00
Matthias Krüger
0997891c54
Rollup merge of #124991 - Infinixius:patch-1, r=Nilstrieb
...
Fix typo in ManuallyDrop's documentation
```diff
- /// A wrapper to inhibit compiler from automatically calling `T`’s destructor.
+ /// A wrapper to inhibit the compiler from automatically calling `T`’s destructor.
```
2024-05-11 08:00:16 +02:00
Matthias Krüger
3c40e383df
Rollup merge of #124818 - compiler-errors:ena, r=Mark-Simulacrum
...
Update ena to 0.14.3
Includes https://github.com/rust-lang/ena/pull/53 , which removes a trivial `Self: Sized` bound that prevents `ena` from building on the new solver.
2024-05-11 08:00:15 +02:00