Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
c4b1054
Move PointIndex to mir_dataflow.
cjgillot Dec 3, 2023
da235ce
Do not recompute liveness for DestinationPropagation.
cjgillot Dec 3, 2023
3082028
Fix comment.
cjgillot Dec 3, 2023
1d6723a
Use for_each instead of fold.
cjgillot Jan 7, 2024
adce3fd
Enable Static Builds for FreeBSD
rellerreller Jan 11, 2024
9a8f117
Don't create the array type twice
oli-obk Jan 15, 2024
ee370a1
Consistently unset RUSTC_BOOTSTRAP when compiling bootstrap
dtolnay Jan 15, 2024
3599c18
Skip dead code checks on items that failed typeck
oli-obk Jan 16, 2024
450cb5e
Don't ICE if TAIT-defining fn contains a closure with `_` in return type
Jan 14, 2024
22833c1
add test for non-defining use of TAIT in foreign function item
Jan 15, 2024
e12101c
Fix `rustc_abi` build on stable
Nadrieril Jan 16, 2024
37a5464
Eagerly instantiate closure ty
compiler-errors Jan 14, 2024
19d6f06
Don't rely on contiguous `VariantId`s outside of rustc
Nadrieril Jan 17, 2024
db7125f
Fix typo in comments (in_place_collect)
Storyyeller Jan 17, 2024
d6b99b9
Use FnOnceOutput instead of FnOnce where expected
oli-obk Jan 17, 2024
3ae7ab6
Rollup merge of #115291 - cjgillot:dest-prop-save, r=JakobDegen
matthiaskrgr Jan 17, 2024
c9779af
Rollup merge of #119855 - rellerreller:freebsd-static, r=wesleywiser
matthiaskrgr Jan 17, 2024
22f1913
Rollup merge of #119975 - lukas-code:inferring-return-types-and-opaqu…
matthiaskrgr Jan 17, 2024
cc9a4a2
Rollup merge of #120001 - dtolnay:bootstrapbootstrap, r=onur-ozkan
matthiaskrgr Jan 17, 2024
6ca77ff
Rollup merge of #120020 - oli-obk:long_const_eval_err_taint, r=compil…
matthiaskrgr Jan 17, 2024
cd5eb6a
Rollup merge of #120031 - compiler-errors:construct-closure-ty-eagerl…
matthiaskrgr Jan 17, 2024
e0aa4df
Rollup merge of #120032 - Nadrieril:fix-rustc_abi, r=Nilstrieb
matthiaskrgr Jan 17, 2024
3a3242a
Rollup merge of #120039 - Nadrieril:remove-idx, r=compiler-errors
matthiaskrgr Jan 17, 2024
a2eefd2
Rollup merge of #120044 - Storyyeller:patch-2, r=lqd
matthiaskrgr Jan 17, 2024
99a8b6a
Rollup merge of #120056 - oli-obk:arg_mismatch_ice, r=compiler-errors
matthiaskrgr Jan 17, 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
Fix comment.
  • Loading branch information
cjgillot committed Jan 7, 2024
commit 3082028be3707e2e4c88af2cf4d9d8ccc352a230
4 changes: 1 addition & 3 deletions compiler/rustc_mir_dataflow/src/points.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ impl DenseLocationMap {
v
})
.collect();
debug!("DenseLocationMap: statements_before_block={:#?}", statements_before_block);
debug!("DenseLocationMap: num_points={:#?}", num_points);

let mut basic_blocks = IndexVec::with_capacity(num_points);
for (bb, bb_data) in body.basic_blocks.iter_enumerated() {
Expand All @@ -55,7 +53,7 @@ impl DenseLocationMap {
PointIndex::new(start_index + statement_index)
}

/// Converts a `Location` into a `PointIndex`. O(1).
/// Returns the `PointIndex` for the first statement in the given `BasicBlock`. O(1).
#[inline]
pub fn entry_point(&self, block: BasicBlock) -> PointIndex {
let start_index = self.statements_before_block[block];
Expand Down