Commit Graph

303456 Commits

Author SHA1 Message Date
Gabriel Bjørnager Jensen
c85a742cb1 Mark '<[T; N]>::as_mut_slice' as 'const'; 2024-11-22 09:49:30 +01:00
Ralf Jung
729d3aa0fe library: update comment around close() 2024-11-22 08:43:51 +01:00
Petr Sumbera
38fc918a35 Updates Solaris target information, adds Solaris maintainer 2024-11-22 08:40:42 +01:00
Ralf Jung
76f27aaa6f Merge pull request #4049 from rust-lang/rustup-2024-11-22
Automatic Rustup
2024-11-22 07:02:56 +00:00
Mads Marquart
f98d9dd334 Don't try to use confstr in Miri 2024-11-22 07:59:51 +01:00
bors
2cf7908998 Auto merge of #129238 - umgefahren:stabilize-ipv6-unique-local, r=dtolnay
Stabilize `Ipv6Addr::is_unique_local` and `Ipv6Addr::is_unicast_link_local`

Make `Ipv6Addr::is_unique_local` and `Ipv6Addr::is_unicast_link_local` stable (+const).

Newly stable API:

```rust
impl Ipv6Addr {
	// Newly stable under `ipv6_is_unique_local`
	const fn is_unique_local(&self) -> bool;

	// Newly stable under `ipv6_is_unique_local`
	const fn is_unicast_link_local(&self) -> bool;
}
```

These stabilise a subset of the following tracking issue:
- #27709

I have looked and could not find any issues with `is_unique_local` and `is_unicast_link_local`. There is a well received comment calling for stabilisation of the latter function.

