Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
9195ce5
CFI: Only encode Coroutine Parent Args
maurer Mar 27, 2024
d243f5f
CFI: Rewrite closure and coroutine instances to their trait method
maurer Mar 26, 2024
bf47641
compiler: fix unused_peekable clippy lint
klensy Mar 28, 2024
b6cfe71
compiler: fix some clippy needless_pass_by_ref_mut
klensy Mar 28, 2024
aa35530
compiler: fix few needless_pass_by_ref_mut clippy lints
klensy Mar 28, 2024
316bc1c
compiler: fix few needless_pass_by_ref_mut clippy lints
klensy Mar 28, 2024
ecb3992
compiler: fix few needless_pass_by_ref_mut clippy lints
klensy Mar 28, 2024
615bb53
compiler: fix few needless_pass_by_ref_mut clippy lints
klensy Mar 28, 2024
afd0a8e
change BuiltinDeriveFn type to get ExtCtxt by immutable ref and fix s…
klensy Mar 28, 2024
c64a440
fix few more
klensy Mar 28, 2024
5488e49
and few more
klensy Mar 28, 2024
9a6b3df
and few more
klensy Mar 28, 2024
8245718
and more
klensy Mar 28, 2024
a325bce
Normalize the result of Fields::ty_with_args
celinval Mar 28, 2024
5fe364a
copy any file from stage0/lib to stage0-sysroot/lib
onur-ozkan Mar 29, 2024
5eb78c5
Forward port 1.77.1 release notes
yedayak Mar 29, 2024
448d4c1
Rollup merge of #123106 - maurer:cfi-closures, r=compiler-errors
matthiaskrgr Mar 29, 2024
3d1d25f
Rollup merge of #123176 - celinval:smir-field-ty, r=oli-obk
matthiaskrgr Mar 29, 2024
36d1dc5
Rollup merge of #123186 - onur-ozkan:llvm-library-bug, r=Kobzol
matthiaskrgr Mar 29, 2024
7f69eb2
Rollup merge of #123187 - yedayak:relnotes-1.77.1, r=Mark-Simulacrum
matthiaskrgr Mar 29, 2024
224f3ea
Rollup merge of #123188 - klensy:clippy-me2, r=Nilstrieb
matthiaskrgr Mar 29, 2024
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
Prev Previous commit
Next Next commit
and more
warning: this argument is a mutable reference, but not used mutably
    --> compiler\rustc_mir_transform\src\coroutine.rs:1229:11
     |
1229 |     body: &mut Body<'tcx>,
     |           ^^^^^^^^^^^^^^^ help: consider changing to: `&Body<'tcx>`
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut

warning: this argument is a mutable reference, but not used mutably
   --> compiler\rustc_mir_transform\src\nrvo.rs:123:11
    |
123 |     body: &mut mir::Body<'_>,
    |           ^^^^^^^^^^^^^^^^^^ help: consider changing to: `&mir::Body<'_>`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut

warning: this argument is a mutable reference, but not used mutably
  --> compiler\rustc_mir_transform\src\nrvo.rs:87:34
   |
87 | fn local_eligible_for_nrvo(body: &mut mir::Body<'_>) -> Option<Local> {
   |                                  ^^^^^^^^^^^^^^^^^^ help: consider changing to: `&mir::Body<'_>`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut
  • Loading branch information
klensy committed Mar 28, 2024
commit 8245718503f24a0a316c6603195b94be23f4fda4
5 changes: 1 addition & 4 deletions compiler/rustc_mir_build/src/build/matches/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1595,10 +1595,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
/// [`Switch`]: TestKind::Switch
/// [`SwitchInt`]: TestKind::SwitchInt
/// [`Range`]: TestKind::Range
fn pick_test(
&mut self,
candidates: &mut [&mut Candidate<'_, 'tcx>],
) -> (Place<'tcx>, Test<'tcx>) {
fn pick_test(&mut self, candidates: &[&mut Candidate<'_, 'tcx>]) -> (Place<'tcx>, Test<'tcx>) {
// Extract the match-pair from the highest priority candidate
let match_pair = &candidates.first().unwrap().match_pairs[0];
let test = self.test(match_pair);
Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_mir_transform/src/coroutine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1226,7 +1226,7 @@ fn create_coroutine_drop_shim<'tcx>(
tcx: TyCtxt<'tcx>,
transform: &TransformVisitor<'tcx>,
coroutine_ty: Ty<'tcx>,
body: &mut Body<'tcx>,
body: &Body<'tcx>,
drop_clean: BasicBlock,
) -> Body<'tcx> {
let mut body = body.clone();
Expand Down
7 changes: 2 additions & 5 deletions compiler/rustc_mir_transform/src/nrvo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ impl<'tcx> MirPass<'tcx> for RenameReturnPlace {
///
/// If the MIR fulfills both these conditions, this function returns the `Local` that is assigned
/// to the return place along all possible paths through the control-flow graph.
fn local_eligible_for_nrvo(body: &mut mir::Body<'_>) -> Option<Local> {
fn local_eligible_for_nrvo(body: &mir::Body<'_>) -> Option<Local> {
if IsReturnPlaceRead::run(body) {
return None;
}
Expand Down Expand Up @@ -118,10 +118,7 @@ fn local_eligible_for_nrvo(body: &mut mir::Body<'_>) -> Option<Local> {
copied_to_return_place
}

fn find_local_assigned_to_return_place(
start: BasicBlock,
body: &mut mir::Body<'_>,
) -> Option<Local> {
fn find_local_assigned_to_return_place(start: BasicBlock, body: &mir::Body<'_>) -> Option<Local> {
let mut block = start;
let mut seen = BitSet::new_empty(body.basic_blocks.len());

Expand Down