Oli Scherer
0d5f51c290
Bump ui_test crate
2023-09-22 16:08:47 +00:00
Oli Scherer
c69e0c2a9b
Move fail
tests that need dependencies into their own folder, so that wasm tests don't build dependencies
2023-09-22 16:08:47 +00:00
Oli Scherer
32c2ed7b26
Bump ui test crate
2023-09-22 16:08:46 +00:00
Weihang Lo
5db9a5ee38
Update cargo
2023-09-23 00:08:17 +08:00
pc-linux
ab51f66ec0
added tests
2023-09-22 18:04:57 +02:00
ouz-a
861448b426
make unsized cast illegal
2023-09-22 18:57:27 +03:00
bors
959b2c703d
Auto merge of #115696 - RalfJung:closure-ty-print, r=oli-obk
...
adjust how closure/generator types are printed
I saw `&[closure@$DIR/issue-20862.rs:2:5]` and I thought it is a slice type, because that's usually what `&[_]` is... it took me a while to realize that this is just a confusing printer and actually there's no slice. Let's use something that cannot be mistaken for a regular type.
2023-09-22 15:19:38 +00:00
bors
835d7d923b
Auto merge of #115696 - RalfJung:closure-ty-print, r=oli-obk
...
adjust how closure/generator types are printed
I saw `&[closure@$DIR/issue-20862.rs:2:5]` and I thought it is a slice type, because that's usually what `&[_]` is... it took me a while to realize that this is just a confusing printer and actually there's no slice. Let's use something that cannot be mistaken for a regular type.
2023-09-22 15:19:38 +00:00
jonboh
f3a27d20f6
prevent ice when threshold is 0 and enum has no variants
2023-09-22 17:18:49 +02:00
pc-linux
85801f55ef
fixed fp caused by moving &mut reference inside of a closure
2023-09-22 16:54:21 +02:00
Federico Stra
1b34f1c6b2
isqrt: add tests
2023-09-22 16:11:26 +02:00
Federico Stra
3e8676c327
isqrt: initial implementation
2023-09-22 16:11:26 +02:00
Eduardo Sánchez Muñoz
17dfabff9c
Change start
to #[start]
in some diagnosis
...
They refer to a function with the `start` attribute, but not necessarily named `start`.
2023-09-22 15:58:43 +02:00
Nilstrieb
8e06b25e39
Remove TaKO8Ki from reviewers
2023-09-22 15:31:19 +02:00
ouz-a
63df126f59
match array for constantindex and subslice
2023-09-22 16:28:45 +03:00
Matthew Jasper
d4ffb3b08a
Capture scrutinee of if let guards correctly
...
Previously we were always capturing by value.
2023-09-22 13:04:44 +00:00
bors
01903944d8
Auto merge of #115690 - ShE3py:Z-treat-err-as-bug, r=petrochenkov
...
Allow `-Z treat-err-as-bug=0`
Makes `-Z treat-err-as-bug=0` behave as if the option wasn't present instead of asking the value to be ⩾ 1. This enables a quick on/off of the option, as you only need to change one character instead of removing the whole `-Z`.
Also update some text, e.g.
```bash
$ rustc -Z help | grep treat-err-as-bug
-Z treat-err-as-bug=val -- treat error number `val` that occurs as bug
```
where the value could be interpreted as an error code instead of an ordinal.
2023-09-22 13:01:30 +00:00
Ayush Singh
c7e5f3ca08
Rebase to master
...
- Update Example
- Add thread_parking to sys::uefi
- Fix unsafe in unsafe errors
- Improve docs
- Improve os/exit
- Some asserts
- Switch back to atomics
Signed-off-by: Ayush Singh <ayushdevel1325@gmail.com>
2023-09-22 17:23:33 +05:30
Ayush Singh
40c3dacc76
Use RawOsError for UEFI
...
Some changes from this commit will probably be converted to its own PR.
Signed-off-by: Ayush Singh <ayushsingh1325@gmail.com>
2023-09-22 17:23:33 +05:30
Ayush Singh
7a956441a1
Fixes from PR
...
- Some comment fixes.
- Make some functions unsafe.
- Make helpers module private.
- Rebase on master
- Update r-efi to v4.2.0
Signed-off-by: Ayush Singh <ayushsingh1325@gmail.com>
2023-09-22 17:23:33 +05:30
Ayush Singh
5df24d18b6
Add support for building std::os::uefi
docs
...
Signed-off-by: Ayush Singh <ayushsingh1325@gmail.com>
2023-09-22 17:23:33 +05:30
Ayush Singh
032e3766d5
Handle ExitBootServices
...
- Make BootServices unavailable if ExitBootServices event is signaled.
- Use thread locals for SystemTable and ImageHandle
Signed-off-by: Ayush Singh <ayushsingh1325@gmail.com>
2023-09-22 17:23:33 +05:30
Ayush Singh
8e56b33d59
Fixes from PR
...
Signed-off-by: Ayush Singh <ayushsingh1325@gmail.com>
2023-09-22 17:23:32 +05:30
Ayush Singh
48c6ae0611
Add Minimal Std implementation for UEFI
...
Implemented modules:
1. alloc
2. os_str
3. env
4. math
Tracking Issue: https://github.com/rust-lang/rust/issues/100499
API Change Proposal: https://github.com/rust-lang/libs-team/issues/87
This was originally part of https://github.com/rust-lang/rust/pull/100316 . Since
that PR was becoming too unwieldy and cluttered, and with suggestion
from @dvdhrm, I have extracted a minimal std implementation to this PR.
Signed-off-by: Ayush Singh <ayushsingh1325@gmail.com>
2023-09-22 17:23:30 +05:30
Lieselotte
3dd0419ea9
Allow -Z treat-err-as-bug=0
...
Co-authored-by: Vadim Petrochenkov <vadim.petrochenkov@gmail.com>
2023-09-22 13:33:55 +02:00
Ralf Jung
813fed2904
fix OS-specific I/O safety docs since the io_safety feature is stable
2023-09-22 13:23:19 +02:00
bors
03c199af8e
Auto merge of #116054 - matthiaskrgr:rollup-3pusno6, r=matthiaskrgr
...
Rollup of 7 pull requests
Successful merges:
- #114379 (Command: also print removed env vars)
- #116034 (add UI test for delimiter errors)
- #116036 (tests/ui: Split large_moves.rs and move to lint/large_assignments)
- #116038 (Fall back to _SC_NPROCESSORS_ONLN if sched_getaffinity returns an empty mask)
- #116039 (Account for nested `impl Trait` in TAIT)
- #116041 (Add note to `is_known_rigid`)
- #116049 (give FutureIncompatibilityReason variants more explicit names)
r? `@ghost`
`@rustbot` modify labels: rollup
2023-09-22 10:34:45 +00:00
Matthias Krüger
1a18ec0dcf
Rollup merge of #116049 - RalfJung:future-incompat, r=Nilstrieb
...
give FutureIncompatibilityReason variants more explicit names
Also make the `reason` field mandatory when declaring a lint, to make sure this is a deliberate decision.
2023-09-22 12:15:28 +02:00
Matthias Krüger
66f272d6ca
Rollup merge of #116041 - compiler-errors:rigid-note, r=RalfJung
...
Add note to `is_known_rigid`
Adds a note requested by `@RalfJung` in https://github.com/rust-lang/rust/pull/114941#discussion_r1329963704
Let me know if there are any other fns that need documentation, I could throw them into this PR too :)
2023-09-22 12:15:28 +02:00
Matthias Krüger
fc4cfe01f6
Rollup merge of #116039 - estebank:nested-tait, r=compiler-errors
...
Account for nested `impl Trait` in TAIT
Fix #116031 .
r? `@compiler-errors`
2023-09-22 12:15:27 +02:00
Matthias Krüger
faf13dd112
Rollup merge of #116038 - the8472:panic-on-sched_getaffinity-bug, r=cuviper
...
Fall back to _SC_NPROCESSORS_ONLN if sched_getaffinity returns an empty mask
Followup to #115946
A gentler fix for #115868 , one that doesn't panic, [suggested on zulip](https://rust-lang.zulipchat.com/#narrow/stream/259402-t-libs.2Fmeetings/topic/Meeting.202023-09-19/near/391942927 )
In that situation - on the buggy kernel versions - a zero-mask means no affinities have been set so `_SC_NPROCESSORS_ONLN` provides the right value.
2023-09-22 12:15:27 +02:00
Matthias Krüger
06608c7860
Rollup merge of #116036 - Enselic:split-large_moves, r=oli-obk
...
tests/ui: Split large_moves.rs and move to lint/large_assignments
To make failing tests easier to debug with `--emit=mir`, etc.
Don't bother with `revisions: attribute option` for both tests though. Seems sufficient to just have that on one of the tests.
`git show -M --find-renames=40%` makes the diff easier to review. Or note that before this change we had one test with 4 errors, now we have 2 tests with 2 errors each.
r? `@oli-obk`
Part of https://github.com/rust-lang/rust/issues/83518
2023-09-22 12:15:26 +02:00
Matthias Krüger
d5e7df3dbf
Rollup merge of #116034 - chenyukang:yukang-98601-add-ui-testcase, r=estebank
...
add UI test for delimiter errors
Fixes #98601
from https://github.com/rust-lang/rust/issues/98601#issuecomment-1721515067
r? `@estebank`
2023-09-22 12:15:26 +02:00
Matthias Krüger
9887dfab2c
Rollup merge of #114379 - RalfJung:command-removed-env-vars, r=m-ou-se
...
Command: also print removed env vars
There is no real shell syntax for unsetting an env var so easily, so we have to make one up. But we already do that for showing the 'program' name so I hope that's okay here, too. No strong opinion on what that should look like, I went with `unset(VAR_NAME)` for now.
2023-09-22 12:15:25 +02:00
Oli Scherer
9defc971f1
Add tracing instrumentation, just like queries automatically add it
2023-09-22 09:25:38 +00:00
Oli Scherer
5ee167e00d
Add a way to decouple the implementation and the declaration of a TyCtxt method.
2023-09-22 09:23:15 +00:00
Oli Scherer
2157f31731
Add a way to decouple the implementation and the declaration of a TyCtxt method.
2023-09-22 09:23:15 +00:00
bors
5a4e47ebed
Auto merge of #114780 - RalfJung:io-safety, r=Amanieu
...
add more explicit I/O safety documentation
Fixes https://github.com/rust-lang/unsafe-code-guidelines/issues/434
Cc https://github.com/rust-lang/rust/issues/114167
Cc `@Manishearth` `@sunfishcode` `@joshtriplett`
2023-09-22 08:47:51 +00:00
Ralf Jung
7abbb9a4ff
hide rustc line numbers in test
2023-09-22 10:37:40 +02:00
bors
ce33ca0a1e
Auto merge of #3074 - rust-lang:rustup-2023-09-22, r=RalfJung
...
Automatic sync from rustc
2023-09-22 08:36:18 +00:00
Ralf Jung
896065f902
clippy
2023-09-22 10:35:58 +02:00
ouz-a
442c87a0b0
better bug message
2023-09-22 11:31:45 +03:00
ouz-a
d6efedcaf5
remove inner match
2023-09-22 11:21:55 +03:00
Ralf Jung
ec18811557
run abi/compatibility test against a whole bunch of targets
2023-09-22 09:41:00 +02:00
bors
8759de0a49
Auto merge of #114776 - fee1-dead-contrib:enable-effects-in-libcore, r=oli-obk
...
Enable effects for libcore
~~r? `@oli-obk~~`
forgot you are on vacation, oops
2023-09-22 07:00:52 +00:00
bors
84917c83a8
Auto merge of #114776 - fee1-dead-contrib:enable-effects-in-libcore, r=oli-obk
...
Enable effects for libcore
~~r? `@oli-obk~~`
forgot you are on vacation, oops
2023-09-22 07:00:52 +00:00
Ralf Jung
5586c2a68f
make the reason: field mandatory for @future_incompatible lints
2023-09-22 08:59:32 +02:00
Ralf Jung
e888d470e9
give FutureIncompatibilityReason variants more explicit names
2023-09-22 08:51:18 +02:00
The Miri Conjob Bot
e6a4a1b12e
fmt
2023-09-22 05:40:22 +00:00
The Miri Conjob Bot
bf31cdb08a
Merge from rustc
2023-09-22 05:37:52 +00:00