Skip to content

Rollup of 3 pull requests #132190

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 6 commits into from
Oct 26, 2024
Merged
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions compiler/rustc_lint/src/internal.rs
Original file line number Diff line number Diff line change
@@ -427,7 +427,7 @@ declare_tool_lint! {
/// More details on translatable diagnostics can be found
/// [here](https://rustc-dev-guide.rust-lang.org/diagnostics/translation.html).
pub rustc::UNTRANSLATABLE_DIAGNOSTIC,
Deny,
Allow,
"prevent creation of diagnostics which cannot be translated",
report_in_external_macro: true
}
@@ -440,7 +440,7 @@ declare_tool_lint! {
/// More details on diagnostics implementations can be found
/// [here](https://rustc-dev-guide.rust-lang.org/diagnostics/diagnostic-structs.html).
pub rustc::DIAGNOSTIC_OUTSIDE_OF_IMPL,
Deny,
Allow,
"prevent diagnostic creation outside of `Diagnostic`/`Subdiagnostic`/`LintDiagnostic` impls",
report_in_external_macro: true
}
20 changes: 20 additions & 0 deletions library/std/src/sync/once_lock.rs
Original file line number Diff line number Diff line change
@@ -634,6 +634,26 @@ impl<T> From<T> for OnceLock<T> {

#[stable(feature = "once_cell", since = "1.70.0")]
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]
fn eq(&self, other: &OnceLock<T>) -> bool {
self.get() == other.get()
37 changes: 37 additions & 0 deletions triagebot.toml
Original file line number Diff line number Diff line change
@@ -135,6 +135,43 @@ In case it's useful, here are some [instructions] for tackling these sorts of is
"""
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]
label = "I-prioritize"