Rollup merge of #89508 - jhpratt:stabilize-const_panic, r=joshtriplett · rust-lang/rust@2914d1d (original) (raw)

1

1

`error[E0080]: evaluation of constant value failed

`

2

``

`-

--> $DIR/const_panic.rs:7:15

`

``

2

`+

--> $DIR/const_panic.rs:6:15

`

3

3

` |

`

4

4

`LL | const Z: () = std::panic!("cheese");

`

5

``

`-

| ^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'cheese', $DIR/const_panic.rs:7:15

`

``

5

`+

| ^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'cheese', $DIR/const_panic.rs:6:15

`

6

6

` |

`

7

7

`` = note: this error originates in the macro $crate::panic::panic_2015 (in Nightly builds, run with -Z macro-backtrace for more info)

``

8

8

``

9

9

`error[E0080]: evaluation of constant value failed

`

10

``

`-

--> $DIR/const_panic.rs:10:16

`

``

10

`+

--> $DIR/const_panic.rs:9:16

`

11

11

` |

`

12

12

`LL | const Z2: () = std::panic!();

`

13

``

`-

| ^^^^^^^^^^^^^ the evaluated program panicked at 'explicit panic', $DIR/const_panic.rs:10:16

`

``

13

`+

| ^^^^^^^^^^^^^ the evaluated program panicked at 'explicit panic', $DIR/const_panic.rs:9:16

`

14

14

` |

`

15

15

`` = note: this error originates in the macro $crate::panic::panic_2015 (in Nightly builds, run with -Z macro-backtrace for more info)

``

16

16

``

17

17

`error[E0080]: evaluation of constant value failed

`

18

``

`-

--> $DIR/const_panic.rs:13:15

`

``

18

`+

--> $DIR/const_panic.rs:12:15

`

19

19

` |

`

20

20

`LL | const Y: () = std::unreachable!();

`

21

``

`-

| ^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'internal error: entered unreachable code', $DIR/const_panic.rs:13:15

`

``

21

`+

| ^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'internal error: entered unreachable code', $DIR/const_panic.rs:12:15

`

22

22

` |

`

23

23

`` = note: this error originates in the macro $crate::panic::panic_2015 (in Nightly builds, run with -Z macro-backtrace for more info)

``

24

24

``

25

25

`error[E0080]: evaluation of constant value failed

`

26

``

`-

--> $DIR/const_panic.rs:16:15

`

``

26

`+

--> $DIR/const_panic.rs:15:15

`

27

27

` |

`

28

28

`LL | const X: () = std::unimplemented!();

`

29

``

`-

| ^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'not implemented', $DIR/const_panic.rs:16:15

`

``

29

`+

| ^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'not implemented', $DIR/const_panic.rs:15:15

`

30

30

` |

`

31

31

`` = note: this error originates in the macro $crate::panic::panic_2015 (in Nightly builds, run with -Z macro-backtrace for more info)

``

32

32

``

33

33

`error[E0080]: evaluation of constant value failed

`

34

``

`-

--> $DIR/const_panic.rs:19:15

`

``

34

`+

--> $DIR/const_panic.rs🔞15

`

35

35

` |

`

36

36

`LL | const W: () = std::panic!(MSG);

`

37

``

`-

| ^^^^^^^^^^^^^^^^ the evaluated program panicked at 'hello', $DIR/const_panic.rs:19:15

`

``

37

`+

| ^^^^^^^^^^^^^^^^ the evaluated program panicked at 'hello', $DIR/const_panic.rs🔞15

`

38

38

` |

`

39

39

`` = note: this error originates in the macro $crate::panic::panic_2015 (in Nightly builds, run with -Z macro-backtrace for more info)

``

40

40

``

41

41

`error[E0080]: evaluation of constant value failed

`

42

``

`-

--> $DIR/const_panic.rs:22:16

`

``

42

`+

--> $DIR/const_panic.rs:21:16

`

43

43

` |

`

44

44

`LL | const W2: () = std::panic!("{}", MSG);

`

45

``

`-

| ^^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'hello', $DIR/const_panic.rs:22:16

`

``

45

`+

| ^^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'hello', $DIR/const_panic.rs:21:16

`

46

46

` |

`

47

47

