Skip to content

Commit 53b6f89

Browse files
committed
Auto merge of #151352 - Zalathar:rollup-nUIzD3P, r=Zalathar
Rollup of 4 pull requests Successful merges: - #151080 (fix(build-manifest): enable docs target fallback for `rustc-docs`) - #151328 (Fix capitalization of diag messages) - #151341 (miri subtree update) - #151349 (Add myself to the review rotation) r? @ghost
2 parents 3d087e6 + 1eb8961 commit 53b6f89

69 files changed

Lines changed: 1390 additions & 799 deletions

File tree

Some content is hidden

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

compiler/rustc_attr_parsing/messages.ftl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ attr_parsing_unstable_cfg_target_compact =
230230
compact `cfg(target(..))` is experimental and subject to change
231231
232232
attr_parsing_unstable_feature_bound_incompatible_stability = item annotated with `#[unstable_feature_bound]` should not be stable
233-
.help = If this item is meant to be stable, do not use any functions annotated with `#[unstable_feature_bound]`. Otherwise, mark this item as unstable with `#[unstable]`
233+
.help = if this item is meant to be stable, do not use any functions annotated with `#[unstable_feature_bound]`. Otherwise, mark this item as unstable with `#[unstable]`
234234
235235
attr_parsing_unsupported_instruction_set = target `{$current_target}` does not support `#[instruction_set({$instruction_set}::*)]`
236236

compiler/rustc_const_eval/messages.ftl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,9 @@ const_eval_incompatible_return_types =
140140
const_eval_interior_mutable_borrow_escaping =
141141
interior mutable shared borrows of temporaries that have their lifetime extended until the end of the program are not allowed
142142
.label = this borrow of an interior mutable value refers to such a temporary
143-
.note = Temporaries in constants and statics can have their lifetime extended until the end of the program
144-
.note2 = To avoid accidentally creating global mutable state, such temporaries must be immutable
145-
.help = If you really want global mutable state, try replacing the temporary by an interior mutable `static` or a `static mut`
143+
.note = temporaries in constants and statics can have their lifetime extended until the end of the program
144+
.note2 = to avoid accidentally creating global mutable state, such temporaries must be immutable
145+
.help = if you really want global mutable state, try replacing the temporary by an interior mutable `static` or a `static mut`
146146
147147
const_eval_intern_kind = {$kind ->
148148
[static] static
@@ -225,9 +225,9 @@ const_eval_modified_global =
225225
const_eval_mutable_borrow_escaping =
226226
mutable borrows of temporaries that have their lifetime extended until the end of the program are not allowed
227227
.label = this mutable borrow refers to such a temporary
228-
.note = Temporaries in constants and statics can have their lifetime extended until the end of the program
229-
.note2 = To avoid accidentally creating global mutable state, such temporaries must be immutable
230-
.help = If you really want global mutable state, try replacing the temporary by an interior mutable `static` or a `static mut`
228+
.note = temporaries in constants and statics can have their lifetime extended until the end of the program
229+
.note2 = to avoid accidentally creating global mutable state, such temporaries must be immutable
230+
.help = if you really want global mutable state, try replacing the temporary by an interior mutable `static` or a `static mut`
231231
232232
const_eval_mutable_ptr_in_final = encountered mutable pointer in final value of {const_eval_intern_kind}
233233

compiler/rustc_lint/messages.ftl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ lint_invalid_style = {$is_used_as_inner ->
542542
[false] crate-level attribute should be an inner attribute: add an exclamation mark: `#![{$name}]`
543543
*[other] the `#![{$name}]` attribute can only be used at the crate root
544544
}
545-
.note = This attribute does not have an `!`, which means it is applied to this {$target}
545+
.note = this attribute does not have an `!`, which means it is applied to this {$target}
546546
547547
lint_invalid_target = `#[{$name}]` attribute cannot be used on {$target}
548548
.warn = {-lint_previously_accepted}

compiler/rustc_monomorphize/messages.ftl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ monomorphize_encountered_error_while_instantiating_global_asm =
6262
monomorphize_large_assignments =
6363
moving {$size} bytes
6464
.label = value moved from here
65-
.note = The current maximum size is {$limit}, but it can be customized with the move_size_limit attribute: `#![move_size_limit = "..."]`
65+
.note = the current maximum size is {$limit}, but it can be customized with the move_size_limit attribute: `#![move_size_limit = "..."]`
6666
6767
monomorphize_no_optimized_mir =
6868
missing optimized MIR for `{$instance}` in the crate `{$crate_name}`

compiler/rustc_passes/messages.ftl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ passes_no_main_function =
376376
}
377377
.consider_adding_main_to_file = consider adding a `main` function to `{$filename}`
378378
.consider_adding_main_at_crate = consider adding a `main` function at the crate level
379-
.teach_note = If you don't know the basics of Rust, you can go look to the Rust Book to get started: https://doc.rust-lang.org/book/
379+
.teach_note = if you don't know the basics of Rust, you can go look to the Rust Book to get started: https://doc.rust-lang.org/book/
380380
.non_function_main = non-function item at `crate::main` is found
381381
382382
passes_non_exhaustive_with_default_field_values =

