Skip to content

Commit

Permalink
Rename "useless" to "unreachable" in pass name
Browse files Browse the repository at this point in the history
  • Loading branch information
Nadrieril committed Dec 23, 2024
1 parent a27cd0d commit 32fe580
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! Some passes like [`reconstruct_assert`] lead to the apparition of "dangling" blocks,
//! which are referenced nowhere and thus become useless. This pass filters those out.
//! which are referenced nowhere and thus become unreachable. This pass filters those out.
use std::collections::{HashMap, HashSet};

Expand Down
4 changes: 2 additions & 2 deletions charon/src/transform/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ pub mod check_generics;
pub mod ctx;
pub mod duplicate_return;
pub mod filter_invisible_trait_impls;
pub mod filter_useless_blocks;
pub mod filter_unreachable_blocks;
pub mod graphs;
pub mod hide_marker_traits;
pub mod index_intermediate_assigns;
Expand Down Expand Up @@ -85,7 +85,7 @@ pub static ULLBC_PASSES: &[Pass] = &[
UnstructuredBody(&duplicate_return::Transform),
// # Micro-pass: filter the "dangling" blocks. Those might have been introduced by,
// for instance, [`reconstruct_asserts`].
UnstructuredBody(&filter_useless_blocks::Transform),
UnstructuredBody(&filter_unreachable_blocks::Transform),
];

pub static LLBC_PASSES: &[Pass] = &[
Expand Down

0 comments on commit 32fe580

Please sign in to comment.