Both functions are well defined and consistent with implementations in other languages:
- [Go](https://cs.opensource.google/go/go/+/refs/tags/go1.23.0:src/net/netip/netip.go;l=518)
- [Python](e9d1bf353c/Lib/ipaddress.py (L2319-L2321))
- [Ruby (unique local)](https://ruby-doc.org/stdlib-2.5.1/libdoc/ipaddr/rdoc/IPAddr.html#private-3F-source)
- [Ruby (unicast link local)](https://ruby-doc.org/stdlib-2.5.1/libdoc/ipaddr/rdoc/IPAddr.html#link_local-3F-source)

cc implementor `@little-dude`
(I can't find the original PR for `is_unqiue_local`)

r? libs-api
`@rustbot` label +T-libs-api +needs-fcp
2024-11-22 06:38:39 +00:00
Ralf Jung
7dcba03d28 disable solaris on CI for now 2024-11-22 07:37:38 +01:00
Ralf Jung
33f4d2ee61 epoll: fix comment typo 2024-11-22 07:35:53 +01:00
Nicholas Nethercote
ae9ac0e383 Remove the DefinitelyInitializedPlaces analysis.
Its only use is in the `tests/ui/mir-dataflow/def_inits-1.rs` where it
is tested via `rustc_peek_definite_init`.

Also, it's probably buggy. It's supposed to be the inverse of
`MaybeUninitializedPlaces`, and it mostly is, except that
`apply_terminator_effect` is a little different, and
`apply_switch_int_edge_effects` is missing. Unlike
`MaybeUninitializedPlaces`, which is used extensively in borrow
checking, any bugs in `DefinitelyInitializedPlaces` are easy to overlook
because it is only used in one small test.

This commit removes the analysis. It also removes
`rustc_peek_definite_init`, `Dual` and `MeetSemiLattice`, all of which
are no longer needed.
2024-11-22 17:02:04 +11:00
The Miri Cronjob Bot
69930dc963 Merge from rustc 2024-11-22 05:28:46 +00:00
The Miri Cronjob Bot
f77817a701 Preparing for merge from rustc 2024-11-22 05:20:39 +00:00
Michael Goulet
8dfed4ec98 Bail in effects in old solver if self ty is ty var 2024-11-22 03:12:50 +00:00
Michael Goulet
01ff36a6b9 Get rid of HIR const checker 2024-11-22 02:32:26 +00:00
Josh Stone
7426066bbc Add release notes for Rust 1.83.0 2024-11-21 18:04:31 -08:00
Michael Goulet
357665dae9 Simplify fulfill_implication 2024-11-22 01:03:17 +00:00
michirakara
de741d2093 distinguish overflow and unimplemented in Step::steps_between 2024-11-21 15:49:55 -08:00
Jan Sommer
a4a06b305d Use arc4random of libc for RTEMS target
Is available since libc 0.2.162
2024-11-21 23:10:19 +01:00
Ralf Jung
0267cbf672 Merge pull request #4046 from CraftSpider/windows-error-mapping
Fill out windows io error mapping table
2024-11-21 22:01:49 +00:00
Alejandra González
8298da72e7 Add new lint doc_include_without_cfg (#13625)
It's becoming more and more common to see people including markdown
files in their code using `doc = include_str!("...")`, which is great.
However, often there is no condition on this include, which is not great
because it slows down compilation and might trigger recompilation if
these files are updated.

This lint aims at fixing this situation.

changelog: Add new lint `doc_include_without_cfg`
2024-11-21 21:48:57 +00:00
Guillaume Gomez
404e47aa84 Add new lint doc_include_without_cfg 2024-11-21 22:43:55 +01:00
bors
5d3c6ee9b3 Auto merge of #132362 - mustartt:aix-dylib-detection, r=jieyouxu
[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-21 21:36:47 +00:00
Rune Tynan
0a7e63a529 Add comment about multiple errors to one ErrorKind 2024-11-21 13:36:42 -08:00
Ralf Jung
7d38c51555 eventfd: comment tweaks 2024-11-21 22:27:43 +01:00
Rune Tynan
6af006e988 Fill out Windows error mapping table 2024-11-21 11:59:44 -08:00
Taiki Endo
9cff0b1164 Support input/output in vector registers of s390x inline assembly 2024-11-22 04:18:14 +09:00
Taiki Endo
2c8f6de1ba Support input/output in vector registers of s390x inline assembly 2024-11-22 04:18:14 +09:00
Taylor Cramer
dd819cf4c7 Add instructions to test error code docs (#2145) 2024-11-21 10:58:56 -08:00
bors
b19329a37c Auto merge of #133246 - MarcoIeni:debug-info-2-windows-disable, r=Kobzol
ci: Disable full `debuginfo-level=2` in windows alt job

try-job: dist-x86_64-msvc-alt
2024-11-21 18:46:51 +00:00
Luca Versari
9022bb2d6f Implement the unsafe-fields RFC.
Co-Authored-By: Jacob Pratt <jacob@jhpratt.dev>
2024-11-21 19:32:07 +01:00
Martin Nordholts
a0e5aea0d2 inject_panic_runtime(): Avoid double negation for 'any non rlib' 2024-11-21 19:16:31 +01:00
bjorn3
fdca75c263 Refactor and reduce usage of RelPath 2024-11-21 17:51:18 +00:00
bjorn3
5763c09be1 Remove RelPath::DOWNLOAD 2024-11-21 17:51:14 +00:00
bjorn3
4f213adf09 Inline all RelPath::ensure_fresh 2024-11-21 17:44:01 +00:00
Eric Huss
d8e8fc5575 Keep list of submodules close to list of vendored workspaces
This moves the list of submodules needed to vendor close to the list of
cargo workspaces with the intent to help ensure they keep up-to-date and
in sync.
2024-11-21 09:39:00 -08:00
tiif
4400804072 Refactor AnonSocket::read/write 2024-11-22 01:20:18 +08:00
Xing Xue
02f51ec2bd Change to pass "strip" options in an array of string slices and add option "-X32_64" for AIX. 2024-11-21 12:16:06 -05:00
Rémy Rakic
764e3e264f Revert "Remove less relevant info from diagnostic"
This reverts commit 8a568d9f15.
2024-11-21 17:09:51 +00:00
Rémy Rakic
91486607e3 add convoluted test for issue 132920 2024-11-21 17:09:51 +00:00
Panagiotis "Ivory" Vasilopoulos
197bba5a2e Mention that std::fs::remove_dir_all fails on files
This is explicitly mentioned for std::fs::remove_file's documentation,
but not in the aforementioned function.

It is more likely for a slightly lazy programmer to believe that
removing a file would work and that they do not have to distinguish
between directories (with contents) and files themself, because of the
function's recursive nature and how it distinguishes between files and
directories when removing them.
2024-11-21 17:18:39 +01:00
Henry Jiang
0db9059726 aix: fix archive format
fmt

fix cfg for windows

remove unused imports

address comments

update libc to 0.2.164

fmt

remove unused imports
2024-11-21 10:33:07 -05:00
bjorn3
1c372caa33 Make the cold_path intrinsic mark the current block as cold 2024-11-21 14:40:20 +00:00
bors
75703c1a78 Auto merge of #133287 - matthiaskrgr:rollup-ab9j3pu, r=matthiaskrgr
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-21 14:08:40 +00:00
xFrednet
78d0a2aaac Update version attributes for 1.83 lints 2024-11-21 13:50:31 +00:00
bjorn3
cb51cfe3d0 Simplify config.rs 2024-11-21 13:06:30 +00:00
bjorn3
5644a0879c Stop passing BackendConfig to run_jit 2024-11-21 13:00:00 +00:00
bjorn3
56a64baa03 Avoid Cell in CodegenCx 2024-11-21 12:49:45 +00:00
bjorn3
5d5cd2a22b Avoid RefCell in CodegenBackend 2024-11-21 12:48:12 +00:00
bjorn3
bd209edb7d Remove disable_incr_cache from BackendConfig 2024-11-21 12:44:54 +00:00
bjorn3
1cc10793f3 Remove enable_verifier from BackendConfig 2024-11-21 12:38:14 +00:00
Boxy
f6841a6fa3 Reorganize the "Source Code Representation" chapters (#2142) 2024-11-21 20:28:23 +08:00