Skip to content

Commit 4033686

Browse files
committed
Auto merge of #100595 - matthiaskrgr:rollup-f1zur58, r=matthiaskrgr
Rollup of 10 pull requests Successful merges: - #100031 (improve "try ignoring the field" diagnostic) - #100325 (Rustdoc-Json: Don't remove impls for items imported from private modules) - #100377 (Replace - with _ in fluent slugs to improve developer workflows) - #100458 (Adjust span of fn argument declaration) - #100514 (Delay span bug when failing to normalize negative coherence impl subject due to other malformed impls) - #100528 (Support 1st group of RISC-V Bitmanip backend target features) - #100559 (Parser simplifications) - #100568 (Fix STD build for ESP-IDF) - #100582 ([rustdoc] Fix handling of stripped enum variant in JSON output format) - #100586 (Reland changes replacing num_cpus with available_parallelism ) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2 parents 9b4ea39 + e65de39 commit 4033686

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+841
-644
lines changed

Cargo.lock

+2-4
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,6 @@ dependencies = [
257257
"anyhow",
258258
"flate2",
259259
"hex 0.4.2",
260-
"num_cpus",
261260
"rayon",
262261
"serde",
263262
"serde_json",
@@ -2140,9 +2139,9 @@ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55"
21402139

21412140
[[package]]
21422141
name = "libc"
2143-
version = "0.2.129"
2142+
version = "0.2.131"
21442143
source = "registry+https://github.com/rust-lang/crates.io-index"
2145-
checksum = "64de3cc433455c14174d42e554d4027ee631c4d046d43e3ecc6efc4636cdc7a7"
2144+
checksum = "04c3b4822ccebfa39c02fc03d1534441b22ead323fa0f48bb7ddd8e6ba076a40"
21462145
dependencies = [
21472146
"rustc-std-workspace-core",
21482147
]
@@ -4442,7 +4441,6 @@ name = "rustc_session"
44424441
version = "0.0.0"
44434442
dependencies = [
44444443
"getopts",
4445-
"num_cpus",
44464444
"rustc_ast",
44474445
"rustc_data_structures",
44484446
"rustc_errors",

compiler/rustc_codegen_ssa/src/target_features.rs

+4
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,10 @@ const RISCV_ALLOWED_FEATURES: &[(&str, Option<Symbol>)] = &[
227227
("zhinxmin", Some(sym::riscv_target_feature)),
228228
("zfh", Some(sym::riscv_target_feature)),
229229
("zfhmin", Some(sym::riscv_target_feature)),
230+
("zba", Some(sym::riscv_target_feature)),
231+
("zbb", Some(sym::riscv_target_feature)),
232+
("zbc", Some(sym::riscv_target_feature)),
233+
("zbs", Some(sym::riscv_target_feature)),
230234
("zbkb", Some(sym::riscv_target_feature)),
231235
("zbkc", Some(sym::riscv_target_feature)),
232236
("zbkx", Some(sym::riscv_target_feature)),
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
borrowck-move-unsized =
1+
borrowck_move_unsized =
22
cannot move a value of type `{$ty}`
33
.label = the size of `{$ty}` cannot be statically determined
44
5-
borrowck-higher-ranked-lifetime-error =
5+
borrowck_higher_ranked_lifetime_error =
66
higher-ranked lifetime error
77
8-
borrowck-could-not-prove =
8+
borrowck_could_not_prove =
99
could not prove `{$predicate}`
1010
11-
borrowck-could-not-normalize =
11+
borrowck_could_not_normalize =
1212
could not normalize `{$value}`
1313
14-
borrowck-higher-ranked-subtype-error =
14+
borrowck_higher_ranked_subtype_error =
1515
higher-ranked subtype error
1616
17-
generic-does-not-live-long-enough =
17+
generic_does_not_live_long_enough =
1818
`{$kind}` does not live long enough
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
builtin-macros-requires-cfg-pattern =
1+
builtin_macros_requires_cfg_pattern =
22
macro requires a cfg-pattern as an argument
33
.label = cfg-pattern required
44
5-
builtin-macros-expected-one-cfg-pattern = expected 1 cfg-pattern
5+
builtin_macros_expected_one_cfg_pattern = expected 1 cfg-pattern
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
1-
const-eval-unstable-in-stable =
1+
const_eval_unstable_in_stable =
22
const-stable function cannot use `#[feature({$gate})]`
3-
.unstable-sugg = if it is not part of the public API, make this function unstably const
4-
.bypass-sugg = otherwise `#[rustc_allow_const_fn_unstable]` can be used to bypass stability checks
3+
.unstable_sugg = if it is not part of the public API, make this function unstably const
4+
.bypass_sugg = otherwise `#[rustc_allow_const_fn_unstable]` can be used to bypass stability checks
55
6-
const-eval-thread-local-access =
6+
const_eval_thread_local_access =
77
thread-local statics cannot be accessed at compile-time
88
9-
const-eval-static-access =
9+
const_eval_static_access =
1010
{$kind}s cannot refer to statics
1111
.help = consider extracting the value of the `static` to a `const`, and referring to that
12-
.teach-note = `static` and `const` variables can refer to other `const` variables. A `const` variable, however, cannot refer to a `static` variable.
13-
.teach-help = To fix this, the value can be extracted to a `const` and then used.
12+
.teach_note = `static` and `const` variables can refer to other `const` variables. A `const` variable, however, cannot refer to a `static` variable.
13+
.teach_help = To fix this, the value can be extracted to a `const` and then used.
1414
15-
const-eval-raw-ptr-to-int =
15+
const_eval_raw_ptr_to_int =
1616
pointers cannot be cast to integers during const eval
1717
.note = at compile-time, pointers do not have an integer value
1818
.note2 = avoiding this restriction via `transmute`, `union`, or raw pointers leads to compile-time undefined behavior
1919
20-
const-eval-raw-ptr-comparison =
20+
const_eval_raw_ptr_comparison =
2121
pointers cannot be reliably compared during const eval
2222
.note = see issue #53020 <https://github.com/rust-lang/rust/issues/53020> for more information
2323
24-
const-eval-panic-non-str = argument to `panic!()` in a const context must have type `&str`
24+
const_eval_panic_non_str = argument to `panic!()` in a const context must have type `&str`
2525
26-
const-eval-mut-deref =
26+
const_eval_mut_deref =
2727
mutation through a reference is not allowed in {$kind}s
2828
29-
const-eval-transient-mut-borrow = mutable references are not allowed in {$kind}s
29+
const_eval_transient_mut_borrow = mutable references are not allowed in {$kind}s
3030
31-
const-eval-transient-mut-borrow-raw = raw mutable references are not allowed in {$kind}s
31+
const_eval_transient_mut_borrow_raw = raw mutable references are not allowed in {$kind}s
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
expand-explain-doc-comment-outer =
1+
expand_explain_doc_comment_outer =
22
outer doc comments expand to `#[doc = "..."]`, which is what this macro attempted to match
33
4-
expand-explain-doc-comment-inner =
4+
expand_explain_doc_comment_inner =
55
inner doc comments expand to `#![doc = "..."]`, which is what this macro attempted to match

0 commit comments

Comments
 (0)