-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace "Expression" style with more-legible "Let" style
- Loading branch information
Showing
100 changed files
with
1,103 additions
and
1,108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 0 additions & 67 deletions
67
tests/snapshots/bundle_rules@min_ergonomics-Expression.snap
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
--- | ||
source: src/analyses/compute_rules.rs | ||
info: | ||
bundle_name: min_ergonomics | ||
options: | ||
match_constructor_through_ref: true | ||
eat_inherited_ref_alone: false | ||
inherited_ref_on_ref: Error | ||
fallback_to_outer: "No" | ||
allow_ref_pat_on_ref_mut: false | ||
simplify_deref_mut: true | ||
downgrade_mut_inside_shared: false | ||
eat_mut_inside_shared: false | ||
ref_binding_on_inherited: Error | ||
mut_binding_on_inherited: Error | ||
--- | ||
let p0: T0 = e.0, let p1: T1 = e.1 | ||
----------------------------------- "Constructor" | ||
let [p0, p1]: [T0, T1] = e | ||
|
||
let p0: &T0 = &(*e).0, let p1: &T1 = &(*e).1 | ||
--------------------------------------------- "ConstructorRef" | ||
let [p0, p1]: &[T0, T1] = e | ||
|
||
let p0: &mut T0 = &mut (*e).0, let p1: &mut T1 = &mut (*e).1 | ||
------------------------------------------------------------- "ConstructorRef" | ||
let [p0, p1]: &mut [T0, T1] = e | ||
|
||
let [p0, p1]: &T = &**e | ||
----------------------- "ConstructorMultiRef" | ||
let [p0, p1]: &&T = e | ||
|
||
let [p0, p1]: &T = &**e | ||
------------------------- "ConstructorMultiRef" | ||
let [p0, p1]: &&mut T = e | ||
|
||
let [p0, p1]: &T = &**e | ||
------------------------- "ConstructorMultiRef" | ||
let [p0, p1]: &mut &T = e | ||
|
||
let [p0, p1]: &mut T = &mut **e | ||
------------------------------- "ConstructorMultiRef" | ||
let [p0, p1]: &mut &mut T = e | ||
|
||
let p: T = *e | ||
------------------------------------ "Deref" | ||
let &p: &T = e, e is not a reference | ||
|
||
let p: T = *e | ||
-------------------------------------------- "Deref" | ||
let &mut p: &mut T = e, e is not a reference | ||
|
||
let x: &T = &e | ||
-------------------------------------- "BindingBorrow" | ||
let ref x: T = e, e is not a reference | ||
|
||
let x: &mut T = &mut e | ||
------------------------------------------ "BindingBorrow" | ||
let ref mut x: T = e, e is not a reference | ||
|
||
|
||
------------ "Binding" | ||
let x: T = e | ||
|
||
|
||
-------------------------------------- "Binding" | ||
let mut x: T = e, e is not a reference |
Oops, something went wrong.