Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
91 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
99f42a7
genmc: rename 'invalid' to 'moot'
RalfJung Aug 5, 2026
2d4a4f7
Merge pull request #5244 from RalfJung/genmc-moot
RalfJung Aug 6, 2026
a6ed3af
Prepare for merging from rust-lang/rust
Aug 8, 2026
b75e461
Merge ref '7dfb9d0c40d3' from rust-lang/rust
Aug 8, 2026
1a0bccf
Merge pull request #5248 from rust-lang/rustup-2026-08-08
RalfJung Aug 8, 2026
ca79456
Prepare for merging from rust-lang/rust
Aug 9, 2026
c94866b
Merge ref '4667d75565e4' from rust-lang/rust
Aug 9, 2026
8ca43d6
Merge pull request #5249 from rust-lang/rustup-2026-08-09
RalfJung Aug 9, 2026
7672b83
Upgrade and deduplicate dependencies
cuviper Aug 4, 2026
c234ba3
Update run-make/wasm tests
cuviper Aug 9, 2026
bdbf95a
[Priroda] Generalize DAP session transport
moabo3li Aug 11, 2026
4f63153
[Priroda] Add DAP TCP frontend transport
moabo3li Aug 11, 2026
2c7b682
[Priroda] Wire --port to DAP TCP mode
moabo3li Aug 11, 2026
d93b7a8
[Priroda] Add VS Code DAP launch template
moabo3li Aug 11, 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
d7526fc
[Priroda] Exit cleanly on DAP TCP setup failures
moabo3li Aug 13, 2026
df2fe1f
[Priroda] Clarify VS Code debug type requirement
moabo3li Aug 13, 2026
0af72e4
[Priroda] Run the VS Code task through cargo
moabo3li Aug 13, 2026
90f126a
Merge pull request #5251 from moabo3li/priroda-vscode-debugserver
oli-obk 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
78dd93d
[Priroda] Add DAP attach startup fixtures
moabo3li Aug 14, 2026
bf99cbc
[Priroda] Accept DAP attach at startup
moabo3li Aug 14, 2026
d928caf
[Priroda] Add DAP unknown-command fixture
moabo3li Aug 14, 2026
9c36d9a
[Priroda] Keep DAP sessions alive after unknown commands
moabo3li Aug 14, 2026
513bf1a
[Priroda] Make the VS Code template extension-free
moabo3li Aug 14, 2026
cdca303
add some more missing io::Error variants
RalfJung Aug 15, 2026
2fbe4c9
host_error_to_errnum: avoid ErrorKind detour when host and target are…
RalfJung Aug 15, 2026
3aa2c47
Merge pull request #5255 from RalfJung/io-error
RalfJung Aug 15, 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
c0c5df2
Merge pull request #5254 from moabo3li/priroda-vscode-debugserver-ext…
oli-obk 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
8677009
Prepare for merging from rust-lang/rust
RalfJung Aug 16, 2026
74a4759
Merge ref '67854e511de2' from rust-lang/rust
RalfJung Aug 16, 2026
b77b9cf
fmt, clippy
saethlin Aug 14, 2026
6d635da
std: guard against unwinds in queue-based `Once`
joboet Aug 16, 2026
148cb75
bless and fix tests
RalfJung Aug 16, 2026
6c9c80c
Merge pull request #5252 from saethlin/rustup
RalfJung 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
bf996a3
Rollup merge of #160529 - cuviper:deps, r=Mark-Simulacrum
JonathanBrouwer Aug 16, 2026
baa312e
Rollup merge of #161017 - ChrisDenton:clippy2, r=nia-e
JonathanBrouwer Aug 16, 2026
3447e18
Rollup merge of #160416 - devnexen:gh118925, r=Mark-Simulacrum
JonathanBrouwer Aug 16, 2026
0d1d1de
Rollup merge of #161006 - GuillaumeGomez:gcc-binutils, r=Kobzol
JonathanBrouwer Aug 16, 2026
5bb6bd0
Rollup merge of #161141 - vadorovsky:vad/docs-platform-bpf, r=nagisa,…
JonathanBrouwer Aug 16, 2026
cf650ce
Rollup merge of #161157 - Zalathar:bootstrap-root, r=Kobzol
JonathanBrouwer Aug 16, 2026
e5e2a01
Rollup merge of #161185 - joboet:unwind_queue_once, r=clarfonthey
JonathanBrouwer Aug 16, 2026
666ac60
Rollup merge of #161186 - RalfJung:miri, r=RalfJung
JonathanBrouwer Aug 16, 2026
d25e942
Rollup merge of #159855 - valentynkit:pidfd-wait-eintr, r=Mark-Simula…
JonathanBrouwer Aug 16, 2026
1de0fd8
Rollup merge of #161053 - zakrad:regr-test-86672, r=mejrs
JonathanBrouwer Aug 16, 2026
aadc755
Rollup merge of #161073 - zakrad:regr-test-57500, r=mejrs
JonathanBrouwer Aug 16, 2026
c47179b
Rollup merge of #161099 - zakrad:regr-test-95945, r=folkertdev
JonathanBrouwer Aug 16, 2026
ecf6867
Rollup merge of #161103 - makai410:cleanup-iter-last, r=mu001999
JonathanBrouwer Aug 16, 2026
f223198
Rollup merge of #161136 - amirHdev:investigate-bpf-123150, r=folkertdev
JonathanBrouwer Aug 16, 2026
39e1745
Rollup merge of #161146 - Mark-Simulacrum:ec2-auto, r=Kobzol
JonathanBrouwer Aug 16, 2026
93536fd
Rollup merge of #161148 - GuillaumeGomez:put-back-gui-test, r=Urgau
JonathanBrouwer Aug 16, 2026
9a80de0
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
297 changes: 47 additions & 250 deletions Cargo.lock

