Skip to content

Rollup of 10 pull requests #130732

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 21 commits into from
Sep 23, 2024
Merged
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
3dcb5a3
Add str.as_str() for easy dereferencing of Box<str>
kornelski Aug 25, 2024
c2ccd89
handle unsized consts with type `str` in v0 symbol mangling
Jaic1 Sep 14, 2024
f48c5ec
Mark and implement 'char::encode_utf16' as const; Rewrite 'encode_utf…
bjoernager Sep 21, 2024
95469dc
No longer mark RTN as incomplete
compiler-errors Sep 21, 2024
3b8089a
Introduce structurally_normalize_const, use it in hir_typeck
compiler-errors Sep 22, 2024
2daf076
Mark 'make_ascii_uppercase' and 'make_ascii_lowercase' in 'u8' as con…
bjoernager Sep 22, 2024
8f57949
Don't call const normalize in error reporting
compiler-errors Sep 22, 2024
01d19d7
Don't call try_eval_target_usize in error reporting
compiler-errors Sep 22, 2024
2273aee
Replace calls to Const::eval in mir build
compiler-errors Sep 22, 2024
e9b0bc9
Add test for `available_parallelism()`
Sep 22, 2024
ff3a9f4
tests: Remove spuriously failing vec-tryinto-array codegen test
workingjubilee Sep 22, 2024
510fc34
Rollup merge of #129550 - kornelski:boxasstr, r=joshtriplett,dtolnay
matthiaskrgr Sep 23, 2024
23393de
Rollup merge of #130344 - Jaic1:fix-116306, r=BoxyUwU
matthiaskrgr Sep 23, 2024
c1ccdb7
Rollup merge of #130659 - bjoernager:const-char-encode-utf16, r=dtolnay
matthiaskrgr Sep 23, 2024
9f5cbfb
Rollup merge of #130705 - compiler-errors:rtn-complete, r=jackh726
matthiaskrgr Sep 23, 2024
8206036
Rollup merge of #130712 - compiler-errors:const-eval-error-reporting,…
matthiaskrgr Sep 23, 2024
8bb69b1
Rollup merge of #130713 - bjoernager:const-char-make-ascii, r=Noratrieb
matthiaskrgr Sep 23, 2024
2bca5c4
Rollup merge of #130714 - compiler-errors:try-structurally-resolve-co…
matthiaskrgr Sep 23, 2024
0e08d70
Rollup merge of #130715 - compiler-errors:mir-build-const-eval, r=Box…
matthiaskrgr Sep 23, 2024
004213b
Rollup merge of #130723 - D0liphin:master, r=workingjubilee
matthiaskrgr Sep 23, 2024
693269b
Rollup merge of #130726 - workingjubilee:put-the-spurs-to-this-test, …
matthiaskrgr Sep 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add test for available_parallelism()
This is a redo of (this PR)[#104095].

Add test for available_parallelism

Add test for available_parallelism

Add test for

Add test for
  • Loading branch information
Oli Iliffe committed Sep 22, 2024
commit e9b0bc9432e39822a8a87b301860423be3363f00
18 changes: 18 additions & 0 deletions library/std/tests/thread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,21 @@ fn thread_local_containing_const_statements() {
assert_eq!(CELL.get(), 1);
assert_eq!(REFCELL.take(), 1);
}

#[test]
// Include an ignore list on purpose, so that new platforms don't miss it
#[cfg_attr(
any(
target_os = "redox",
target_os = "l4re",
target_env = "sgx",
target_os = "solid_asp3",
target_os = "teeos",
target_os = "wasi"
),
should_panic
)]
fn available_parallelism() {
// check that std::thread::available_parallelism() returns a valid value
assert!(thread::available_parallelism().is_ok());
}
Loading