Skip to content

Commit

Permalink
Remove Stateless display style
Browse files Browse the repository at this point in the history
  • Loading branch information
Nadrieril committed Jan 1, 2025
1 parent dce976f commit c0e2c65
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 97 deletions.
8 changes: 0 additions & 8 deletions src/analyses/compute_rules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,14 +237,6 @@ impl PredicateStyle {
show_scrut_access: true,
},
),
(
"Stateless",
PredicateStyle::Sequent {
ty: TypeOfInterest::UserVisible,
show_reference_state: false,
show_scrut_access: false,
},
),
];

pub fn to_name(&self) -> Option<&str> {
Expand Down
8 changes: 0 additions & 8 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,10 @@ impl CliState {
name: "Sequent",
doc: "TODO",
},
OptionValue {
name: "BindingMode",
doc: "TODO",
},
OptionValue {
name: "SequentBindingMode",
doc: "TODO",
},
OptionValue {
name: "Stateless",
doc: "TODO",
},
],
doc: "the style of the typing predicate; not all rulesets can be expressed in all styles, \
only `Expression` is compatible with all rulesets",
Expand Down
71 changes: 0 additions & 71 deletions tests/snapshots/bundle_rules@stateless-Stateless.snap

This file was deleted.

2 changes: 1 addition & 1 deletion tests/snapshots/trace_cli@11515459865669657874.snap
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Options are:
How to handle a `mut x` binding on an inherited reference
- simplify_deref_mut: false | true
Whether to simplify `*&mut expr`, which removes some borrow errors
- predicate_style: Expression | Sequent | BindingMode | SequentBindingMode | Stateless
- predicate_style: Expression | Sequent | SequentBindingMode
the style of the typing predicate; not all rulesets can be expressed in all styles, only `Expression` is compatible with all rulesets

There also exist some predefined option-bundles. Activate one with `set <bundle>`
Expand Down
2 changes: 1 addition & 1 deletion tests/snapshots/trace_cli@16736406663811832092.snap
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Options are:
How to handle a `mut x` binding on an inherited reference
- simplify_deref_mut: false | true
Whether to simplify `*&mut expr`, which removes some borrow errors
- predicate_style: Expression | Sequent | BindingMode | SequentBindingMode | Stateless
- predicate_style: Expression | Sequent | SequentBindingMode
the style of the typing predicate; not all rulesets can be expressed in all styles, only `Expression` is compatible with all rulesets

There also exist some predefined option-bundles. Activate one with `set <bundle>`
Expand Down
2 changes: 1 addition & 1 deletion tests/snapshots/trace_cli@17515479014605656910.snap
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Options are:
How to handle a `mut x` binding on an inherited reference
- simplify_deref_mut: false | true
Whether to simplify `*&mut expr`, which removes some borrow errors
- predicate_style: Expression | Sequent | BindingMode | SequentBindingMode | Stateless
- predicate_style: Expression | Sequent | SequentBindingMode
the style of the typing predicate; not all rulesets can be expressed in all styles, only `Expression` is compatible with all rulesets

There also exist some predefined option-bundles. Activate one with `set <bundle>`
Expand Down
2 changes: 1 addition & 1 deletion tests/snapshots/trace_cli@3615762548608754050.snap
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Options are:
How to handle a `mut x` binding on an inherited reference
- simplify_deref_mut: false | true
Whether to simplify `*&mut expr`, which removes some borrow errors
- predicate_style: Expression | Sequent | BindingMode | SequentBindingMode | Stateless
- predicate_style: Expression | Sequent | SequentBindingMode
the style of the typing predicate; not all rulesets can be expressed in all styles, only `Expression` is compatible with all rulesets

There also exist some predefined option-bundles. Activate one with `set <bundle>`
Expand Down
5 changes: 0 additions & 5 deletions tests/snapshots/trace_cli@6722020181128628927.snap

This file was deleted.

1 change: 0 additions & 1 deletion tests/trace_cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ fn trace_cli() -> anyhow::Result<()> {
"set rfc3627\nset predicate_style SequentBindingMode\nrules",
"save\nset downgrade_mut_inside_shared true\nswap\ncompare",
"save\nset structural\nswap\nrules",
"set predicate_style Stateless",
"set stable_rust\n[&x]: &[AT]",
"&ap: &T",
"set predicate_style SequentBindingMode",
Expand Down

0 comments on commit c0e2c65

Please sign in to comment.