`` = note: this error originates in the macro $crate::panic::panic_2015 (in Nightly builds, run with -Z macro-backtrace for more info)

``

48

48

``

49

49

`error[E0080]: evaluation of constant value failed

`

50

``

`-

--> $DIR/const_panic.rs:25:20

`

``

50

`+

--> $DIR/const_panic.rs:24:20

`

51

51

` |

`

52

52

`LL | const Z_CORE: () = core::panic!("cheese");

`

53

``

`-

| ^^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'cheese', $DIR/const_panic.rs:25:20

`

``

53

`+

| ^^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'cheese', $DIR/const_panic.rs:24:20

`

54

54

` |

`

55

55

`` = note: this error originates in the macro $crate::panic::panic_2015 (in Nightly builds, run with -Z macro-backtrace for more info)

``

56

56

``

57

57

`error[E0080]: evaluation of constant value failed

`

58

``

`-

--> $DIR/const_panic.rs:28:21

`

``

58

`+

--> $DIR/const_panic.rs:27:21

`

59

59

` |

`

60

60

`LL | const Z2_CORE: () = core::panic!();

`

61

``

`-

| ^^^^^^^^^^^^^^ the evaluated program panicked at 'explicit panic', $DIR/const_panic.rs:28:21

`

``

61

`+

| ^^^^^^^^^^^^^^ the evaluated program panicked at 'explicit panic', $DIR/const_panic.rs:27:21

`

62

62

` |

`

63

63

`` = note: this error originates in the macro $crate::panic::panic_2015 (in Nightly builds, run with -Z macro-backtrace for more info)

``

64

64

``

65

65

`error[E0080]: evaluation of constant value failed

`

66

``

`-

--> $DIR/const_panic.rs:31:20

`

``

66

`+

--> $DIR/const_panic.rs:30:20

`

67

67

` |

`

68

68

`LL | const Y_CORE: () = core::unreachable!();

`

69

``

`-

| ^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'internal error: entered unreachable code', $DIR/const_panic.rs:31:20

`

``

69

`+

| ^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'internal error: entered unreachable code', $DIR/const_panic.rs:30:20

`

70

70

` |

`

71

71

`` = note: this error originates in the macro $crate::panic::panic_2015 (in Nightly builds, run with -Z macro-backtrace for more info)

``

72

72

``

73

73

`error[E0080]: evaluation of constant value failed

`

74

``

`-

--> $DIR/const_panic.rs:34:20

`

``

74

`+

--> $DIR/const_panic.rs:33:20

`

75

75

` |

`

76

76

`LL | const X_CORE: () = core::unimplemented!();

`

77

``

`-

| ^^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'not implemented', $DIR/const_panic.rs:34:20

`

``

77

`+

| ^^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'not implemented', $DIR/const_panic.rs:33:20

`

78

78

` |

`

79

79

`` = note: this error originates in the macro $crate::panic::panic_2015 (in Nightly builds, run with -Z macro-backtrace for more info)

``

80

80

``

81

81

`error[E0080]: evaluation of constant value failed

`

82

``

`-

--> $DIR/const_panic.rs:37:20

`

``

82

`+

--> $DIR/const_panic.rs:36:20

`

83

83

` |

`

84

84

`LL | const W_CORE: () = core::panic!(MSG);

`

85

``

`-

| ^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'hello', $DIR/const_panic.rs:37:20

`

``

85

`+

| ^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'hello', $DIR/const_panic.rs:36:20

`

86

86

` |

`

87

87

`` = note: this error originates in the macro $crate::panic::panic_2015 (in Nightly builds, run with -Z macro-backtrace for more info)

``

88

88

``

89

89

`error[E0080]: evaluation of constant value failed

`

90

``

`-

--> $DIR/const_panic.rs:40:21

`

``

90

`+

--> $DIR/const_panic.rs:39:21

`

91

91

` |

`

92

92

`LL | const W2_CORE: () = core::panic!("{}", MSG);

`

93

``

`-

| ^^^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'hello', $DIR/const_panic.rs:40:21

`

``

93

`+

| ^^^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'hello', $DIR/const_panic.rs:39:21

`

94

94

` |

`

95

95

`` = note: this error originates in the macro $crate::panic::panic_2015 (in Nightly builds, run with -Z macro-backtrace for more info)

``

96

96

``