Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
a401851
std: retry waitid on EINTR in the pidfd wait path
valentynkit Jul 24, 2026
e96993c
std: fix unix socket address truncation without a trailing NUL
devnexen Aug 3, 2026
6c2d6a6
Suggest moving for<> closure binders onto fn binding types
Dnreikronos Aug 4, 2026
ef35326
Add UI coverage for closure for<> binder binding suggestions
Dnreikronos Aug 4, 2026
377ef9f
Build newer binutils before building gcc
GuillaumeGomez Aug 12, 2026
46eb4fd
clippy::needless_borrow
ChrisDenton Aug 12, 2026
ddd8fa0
clippy::op_ref
ChrisDenton Aug 12, 2026
fafcb2b
clippy::borrow_deref_ref
ChrisDenton Aug 13, 2026
d9d6acf
clippy::explicit_auto_deref
ChrisDenton Aug 13, 2026
5653e8f
Library: enforce clippy deref lints in CI
ChrisDenton Aug 13, 2026
7f74e59
Ignore clippy lint in backtrace submodule
ChrisDenton Aug 13, 2026
7bbe5d6
Add regression test for static lifetime of borrowed array of Drop typ…
zakrad Aug 12, 2026
748a319
Add extra checks to ensure GCC and binutils have needed support for t…
GuillaumeGomez Aug 13, 2026
487e0e0
Display generated asm in case it failed
GuillaumeGomez Aug 13, 2026
4c097cf
Use `--prefix` to generate binaries in the right location
GuillaumeGomez Aug 13, 2026
3c395a9
Add regression test for path printing with infinitely many visible names
zakrad Aug 13, 2026
88cfd22
Use `--with-as` and `--with-ld` options for `gcc` configure
GuillaumeGomez Aug 13, 2026
bcc35a8
More settings targetting binutils
GuillaumeGomez Aug 14, 2026
5b93f54
Add regression test for unstable def_ident_span fingerprint with incr…
zakrad Aug 14, 2026
9126d55
cleanup: rip out unnecessary `iter().last()` and `iter().next()`
makai410 Aug 14, 2026
80cc60a
Correctly test the custom GCC built in CI
GuillaumeGomez Aug 14, 2026
942fe31
Fix tidy error
GuillaumeGomez Aug 14, 2026
581ac1c
Add documentation for BPF targets
vadorovsky Aug 15, 2026
0958d0c
Switch to c8a EC2 runner for auto merges
Mark-Simulacrum Aug 15, 2026
d061443
Update `browser-ui-test` version to `0.25.1`
GuillaumeGomez Aug 15, 2026
3183856
Fix typo in search.js
GuillaumeGomez Aug 15, 2026
7748068
Add back flaky rustdoc-gui test with some small tweaks
GuillaumeGomez Aug 15, 2026
f955803
Move `LLVM_TOOLS` and `LLD_FILE_NAMES` into `build_steps::dist`
Zalathar Aug 16, 2026
73960bf
Move `EXTRA_CHECK_CFGS` into `crate::core::builder::cargo`
Zalathar Aug 16, 2026
43620bc
Describe Linux kernel version reqirements
vadorovsky Aug 16, 2026
7e27076
Mention the plan of using GNU flabor of linker
vadorovsky Aug 16, 2026
3da3659
Fix the link to the BPF ABI convention
vadorovsky Aug 16, 2026
ea31c35
Remove the "no-op" word from panic handler description
vadorovsky Aug 16, 2026
5e54aa2
Pin all kernel links to the v6.13
vadorovsky Aug 16, 2026
6d635da
std: guard against unwinds in queue-based `Once`
joboet Aug 16, 2026
9612357
Move `Compiler` to its own module `crate::core::compiler`
Zalathar Aug 16, 2026
38c260e
Move `CodegenBackendKind` to its own module `crate::core::backend`
Zalathar Aug 16, 2026
9ff48b2
Move `TestTarget` into `build_steps::test`
Zalathar Aug 16, 2026
57033a0
Move `Crate` into `crate::core::metadata`
Zalathar Aug 16, 2026
af768f6
Move `envify` into `crate::utils::helpers` and add a test
Zalathar Aug 16, 2026
d5a8464
Move/rename/adjust `prepare_behaviour_dump_dir`
Zalathar Aug 16, 2026
d7bd2df
Add code comment explaining why we need this binutils version
GuillaumeGomez Aug 16, 2026
59022bf
Add BPF test for Rust ABI stack arguments
amirHdev Aug 16, 2026
9162595
Add back flaky gui rustdoc test `tests/rustdoc-gui/headers-color.goml`
GuillaumeGomez Aug 16, 2026
916b10c
Replace structured for<> rewrite with a generic help
Dnreikronos Aug 16, 2026
688c96c
Rollup merge of #161017 - ChrisDenton:clippy2, r=nia-e
JonathanBrouwer Aug 16, 2026
39573e1
Rollup merge of #160416 - devnexen:gh118925, r=Mark-Simulacrum
JonathanBrouwer Aug 16, 2026
7411c66
Rollup merge of #161006 - GuillaumeGomez:gcc-binutils, r=Kobzol
JonathanBrouwer Aug 16, 2026
6741449
Rollup merge of #161141 - vadorovsky:vad/docs-platform-bpf, r=nagisa,…
JonathanBrouwer Aug 16, 2026
0ebe66d
Rollup merge of #161157 - Zalathar:bootstrap-root, r=Kobzol
JonathanBrouwer Aug 16, 2026
41aaf9d
Rollup merge of #161185 - joboet:unwind_queue_once, r=clarfonthey
JonathanBrouwer Aug 16, 2026
f811593
Rollup merge of #159855 - valentynkit:pidfd-wait-eintr, r=Mark-Simula…
JonathanBrouwer Aug 16, 2026
6552871
Rollup merge of #160478 - Dnreikronos:diagnostics/closure_lifetime_bi…
JonathanBrouwer Aug 16, 2026
80a666b
Rollup merge of #161053 - zakrad:regr-test-86672, r=mejrs
JonathanBrouwer Aug 16, 2026
a853c6f
Rollup merge of #161073 - zakrad:regr-test-57500, r=mejrs
JonathanBrouwer Aug 16, 2026
2e4b4cc
Rollup merge of #161099 - zakrad:regr-test-95945, r=folkertdev
JonathanBrouwer Aug 16, 2026
060dcc7
Rollup merge of #161103 - makai410:cleanup-iter-last, r=mu001999
JonathanBrouwer Aug 16, 2026
211fa52
Rollup merge of #161136 - amirHdev:investigate-bpf-123150, r=folkertdev
JonathanBrouwer Aug 16, 2026
6bb4d16
Rollup merge of #161146 - Mark-Simulacrum:ec2-auto, r=Kobzol
JonathanBrouwer Aug 16, 2026
3cd4d54
Rollup merge of #161148 - GuillaumeGomez:put-back-gui-test, r=Urgau
JonathanBrouwer Aug 16, 2026
10fe699
Rollup merge of #161181 - GuillaumeGomez:rustdoc-flaky-gui-back, r=Urgau
JonathanBrouwer Aug 16, 2026
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
2 changes: 1 addition & 1 deletion compiler/rustc_ast_passes/src/ast_validation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1180,7 +1180,7 @@ impl<'a> AstValidator<'a> {
self.dcx().emit_err(diagnostics::ArgsBeforeConstraint {
arg_spans: arg_spans.clone(),
constraints: constraint_spans[0],
args: *arg_spans.iter().last().unwrap(),
args: *arg_spans.last().unwrap(),
data: data.span,
constraint_spans: diagnostics::EmptyLabelManySpans(constraint_spans),
arg_spans2: diagnostics::EmptyLabelManySpans(arg_spans),
Expand Down
3 changes: 2 additions & 1 deletion compiler/rustc_ast_passes/src/feature_gate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,8 @@ pub fn check_crate(krate: &ast::Crate, sess: &Session, features: &Features) {
gate_all!(
closure_lifetime_binder,
"`for<...>` binders for closures are experimental",
"consider removing `for<...>`"
"consider using a type annotation instead: \
`let closure: for<...> fn(...) -> ... = /* closure */;`"
);
gate_all!(
half_open_range_patterns_in_slices,
Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_hir_typeck/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ fn extend_err_with_const_context(
{
// `foo<N>()`, point at the const parameter in the definition of `foo`.
if let Some(i) =
path.segments.iter().last().and_then(|segment| segment.args).and_then(|args| {
path.segments.last().and_then(|segment| segment.args).and_then(|args| {
args.args.iter().position(|arg| {
matches!(arg, hir::GenericArg::Const(arg) if arg.hir_id == parent.hir_id)
})
Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_parse/src/parser/pat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1688,7 +1688,7 @@ impl<'a> Parser<'a> {
/// If the user writes `S { ref field: name }` instead of `S { field: ref name }`, we suggest
/// the correct code.
fn recover_misplaced_pattern_modifiers(&self, fields: &ThinVec<PatField>, err: &mut Diag<'a>) {
if let Some(last) = fields.iter().last()
if let Some(last) = fields.last()
&& last.is_shorthand
&& let PatKind::Ident(binding, ident, None) = last.pat.kind
&& binding != BindingMode::NONE
Expand Down
6 changes: 2 additions & 4 deletions compiler/rustc_resolve/src/diagnostics/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,7 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
for note in notes {
diag.note(note);
}
} else if let Some((_, UnresolvedImportError { note: Some(note), .. })) =
errors.iter().last()
{
} else if let Some((_, UnresolvedImportError { note: Some(note), .. })) = errors.last() {
diag.note(note.clone());
}

Expand Down Expand Up @@ -2876,7 +2874,7 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
if struct_expr.fields.is_empty() {
return;
}
let last_span = struct_expr.fields.iter().last().unwrap().span;
let last_span = struct_expr.fields.last().unwrap().span;
let mut iter = struct_expr.fields.iter().peekable();
let mut prev: Option<Span> = None;
while let Some(field) = iter.next() {
Expand Down
5 changes: 2 additions & 3 deletions compiler/rustc_resolve/src/late.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4092,7 +4092,7 @@ impl<'a, 'ast, 'ra, 'tcx> LateResolutionVisitor<'a, 'ast, 'ra, 'tcx> {
v.could_be_path = false;
}
self.report_error(
v.origin.iter().next().unwrap().0,
v.origin.first().unwrap().0,
ResolutionError::VariableNotBoundInPattern(v, self.parent_scope),
);
}
Expand Down Expand Up @@ -4757,8 +4757,7 @@ impl<'a, 'ast, 'ra, 'tcx> LateResolutionVisitor<'a, 'ast, 'ra, 'tcx> {
self.resolve_path(&std_path, Some(ns), None, source)
{
// Check if we wrote `str::from_utf8` instead of `std::str::from_utf8`
let item_span =
path.iter().last().map_or(path_span, |segment| segment.ident.span);
let item_span = path.last().map_or(path_span, |segment| segment.ident.span);

self.r.confused_type_with_std_module.insert(item_span, path_span);
self.r.confused_type_with_std_module.insert(path_span, path_span);
Expand Down
2 changes: 1 addition & 1 deletion library/alloc/src/borrow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ impl<'a, B: ?Sized + ToOwned> Borrow<B> for Cow<'a, B>
// B::Owned: [const] Borrow<B>,
{
fn borrow(&self) -> &B {
&**self
self
}
}

Expand Down
14 changes: 7 additions & 7 deletions library/alloc/src/boxed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2144,7 +2144,7 @@ impl<T: Clone, A: Allocator + Clone> Clone for Box<[T], A> {
/// ```
fn clone_from(&mut self, source: &Self) {
if self.len() == source.len() {
self.clone_from_slice(&source);
self.clone_from_slice(source);
} else {
*self = source.clone();
}
Expand Down Expand Up @@ -2295,14 +2295,14 @@ impl<T: ?Sized, A: Allocator> Deref for Box<T, A> {
type Target = T;

fn deref(&self) -> &T {
&**self
self
}
}

#[stable(feature = "rust1", since = "1.0.0")]
impl<T: ?Sized, A: Allocator> DerefMut for Box<T, A> {
fn deref_mut(&mut self) -> &mut T {
&mut **self
self
}
}

Expand Down Expand Up @@ -2398,28 +2398,28 @@ impl<T: ?Sized + Unsize<U>, U: ?Sized> DispatchFromDyn<Box<U>> for Box<T, Global
#[stable(feature = "box_borrow", since = "1.1.0")]
impl<T: ?Sized, A: Allocator> Borrow<T> for Box<T, A> {
fn borrow(&self) -> &T {
&**self
self
}
}

#[stable(feature = "box_borrow", since = "1.1.0")]
impl<T: ?Sized, A: Allocator> BorrowMut<T> for Box<T, A> {
fn borrow_mut(&mut self) -> &mut T {
&mut **self
self
}
}

#[stable(since = "1.5.0", feature = "smart_ptr_as_ref")]
impl<T: ?Sized, A: Allocator> AsRef<T> for Box<T, A> {
fn as_ref(&self) -> &T {
&**self
self
}
}

#[stable(since = "1.5.0", feature = "smart_ptr_as_ref")]
impl<T: ?Sized, A: Allocator> AsMut<T> for Box<T, A> {
fn as_mut(&mut self) -> &mut T {
&mut **self
self
}
}

Expand Down
6 changes: 3 additions & 3 deletions library/alloc/src/collections/btree/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1572,7 +1572,7 @@ impl<K, V, A: Allocator + Clone> BTreeMap<K, V, A> {

let right_root = left_root.split_off(key, (*self.alloc).clone());

let (new_left_len, right_len) = Root::calc_split_length(total_num, &left_root, &right_root);
let (new_left_len, right_len) = Root::calc_split_length(total_num, left_root, &right_root);
self.length = new_left_len;

BTreeMap {
Expand Down Expand Up @@ -2208,8 +2208,8 @@ impl<'a, K, V, R> ExtractIfInner<'a, K, V, R> {
// On creation, we navigated directly to the left bound, so we need only check the
// right bound here to decide whether to stop.
match self.range.end_bound() {
Bound::Included(ref end) if (*k).le(end) => (),
Bound::Excluded(ref end) if (*k).lt(end) => (),
Bound::Included(end) if (*k).le(end) => (),
Bound::Excluded(end) if (*k).lt(end) => (),
Bound::Unbounded => (),
_ => return None,
}
Expand Down
2 changes: 1 addition & 1 deletion library/alloc/src/collections/btree/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1430,7 +1430,7 @@ impl<'a, K: 'a, V: 'a> BalancingContext<'a, K, V> {
left_node.val_area_mut(old_left_len + 1..new_left_len),
);

slice_remove(&mut parent_node.edge_area_mut(..old_parent_len + 1), parent_idx + 1);
slice_remove(parent_node.edge_area_mut(..old_parent_len + 1), parent_idx + 1);
parent_node.correct_childrens_parent_links(parent_idx + 1..old_parent_len);
*parent_node.len_mut() -= 1;

Expand Down
4 changes: 2 additions & 2 deletions library/alloc/src/collections/btree/set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1971,7 +1971,7 @@ impl<'a, T: Ord, A: Allocator + Clone> Iterator for Difference<'a, T, A> {
}
DifferenceInner::Search { self_iter, other_set } => loop {
let self_next = self_iter.next()?;
if !other_set.contains(&self_next) {
if !other_set.contains(self_next) {
return Some(self_next);
}
},
Expand Down Expand Up @@ -2068,7 +2068,7 @@ impl<'a, T: Ord, A: Allocator + Clone> Iterator for Intersection<'a, T, A> {
}
IntersectionInner::Search { small_iter, large_set } => loop {
let small_next = small_iter.next()?;
if large_set.contains(&small_next) {
if large_set.contains(small_next) {
return Some(small_next);
}
},
Expand Down
8 changes: 4 additions & 4 deletions library/alloc/src/io/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ impl Read for &[u8] {
fn read_buf_exact(&mut self, mut cursor: BorrowedCursor<'_, u8>) -> io::Result<()> {
if cursor.capacity() > self.len() {
// Append everything we can to the cursor.
cursor.append(*self);
cursor.append(self);
*self = &self[self.len()..];
return Err(io::Error::READ_EXACT_EOF);
}
Expand All @@ -349,7 +349,7 @@ impl Read for &[u8] {
buf.try_extend_from_slice_of_bytes(*self)?;
}
_ => {
buf.extend_from_slice(*self);
buf.extend_from_slice(self);
}
}

Expand Down Expand Up @@ -625,7 +625,7 @@ where

#[inline]
fn is_read_vectored(&self) -> bool {
(&**self).is_read_vectored()
(**self).is_read_vectored()
}

#[inline]
Expand Down Expand Up @@ -667,7 +667,7 @@ where

#[inline]
fn is_write_vectored(&self) -> bool {
(&**self).is_write_vectored()
(**self).is_write_vectored()
}

#[inline]
Expand Down
12 changes: 6 additions & 6 deletions library/alloc/src/rc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3858,14 +3858,14 @@ impl<'a> RcInnerPtr for WeakInner<'a> {
#[stable(feature = "rust1", since = "1.0.0")]
impl<T: ?Sized, A: Allocator> borrow::Borrow<T> for Rc<T, A> {
fn borrow(&self) -> &T {
&**self
self
}
}

#[stable(since = "1.5.0", feature = "smart_ptr_as_ref")]
impl<T: ?Sized, A: Allocator> AsRef<T> for Rc<T, A> {
fn as_ref(&self) -> &T {
&**self
self
}
}

Expand Down Expand Up @@ -3990,28 +3990,28 @@ impl<T: ?Sized, A: Allocator> fmt::Pointer for UniqueRc<T, A> {
#[unstable(feature = "unique_rc_arc", issue = "112566")]
impl<T: ?Sized, A: Allocator> borrow::Borrow<T> for UniqueRc<T, A> {
fn borrow(&self) -> &T {
&**self
self
}
}

#[unstable(feature = "unique_rc_arc", issue = "112566")]
impl<T: ?Sized, A: Allocator> borrow::BorrowMut<T> for UniqueRc<T, A> {
fn borrow_mut(&mut self) -> &mut T {
&mut **self
self
}
}

#[unstable(feature = "unique_rc_arc", issue = "112566")]
impl<T: ?Sized, A: Allocator> AsRef<T> for UniqueRc<T, A> {
fn as_ref(&self) -> &T {
&**self
self
}
}

#[unstable(feature = "unique_rc_arc", issue = "112566")]
impl<T: ?Sized, A: Allocator> AsMut<T> for UniqueRc<T, A> {
fn as_mut(&mut self) -> &mut T {
&mut **self
self
}
}

Expand Down
14 changes: 7 additions & 7 deletions library/alloc/src/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3836,7 +3836,7 @@ impl Default for Arc<str> {
#[inline]
fn default() -> Self {
let arc: Arc<[u8]> = Default::default();
debug_assert!(core::str::from_utf8(&*arc).is_ok());
debug_assert!(core::str::from_utf8(&arc).is_ok());
let (ptr, alloc) = Arc::into_inner_with_allocator(arc);
unsafe { Arc::from_ptr_in(ptr.as_ptr() as *mut ArcInner<str>, alloc) }
}
Expand Down Expand Up @@ -4246,14 +4246,14 @@ impl<T, I: iter::TrustedLen<Item = T>> ToArcSlice<T> for I {
#[stable(feature = "rust1", since = "1.0.0")]
impl<T: ?Sized, A: Allocator> borrow::Borrow<T> for Arc<T, A> {
fn borrow(&self) -> &T {
&**self
self
}
}

#[stable(since = "1.5.0", feature = "smart_ptr_as_ref")]
impl<T: ?Sized, A: Allocator> AsRef<T> for Arc<T, A> {
fn as_ref(&self) -> &T {
&**self
self
}
}

Expand Down Expand Up @@ -4463,28 +4463,28 @@ impl<T: ?Sized, A: Allocator> fmt::Pointer for UniqueArc<T, A> {
#[unstable(feature = "unique_rc_arc", issue = "112566")]
impl<T: ?Sized, A: Allocator> borrow::Borrow<T> for UniqueArc<T, A> {
fn borrow(&self) -> &T {
&**self
self
}
}

#[unstable(feature = "unique_rc_arc", issue = "112566")]
impl<T: ?Sized, A: Allocator> borrow::BorrowMut<T> for UniqueArc<T, A> {
fn borrow_mut(&mut self) -> &mut T {
&mut **self
self
}
}

#[unstable(feature = "unique_rc_arc", issue = "112566")]
impl<T: ?Sized, A: Allocator> AsRef<T> for UniqueArc<T, A> {
fn as_ref(&self) -> &T {
&**self
self
}
}

#[unstable(feature = "unique_rc_arc", issue = "112566")]
impl<T: ?Sized, A: Allocator> AsMut<T> for UniqueArc<T, A> {
fn as_mut(&mut self) -> &mut T {
&mut **self
self
}
}

Expand Down
2 changes: 1 addition & 1 deletion library/alloc/src/vec/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3878,7 +3878,7 @@ impl<T: Clone, A: Allocator + Clone> Clone for Vec<T, A> {
/// capacity of the original.
fn clone(&self) -> Self {
let alloc = self.allocator().clone();
<[T]>::to_vec_in(&**self, alloc)
<[T]>::to_vec_in(self, alloc)
}

/// Overwrites the contents of `self` with a clone of the contents of `source`.
Expand Down
2 changes: 1 addition & 1 deletion library/alloc/src/vec/splice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ impl<I: Iterator, A: Allocator> Drop for Splice<'_, I, A> {
// Which means we can replace the slice::Iter with pointers that won't point to deallocated
// memory, so that Drain::drop is still allowed to call iter.len(), otherwise it would break
// the ptr.offset_from_unsigned contract.
self.drain.iter = (&[]).iter();
self.drain.iter = [].iter();

unsafe {
if self.drain.tail_len == 0 {
Expand Down
4 changes: 2 additions & 2 deletions library/alloc/src/wtf8/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ impl Wtf8Buf {
/// like concatenating ill-formed UTF-16 strings effectively would.
#[inline]
pub fn push_wtf8(&mut self, other: &Wtf8) {
match ((&*self).final_lead_surrogate(), other.initial_trail_surrogate()) {
match ((*self).final_lead_surrogate(), other.initial_trail_surrogate()) {
// Replace newly paired surrogates by a supplementary code point.
(Some(lead), Some(trail)) => {
let len_without_lead_surrogate = self.len() - 3;
Expand Down Expand Up @@ -322,7 +322,7 @@ impl Wtf8Buf {
#[inline]
pub fn push(&mut self, code_point: CodePoint) {
if let Some(trail) = code_point.to_trail_surrogate() {
if let Some(lead) = (&*self).final_lead_surrogate() {
if let Some(lead) = (*self).final_lead_surrogate() {
let len_without_lead_surrogate = self.len() - 3;
self.bytes.truncate(len_without_lead_surrogate);
self.push_char(decode_surrogate_pair(lead, trail));
Expand Down
2 changes: 1 addition & 1 deletion library/core/src/bstr/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ impl PartialOrd for ByteStr {
impl PartialEq<ByteStr> for ByteStr {
#[inline]
fn eq(&self, other: &ByteStr) -> bool {
&self.0 == &other.0
self.0 == other.0
}
}

Expand Down
2 changes: 1 addition & 1 deletion library/core/src/cell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ impl<T, const N: usize> AsRef<[Cell<T>; N]> for Cell<[T; N]> {
impl<T, const N: usize> AsRef<[Cell<T>]> for Cell<[T; N]> {
#[inline]
fn as_ref(&self) -> &[Cell<T>] {
&*self.as_array_of_cells()
self.as_array_of_cells()
}
}

Expand Down
2 changes: 1 addition & 1 deletion library/core/src/clone.rs
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,7 @@ mod impls {
#[inline(always)]
#[rustc_diagnostic_item = "noop_method_clone"]
fn clone(&self) -> Self {
*self
self
}
}

Expand Down
Loading
Loading