Auto merge of #132190 - matthiaskrgr:rollup-rsocfiz, r=matthiaskrgr

Rollup of 3 pull requests

Successful merges:

 - #131875 (Add WASM | WASI | Emscripten groups to triagebot.toml)
 - #132019 (Document `PartialEq` impl for `OnceLock`)
 - #132182 (Downgrade `untranslatable_diagnostic` and `diagnostic_outside_of_impl` to `allow`)

r? `@ghost`
`@rustbot` modify labels: rollup
This commit is contained in:
bors 2024-10-26 19:00:57 +00:00
commit 9b18a122f7
3 changed files with 59 additions and 2 deletions

View File

@ -427,7 +427,7 @@ fn check_item(&mut self, cx: &LateContext<'_>, item: &rustc_hir::Item<'_>) {
/// More details on translatable diagnostics can be found /// More details on translatable diagnostics can be found
/// [here](https://rustc-dev-guide.rust-lang.org/diagnostics/translation.html). /// [here](https://rustc-dev-guide.rust-lang.org/diagnostics/translation.html).
pub rustc::UNTRANSLATABLE_DIAGNOSTIC, pub rustc::UNTRANSLATABLE_DIAGNOSTIC,
Deny, Allow,
"prevent creation of diagnostics which cannot be translated", "prevent creation of diagnostics which cannot be translated",
report_in_external_macro: true, report_in_external_macro: true,
@eval_always = true @eval_always = true
@ -441,7 +441,7 @@ fn check_item(&mut self, cx: &LateContext<'_>, item: &rustc_hir::Item<'_>) {
/// More details on diagnostics implementations can be found /// More details on diagnostics implementations can be found
/// [here](https://rustc-dev-guide.rust-lang.org/diagnostics/diagnostic-structs.html). /// [here](https://rustc-dev-guide.rust-lang.org/diagnostics/diagnostic-structs.html).
pub rustc::DIAGNOSTIC_OUTSIDE_OF_IMPL, pub rustc::DIAGNOSTIC_OUTSIDE_OF_IMPL,
Deny, Allow,
"prevent diagnostic creation outside of `Diagnostic`/`Subdiagnostic`/`LintDiagnostic` impls", "prevent diagnostic creation outside of `Diagnostic`/`Subdiagnostic`/`LintDiagnostic` impls",
report_in_external_macro: true, report_in_external_macro: true,
@eval_always = true @eval_always = true

View File

@ -634,6 +634,26 @@ fn from(value: T) -> Self {
#[stable(feature = "once_cell", since = "1.70.0")] #[stable(feature = "once_cell", since = "1.70.0")]
impl<T: PartialEq> PartialEq for OnceLock<T> { impl<T: PartialEq> PartialEq for OnceLock<T> {
/// Equality for two `OnceLock`s.
///
/// Two `OnceLock`s are equal if they either both contain values and their
/// values are equal, or if neither contains a value.
///
/// # Examples
///
/// ```
/// use std::sync::OnceLock;
///
/// let five = OnceLock::new();
/// five.set(5).unwrap();
///
/// let also_five = OnceLock::new();
/// also_five.set(5).unwrap();
///
/// assert!(five == also_five);
///
/// assert!(OnceLock::<u32>::new() == OnceLock::<u32>::new());
/// ```
#[inline] #[inline]
fn eq(&self, other: &OnceLock<T>) -> bool { fn eq(&self, other: &OnceLock<T>) -> bool {
self.get() == other.get() self.get() == other.get()

View File

@ -135,6 +135,43 @@ In case it's useful, here are some [instructions] for tackling these sorts of is
""" """
label = "O-rfl" label = "O-rfl"
[ping.wasm]
alias = ["webassembly"]
message = """\
Hey WASM notification group! This issue or PR could use some WebAssembly-specific
guidance. Could one of you weigh in? Thanks <3
(In case it's useful, here are some [instructions] for tackling these sorts of
issues).
[instructions]: https://rustc-dev-guide.rust-lang.org/notification-groups/wasm.html
"""
label = "O-wasm"
[ping.wasi]
message = """\
Hey WASI notification group! This issue or PR could use some WASI-specific guidance.
Could one of you weigh in? Thanks <3
(In case it's useful, here are some [instructions] for tackling these sorts of
issues).
[instructions]: https://rustc-dev-guide.rust-lang.org/notification-groups/wasi.html
"""
label = "O-wasi"
[ping.emscripten]
message = """\
Hey Emscripten notification group! This issue or PR could use some Emscripten-specific
guidance. Could one of you weigh in? Thanks <3
(In case it's useful, here are some [instructions] for tackling these sorts of
issues).
[instructions]: https://rustc-dev-guide.rust-lang.org/notification-groups/emscripten.html
"""
label = "O-emscripten"
[prioritize] [prioritize]
label = "I-prioritize" label = "I-prioritize"