src/tools/build-manifest/src/main.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ use crate::versions::{PkgType, Versions};
1414

1515
include!(concat!(env!("OUT_DIR"), "/targets.rs"));
1616

17-
/// This allows the manifest to contain rust-docs for hosts that don't build
18-
/// docs.
17+
/// This allows the manifest to contain rust-docs and rustc-docs for hosts
18+
/// that don't build certain docs.
1919
///
2020
/// Tuples of `(host_partial, host_instead)`. If the host does not have the
21-
/// rust-docs component available, then if the host name contains
21+
/// corresponding docs component available, then if the host name contains
2222
/// `host_partial`, it will use the docs from `host_instead` instead.
2323
///
2424
/// The order here matters, more specific entries should be first.
@@ -392,9 +392,9 @@ impl Builder {
392392
let t = Target::from_compressed_tar(self, &tarball_name!(fallback_target));
393393
// Fallbacks should typically be available on 'production' builds
394394
// but may not be available for try builds, which only build one target by
395-
// default. Ideally we'd gate this being a hard error on whether we're in a
396-
// production build or not, but it's not information that's readily available
397-
// here.
395+
// default. It is also possible that `rust-docs` and `rustc-docs` differ in
396+
// availability per target. Thus, we take the first available fallback we can
397+
// find.
398398
if !t.available {
399399
eprintln!(
400400
"{:?} not available for fallback",

src/tools/build-manifest/src/versions.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,7 @@ impl PkgType {
133133

134134
/// Whether to package these target-specific docs for another similar target.
135135
pub(crate) fn use_docs_fallback(&self) -> bool {
136-
match self {
137-
PkgType::JsonDocs | PkgType::HtmlDocs => true,
138-
_ => false,
139-
}
136+
matches!(self, PkgType::JsonDocs | PkgType::HtmlDocs | PkgType::RustcDocs)
140137
}
141138
}
142139

src/tools/miri/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,8 @@ and macOS targets are usually on par. Windows is supported less well.
228228

229229
### Running tests in parallel
230230

231-
Though it implements Rust threading, Miri itself is a single-threaded interpreter.
231+
Though it implements Rust threading, Miri itself is a single-threaded interpreter
232+
(it works like a multi-threaded OS on a single-core CPU).
232233
This means that when running `cargo miri test`, you will probably see a dramatic
233234
increase in the amount of time it takes to run your whole test suite due to the
234235
inherent interpreter slowdown and a loss of parallelism.

src/tools/miri/rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
f57b9e6f565a1847e83a63f3e90faa3870536c1f
1+
b6fdaf2a15736cbccf248b532f48e33179614d40

src/tools/miri/src/bin/miri.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ fn main() {
710710
if !miri_config.native_lib.is_empty() && miri_config.provenance_mode == ProvenanceMode::Strict {
711711
fatal_error!("strict provenance is not compatible with calling native functions");
712712
}
713-
// Native calls and many-seeds are an "intersting" combination.
713+
// Native calls and many-seeds are an "interesting" combination.
714714
if !miri_config.native_lib.is_empty() && many_seeds.is_some() {
715715
eprintln!(
716716
"warning: `-Zmiri-many-seeds` runs multiple instances of the program in the same address space, \

0 commit comments

Comments
 (0)