binarycat
56adf87213
rewrite extract_curl_version again
2024-08-24 17:30:33 -04:00
Michael Goulet
42a901acd9
Don't use TyKind in lint
2024-08-24 17:16:39 -04:00
Michael Howell
6df0ccf49e
rustdoc: clean up tuple <-> primitive conversion docs
...
This adds a minor missing feature to `fake_variadic`,
so that it can render `impl From<(T,)> for [T; 1]` correctly.
2024-08-24 14:06:57 -07:00
bors
0f8eabd623
Auto merge of #13302 - Jarcho:rustup, r=Jarcho
...
Rustup
r? ghost
changelog: none
2024-08-24 20:47:33 +00:00
Chayim Refael Friedman
becfc5aeb9
Impl PartialEq and Eq for IndentLevel
...
We can impl PartialOrd and Ord too, but I didn't need that.
2024-08-24 23:46:32 +03:00
Chayim Refael Friedman
634052268f
Provide impl From<ast::TypeOrConstParam> for ast::GenericParam
2024-08-24 23:46:32 +03:00
Chayim Refael Friedman
7339337793
Modify hacks::parse_expr_from_str()
to take an edition too
...
This will be needed as we parse unknown identifiers and want to insert them into source code.
2024-08-24 23:46:32 +03:00
Chayim Refael Friedman
737a969aa5
Add helper methods to retrieve Future::Output
and Iterator::Item
2024-08-24 23:46:32 +03:00
Chayim Refael Friedman
2c6a521bab
Provide Future::Output
and Iterator
lang items
2024-08-24 23:46:32 +03:00
Chayim Refael Friedman
1e0df17667
Handle associated types that are lang items
...
Previously we were ignoring them.
2024-08-24 23:46:32 +03:00
Chayim Refael Friedman
cf243e5211
Add gen
modifier to functions
...
We don't yet lower or maybe even parse them, but blocks already have `gen`, so why not.
2024-08-24 23:46:32 +03:00
Chayim Refael Friedman
77ab5686c6
Preserve all spans for closure captures, not just one
...
This is important for the "convert closure to fn" assist, as it needs to find and modify the places the captures are used.
2024-08-24 23:46:32 +03:00
Rémy Rakic
902264b1a6
allow cfg(bootstrap) to avoid check-cfg warning on stable
2024-08-24 20:40:02 +00:00
Rémy Rakic
ad855fe6db
this needs the type for some reason
2024-08-24 20:39:04 +00:00
Rémy Rakic
3e2763a215
add missing associated item
2024-08-24 20:38:11 +00:00
Rémy Rakic
300da9a910
only use rustc attr on nightly
2024-08-24 20:36:56 +00:00
Jason Newcomb
0196e2d1dc
Bump nightly version -> 2024-08-23
2024-08-24 16:31:55 -04:00
Jason Newcomb
e348fe2233
Merge branch 'master' into rustup
2024-08-24 16:31:01 -04:00
Matthias Krüger
e664ff5d8c
Rollup merge of #129510 - GrigorenkoPV:fix-elided-named-lifetimes, r=cjgillot
...
Fix `elided_named_lifetimes` in code
https://github.com/rust-lang/rust/pull/129207#issuecomment-2308428671
r? cjgillot
2024-08-24 22:14:15 +02:00
Matthias Krüger
9e1f6281ab
Rollup merge of #129505 - RalfJung:imm-ty-offset, r=davidtwco
...
interpret: ImmTy: tighten sanity checks in offset logic
Also make some debug assertions into assertions. (Will need to be perf'd.)
2024-08-24 22:14:15 +02:00
Matthias Krüger
5611b3714f
Rollup merge of #129501 - RalfJung:miri-rust-backtrace, r=Noratrieb
...
panicking: improve hint for Miri's RUST_BACKTRACE behavior
Should help with https://github.com/rust-lang/miri/issues/3838
2024-08-24 22:14:14 +02:00
Matthias Krüger
3f5d6b2e40
Rollup merge of #129500 - fee1-dead-contrib:fxrel, r=compiler-errors
...
remove invalid `TyCompat` relation for effects
if the current impl uses `Maybe` (`impl const`), the parent impl must use `Maybe` (`impl const`) as well.
I'd like to rename `TyCompat` to `Sub` which is probably clearer. But it would conflict with my other PR.
r? ``@rust-lang/project-const-traits``
2024-08-24 22:14:14 +02:00
Matthias Krüger
2c4338802a
Rollup merge of #129323 - Urgau:ptr_fn_addr_eq, r=Mark-Simulacrum
...
Implement `ptr::fn_addr_eq`
This PR implements https://github.com/rust-lang/libs-team/issues/323 : `ptr::fn_addr_eq`.
r? libs
2024-08-24 22:14:13 +02:00
Matthias Krüger
2a7f2da422
Rollup merge of #129290 - tgross35:pin-cc, r=Mark-Simulacrum
...
Pin `cc` to 1.0.105
`cc` 1.0.106 removes support for Visual Studio 12. Pin to 1.0.105 so we don't drop support yet.
Fixes: https://github.com/rust-lang/rust/pull/128722#issuecomment-2297605573
2024-08-24 22:14:13 +02:00
Matthias Krüger
c0bedb9e5e
Rollup merge of #129246 - BoxyUwU:feature_gate_const_arg_path, r=cjgillot
...
Retroactively feature gate `ConstArgKind::Path`
This puts the lowering introduced by #125915 under a feature gate until we fix the regressions introduced by it. Alternative to whole sale reverting the PR since it didn't seem like a very clean revert and I think this is generally a step in the right direction and don't want to get stuck landing and reverting the PR over and over :)
cc #129137 ``@camelid,`` tests taken from there. beta is branching soon so I think it makes sense to not try and rush that fix through since it wont have much time to bake and if it has issues we can't simply revert it on beta.
Fixes #128016
2024-08-24 22:14:12 +02:00
Matthias Krüger
05b8bcc662
Rollup merge of #129199 - RalfJung:writes_through_immutable_pointer, r=compiler-errors
...
make writes_through_immutable_pointer a hard error
This turns the lint added in https://github.com/rust-lang/rust/pull/118324 into a hard error. This has been reported in cargo's future-compat reports since Rust 1.76 (released in February). Given that const_mut_refs is still unstable, it should be impossible to even hit this error on stable: we did accidentally stabilize some functions that can cause this error, but that got reverted in https://github.com/rust-lang/rust/pull/117905 . Still, let's do a crater run just to be sure.
Given that this should only affect unstable code, I don't think it needs an FCP, but let's Cc ``@rust-lang/lang`` anyway -- any objection to making this unambiguous UB into a hard error during const-eval? This can be viewed as part of https://github.com/rust-lang/rust/pull/129195 which is already nominated for discussion.
2024-08-24 22:14:12 +02:00
Matthias Krüger
0dfdea1c45
Rollup merge of #128596 - RalfJung:const_fn_floating_point_arithmetic, r=nnethercote
...
stabilize const_fn_floating_point_arithmetic
Part of https://github.com/rust-lang/rust/issues/128288
Fixes https://github.com/rust-lang/rust/issues/57241
The existing test `tests/ui/consts/const_let_eq_float.rs` ([link](https://github.com/RalfJung/rust/blob/const_fn_floating_point_arithmetic/tests/ui/consts/const_let_eq_float.rs )) covers the basics, and also Miri has extensive tests covering the interpreter's float machinery. Also, that machinery can already be used on stable inside `const`/`static` initializers, just not inside `const fn`.
This was explicitly called out in https://github.com/rust-lang/rfcs/pull/3514 so in a sense t-lang just recently already FCP'd this, but let's hear from them whether they want another FCP for the stabilization here or whether that was covered by the FCP for the RFC.
Cc ``@rust-lang/lang``
### Open items
- [x] Update the Reference: https://github.com/rust-lang/reference/pull/1566
2024-08-24 22:14:11 +02:00
Pavel Grigorenko
06f2d73b2b
repr_transparent_external_private_fields: treat rustc_pub_transparent
types as local
2024-08-24 23:05:54 +03:00
Pavel Grigorenko
b9033bdd92
New #[rustc_pub_transparent]
attribute
2024-08-24 23:05:37 +03:00
Chayim Refael Friedman
12faedd9b0
Fix few bugs in closure capture computation, and add tests
...
Also create a test infrastructure for capture computation.
2024-08-24 22:35:49 +03:00
tiif
09993ce6d5
Add 0 preemption rate flag
2024-08-25 03:15:52 +08:00
tiif
7d5be0629b
Add 0 preemption rate flag for blocking test and fix comment
2024-08-25 03:14:42 +08:00
Michael Goulet
147bb17f51
Rework how we emit errors for unresolved object lifetimes
2024-08-24 14:55:31 -04:00
tiif
25ca855431
Make blocking_epoll_callback a private function
2024-08-25 02:19:03 +08:00
tiif
7e8ca571d0
Remove thread_id from epoll::thread_ids after timeout
2024-08-25 02:13:05 +08:00
tiif
a4d7564219
Fix error introduced by rebase
2024-08-25 01:20:01 +08:00
tiif
7aff711013
Check if the thread is blocked before waking them up
2024-08-25 01:14:50 +08:00
tiif
8f178e4812
Change timeout value
2024-08-25 01:14:50 +08:00
tiif
cd67e47872
Fix error in the timeout value error message
2024-08-25 01:14:50 +08:00
tiif
36235b9e0d
Rename event to events
2024-08-25 01:14:50 +08:00
tiif
41ab4ecc03
Pass dest place reference to epoll_wait
2024-08-25 01:14:50 +08:00
byt
e8175a42f7
Improve comment
...
Co-authored-by: Ralf Jung <post@ralfj.de>
2024-08-25 01:14:50 +08:00
tiif
f71cdbbc46
Support blocking for epoll
2024-08-25 01:14:49 +08:00
Camille GILLOT
bb17fda384
Do not call source_span when not tracking dependencies.
2024-08-24 16:40:40 +00:00
binarycat
027c47983e
update the doc comment on lintchecker b/c it parses html now
2024-08-24 12:35:35 -04:00
Guillaume Gomez
c36b5634cf
Update minifier to 0.3.1
2024-08-24 18:34:28 +02:00
Pavel Grigorenko
53ce92770d
Fix elided_named_lifetimes
in code
2024-08-24 19:21:32 +03:00
bors
30e0b69908
Auto merge of #12993 - GuillaumeGomez:too_long_first_doc_paragraph, r=Centri3
...
Add new `too_long_first_doc_paragraph` first paragraph lint
Fixes https://github.com/rust-lang/rust-clippy/issues/12989 .
changelog: Add new `too_long_first_doc_paragraph` first paragraph lint
2024-08-24 15:23:34 +00:00
Ralf Jung
5343550142
const checking: properly compute the set of transient locals
2024-08-24 17:14:31 +02:00
Ralf Jung
493cf6a7e9
interpret: ImmTy: tighten sanity checks in offset logic
2024-08-24 15:12:30 +02:00