Large diffs are not rendered by default.

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
4 changes: 2 additions & 2 deletions compiler/rustc_codegen_gcc/Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ dependencies = [

[[package]]
name = "object"
version = "0.37.1"
version = "0.39.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "03fd943161069e1768b4b3d050890ba48730e590f57e56d4aa04e7e090e61b4a"
checksum = "2e5a6c098c7a3b6547378093f5cc30bc54fd361ce711e05293a5cc589562739b"
dependencies = [
"memchr",
]
Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_codegen_gcc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ master = ["gccjit/master"]
default = ["master"]

[dependencies]
object = { version = "0.37.0", default-features = false, features = ["std", "read"] }
object = { version = "0.39.0", default-features = false, features = ["std", "read"] }
tempfile = "3.20"
gccjit = { version = "3.3.0", features = ["dlopen"] }
#gccjit = { git = "https://github.com/rust-lang/gccjit.rs", branch = "error-dlopen", features = ["dlopen"] }
Expand Down
4 changes: 2 additions & 2 deletions compiler/rustc_codegen_llvm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ test = false
bitflags = "2.4.1"
# To avoid duplicate dependencies, this should match the version of gimli used
# by `rustc_codegen_ssa` via its `thorin-dwp` dependency.
gimli = "0.33"
gimli = "0.34"
itertools = "0.15"
libc = "0.2"
libloading = { version = "0.9.0" }
measureme = "12.0.1"
object = { version = "0.38.1", default-features = false, features = ["std", "read"] }
object = { version = "0.39.1", default-features = false, features = ["std", "read"] }
rustc-demangle = "0.1.28"
rustc_abi = { path = "../rustc_abi" }
rustc_ast = { path = "../rustc_ast" }
Expand Down
6 changes: 3 additions & 3 deletions compiler/rustc_codegen_ssa/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ rustc_trait_selection = { path = "../rustc_trait_selection" }
serde_json = "1.0.59"
smallvec = { version = "1.8.1", features = ["union", "may_dangle"] }
tempfile = "3.2"
thorin-dwp = "0.10"
thorin-dwp = "0.11"
tracing = "0.1"
wasm-encoder = "0.219"
wasm-encoder = "0.247"
# tidy-alphabetical-end

[target.'cfg(unix)'.dependencies]
Expand All @@ -49,7 +49,7 @@ libc = "0.2.50"
# tidy-alphabetical-end

[dependencies.object]
version = "0.38.1"
version = "0.39.1"
default-features = false
features = ["read_core", "elf", "macho", "pe", "xcoff", "unaligned", "archive", "write", "wasm"]

Expand Down
6 changes: 3 additions & 3 deletions compiler/rustc_codegen_ssa/src/back/link/raw_dylib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -477,13 +477,13 @@ fn create_elf_raw_dylib_stub(sess: &Session, soname: &str, symbols: &[DllImport]
// the DT_SONAME will be used by the linker to populate DT_NEEDED
// which the loader uses to find the library.
stub.write_align_dynamic();
stub.write_dynamic_string(elf::DT_SONAME, soname);
stub.write_dynamic_string(elf::DT_SONAME, soname).unwrap();
// LSB section "2.7. Symbol Versioning" requires `DT_VERDEFNUM` to be reliable.
if verdef_count > 1 {
stub.write_dynamic(elf::DT_VERDEFNUM, verdef_count as u64);
stub.write_dynamic(elf::DT_VERDEFNUM, verdef_count as u64).unwrap();
}
// DT_NULL terminates the .dynamic table.
stub.write_dynamic(elf::DT_NULL, 0);
stub.write_dynamic(elf::DT_NULL, 0).unwrap();

stub_buf
}
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_metadata/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ edition = "2024"
[dependencies]
# tidy-alphabetical-start
bitflags = "2.4.1"
libloading = "0.8.0"
libloading = "0.9.0"
odht = { version = "0.3.1", features = ["nightly"] }
rustc_abi = { path = "../rustc_abi" }
rustc_ast = { path = "../rustc_ast" }
Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_metadata/src/host_dylib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ fn attempt_load_dylib(path: &Path) -> Result<libloading::Library, libloading::Er
.map(|lib| lib.into());
}

unsafe { libloading::Library::new(&path) }
unsafe { libloading::Library::new(path) }
}

// On Windows the compiler would sometimes intermittently fail to open the
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 compiler/rustc_target/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ edition = "2024"
# tidy-alphabetical-start
arrayvec = { version = "0.7", default-features = false }
bitflags = "2.4.1"
object = { version = "0.38.1", default-features = false, features = ["elf", "macho"] }
object = { version = "0.39.1", default-features = false, features = ["elf", "macho"] }
rustc_abi = { path = "../rustc_abi" }
rustc_data_structures = { path = "../rustc_data_structures" }
rustc_error_messages = { path = "../rustc_error_messages" }
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
Loading
Loading