Auto merge of #124223 - Zalathar:conditional-let, r=compiler-errors · rust-lang/rust@5486f0c (original) (raw)

1

1

`Function name: if_let::if_let

`

2

``

`-

Raw bytes (38): 0x[01, 01, 02, 05, 09, 09, 02, 06, 01, 0c, 01, 01, 10, 02, 03, 11, 00, 12, 05, 00, 16, 00, 1b, 02, 00, 1c, 02, 06, 09, 02, 0c, 02, 06, 07, 03, 05, 01, 02]

`

``

2

`+

Raw bytes (45): 0x[01, 01, 02, 05, 09, 09, 02, 07, 01, 0c, 01, 01, 10, 20, 02, 09, 03, 0c, 00, 13, 02, 00, 11, 00, 12, 05, 00, 16, 00, 1b, 02, 00, 1c, 02, 06, 09, 02, 0c, 02, 06, 07, 03, 05, 01, 02]

`

3

3

`Number of files: 1

`

4

4

`- file 0 => global file 1

`

5

5

`Number of expressions: 2

`

6

6

`- expression 0 operands: lhs = Counter(1), rhs = Counter(2)

`

7

7

`- expression 1 operands: lhs = Counter(2), rhs = Expression(0, Sub)

`

8

``

`-

Number of file 0 mappings: 6

`

``

8

`+

Number of file 0 mappings: 7

`

9

9

`- Code(Counter(0)) at (prev + 12, 1) to (start + 1, 16)

`

10

``

`-

`

``

10

`+

`

``

11

`+

true = (c1 - c2)

`

``

12

`+

false = c2

`

``

13

`+

`

11

14

` = (c1 - c2)

`

12

15

`- Code(Counter(1)) at (prev + 0, 22) to (start + 0, 27)

`

13

16

`- Code(Expression(0, Sub)) at (prev + 0, 28) to (start + 2, 6)

`

`@@ -17,20 +20,26 @@ Number of file 0 mappings: 6

`

17

20

` = (c2 + (c1 - c2))

`

18

21

``

19

22

`Function name: if_let::if_let_chain

`

20

``

`-

Raw bytes (52): 0x[01, 01, 04, 01, 05, 05, 09, 0f, 0d, 05, 09, 08, 01, 17, 01, 00, 33, 02, 01, 11, 00, 12, 01, 00, 16, 00, 17, 0d, 01, 15, 00, 16, 02, 00, 1a, 00, 1b, 0d, 01, 05, 03, 06, 0f, 03, 0c, 02, 06, 0b, 03, 05, 01, 02]

`

``

23

`+

Raw bytes (66): 0x[01, 01, 04, 01, 05, 05, 09, 0f, 0d, 05, 09, 0a, 01, 17, 01, 00, 33, 20, 02, 05, 01, 0c, 00, 13, 02, 00, 11, 00, 12, 01, 00, 16, 00, 17, 20, 0d, 09, 01, 10, 00, 17, 0d, 00, 15, 00, 16, 02, 00, 1a, 00, 1b, 0d, 01, 05, 03, 06, 0f, 03, 0c, 02, 06, 0b, 03, 05, 01, 02]

`

21

24

`Number of files: 1

`

22

25

`- file 0 => global file 1

`

23

26

`Number of expressions: 4

`

24

27

`- expression 0 operands: lhs = Counter(0), rhs = Counter(1)

`

25

28

`- expression 1 operands: lhs = Counter(1), rhs = Counter(2)

`

26

29

`- expression 2 operands: lhs = Expression(3, Add), rhs = Counter(3)

`

27

30

`- expression 3 operands: lhs = Counter(1), rhs = Counter(2)

`

28

``

`-

Number of file 0 mappings: 8

`

``

31

`+

Number of file 0 mappings: 10

`

29

32

`- Code(Counter(0)) at (prev + 23, 1) to (start + 0, 51)

`

30

``

`-

`

``

33

`+

`

``

34

`+

true = (c0 - c1)

`

``

35

`+

false = c1

`

``

36

`+

`

31

37

` = (c0 - c1)

`

32

38

`- Code(Counter(0)) at (prev + 0, 22) to (start + 0, 23)

`

33

``

`-

`

``

39

`+

`

``

40

`+

true = c3

`

``

41

`+

false = c2

`

``

42

`+

`

34

43

`- Code(Expression(0, Sub)) at (prev + 0, 26) to (start + 0, 27)

`

35

44

` = (c0 - c1)

`

36

45

`- Code(Counter(3)) at (prev + 1, 5) to (start + 3, 6)

`