Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 222c99b

Browse files
committedOct 12, 2024·
Auto merge of rust-lang#131601 - matthiaskrgr:rollup-iaai3u5, r=matthiaskrgr
Rollup of 8 pull requests Successful merges: - rust-lang#130870 (Add suggestion for removing invalid path sep `::` in fn def) - rust-lang#131233 (std: fix stdout-before-main) - rust-lang#131239 (Don't assume traits used as type are trait objs in 2021 edition) - rust-lang#131277 (Handle `clippy` cases of `rustc::potential_query_instability` lint) - rust-lang#131567 (Emit an error for unstable attributes that reference already stable features) - rust-lang#131585 (compiletest: Remove the one thing that was checking a directive's `original_line`) - rust-lang#131590 (yeet some clones) - rust-lang#131597 (Take a display name for `tool_check_step!`) r? `@ghost` `@rustbot` modify labels: rollup
2 parents 8f8bee4 + 8de5429 commit 222c99b

File tree

91 files changed

+868
-779
lines changed

Some content is hidden

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

91 files changed

+868
-779
lines changed
 

‎compiler/rustc_borrowck/src/nll.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ pub(crate) fn compute_regions<'a, 'tcx>(
165165
universe_causes,
166166
type_tests,
167167
liveness_constraints,
168-
elements.clone(),
168+
elements,
169169
);
170170

171171
// If requested: dump NLL facts, and run legacy polonius analysis.

‎compiler/rustc_builtin_macros/src/deriving/smart_ptr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ pub(crate) fn expand_deriving_smart_ptr(
312312
impl_generics.params.insert(pointee_param_idx + 1, extra_param);
313313

314314
// Add the impl blocks for `DispatchFromDyn` and `CoerceUnsized`.
315-
let gen_args = vec![GenericArg::Type(alt_self_type.clone())];
315+
let gen_args = vec![GenericArg::Type(alt_self_type)];
316316
add_impl_block(impl_generics.clone(), sym::DispatchFromDyn, gen_args.clone());
317317
add_impl_block(impl_generics.clone(), sym::CoerceUnsized, gen_args);
318318
}

0 commit comments

Comments
 (0)
This repository has been archived.