coverage: Bless coverage attribute tests · rust-lang/rust@1852141 (original) (raw)

1

1

`` error: malformed coverage attribute input

``

2

``

`-

--> $DIR/bad-syntax.rs:23:1

`

3

``

`-

|

`

4

``

`-

LL | #[coverage = true]

`

5

``

`-

| ^^^^^^^^^^^^^^^^^^

`

6

``

`-

|

`

7

``

`-

help: the following are the possible correct uses

`

8

``

`-

|

`

9

``

`-

LL | #[coverage(on|off)]

`

``

2

`+

--> $DIR/bad-syntax.rs:15:1

`

10

3

` |

`

11

4

`LL | #[coverage]

`

``

5

`+

| ^^^^^^^^^^^

`

12

6

` |

`

13

``

-

14

``

`` -

error: expected identifier, found ,

``

15

``

`-

--> $DIR/bad-syntax.rs:52:12

`

``

7

`+

help: the following are the possible correct uses

`

16

8

` |

`

17

``

`-

LL | #[coverage(,off)]

`

18

``

`-

| ^

`

19

``

`-

| |

`

20

``

`-

| expected identifier

`

21

``

`-

| help: remove this comma

`

``

9

`+

LL | #[coverage(off)]

`

``

10

`+

| ~~~~~~~~~~~~~~~~

`

``

11

`+

LL | #[coverage(on)]

`

``

12

`+

| ~~~~~~~~~~~~~~~

`

22

13

``

23

``

`` -

error: expected coverage(off) or coverage(on)

``

``

14

`` +

error: malformed coverage attribute input

``

24

15

` --> $DIR/bad-syntax.rs🔞1

`

25

16

` |

`

26

``

`-

LL | #[coverage]

`

27

``

`-

| ^^^^^^^^^^^

`

28

``

-

29

``

`` -

error: expected coverage(off) or coverage(on)

``

30

``

`-

--> $DIR/bad-syntax.rs:23:1

`

31

``

`-

|

`

32

17

`LL | #[coverage = true]

`

33

18

` | ^^^^^^^^^^^^^^^^^^

`

``

19

`+

|

`

``

20

`+

help: the following are the possible correct uses

`

``

21

`+

|

`

``

22

`+

LL | #[coverage(off)]

`

``

23

`+

| ~~~~~~~~~~~~~~~~

`

``

24

`+

LL | #[coverage(on)]

`

``

25

`+

| ~~~~~~~~~~~~~~~

`

34

26

``

35

``

`` -

error: expected coverage(off) or coverage(on)

``

36

``

`-

--> $DIR/bad-syntax.rs:30:1

`

``

27

`` +

error: malformed coverage attribute input

``

``

28

`+

--> $DIR/bad-syntax.rs:21:1

`

37

29

` |

`

38

30

`LL | #[coverage()]

`

39

31

` | ^^^^^^^^^^^^^

`

``

32

`+

|

`

``

33

`+

help: the following are the possible correct uses

`

``

34

`+

|

`

``

35

`+

LL | #[coverage(off)]

`

``

36

`+

| ~~~~~~~~~~~~~~~~

`

``

37

`+

LL | #[coverage(on)]

`

``

38

`+

| ~~~~~~~~~~~~~~~

`

40

39

``

41

``

`` -

error: expected coverage(off) or coverage(on)

``

42

``

`-

--> $DIR/bad-syntax.rs:33:1

`

``

40

`` +

error: malformed coverage attribute input

``

``

41

`+

--> $DIR/bad-syntax.rs:24:1

`

43

42

` |

`

44

43

`LL | #[coverage(off, off)]

`

45

44

` | ^^^^^^^^^^^^^^^^^^^^^

`

``

45

`+

|

`

``

46

`+

help: the following are the possible correct uses

`

``

47

`+

|

`

``

48

`+

LL | #[coverage(off)]

`

``

49

`+

| ~~~~~~~~~~~~~~~~

`

``

50

`+

LL | #[coverage(on)]

`

``

51

`+

| ~~~~~~~~~~~~~~~

`

46

52

``

47

``

`` -

error: expected coverage(off) or coverage(on)

``

48

``

`-

--> $DIR/bad-syntax.rs:36:1

`

``

53

`` +

error: malformed coverage attribute input

``

``

54

`+

--> $DIR/bad-syntax.rs:27:1

`

49

55

` |

`

50

56

`LL | #[coverage(off, on)]

`

51

57

` | ^^^^^^^^^^^^^^^^^^^^

`

``

58

`+

|

`

``

59

`+

help: the following are the possible correct uses

`

``

60

`+

|

`

``

61

`+

LL | #[coverage(off)]

`

``

62

`+

| ~~~~~~~~~~~~~~~~

`

``

63

`+

LL | #[coverage(on)]

`

``

64

`+

| ~~~~~~~~~~~~~~~

`

52

65

``

53

``

`` -

error: expected coverage(off) or coverage(on)

``

54

``

`-

--> $DIR/bad-syntax.rs:39:1

`

``

66

`` +

error: malformed coverage attribute input

``

``

67

`+

--> $DIR/bad-syntax.rs:30:1

`

55

68

` |

`

56

69

`LL | #[coverage(bogus)]

`

57

70

` | ^^^^^^^^^^^^^^^^^^

`

``

71

`+

|

`

``

72

`+

help: the following are the possible correct uses

`

``

73

`+

|

`

``

74

`+

LL | #[coverage(off)]

`

``

75

`+

| ~~~~~~~~~~~~~~~~

`

``

76

`+

LL | #[coverage(on)]

`

``

77

`+

| ~~~~~~~~~~~~~~~

`

58

78

``

59

``

`` -

error: expected coverage(off) or coverage(on)

``

60

``

`-

--> $DIR/bad-syntax.rs:42:1

`

``

79

`` +

error: malformed coverage attribute input

``

``

80

`+

--> $DIR/bad-syntax.rs:33:1

`

61

81

` |

`

62

82

`LL | #[coverage(bogus, off)]

`

63

83

` | ^^^^^^^^^^^^^^^^^^^^^^^

`

``

84

`+

|

`

``

85

`+

help: the following are the possible correct uses

`

``

86

`+

|

`

``

87

`+

LL | #[coverage(off)]

`

``

88

`+

| ~~~~~~~~~~~~~~~~

`

``

89

`+

LL | #[coverage(on)]

`

``

90

`+

| ~~~~~~~~~~~~~~~

`

64

91

``

65

``

`` -

error: expected coverage(off) or coverage(on)

``

66

``

`-

--> $DIR/bad-syntax.rs:45:1

`

``

92

`` +

error: malformed coverage attribute input

``

``

93

`+

--> $DIR/bad-syntax.rs:36:1

`

67

94

` |

`

68

95

`LL | #[coverage(off, bogus)]

`

69

96

` | ^^^^^^^^^^^^^^^^^^^^^^^

`

``

97

`+

|

`

``

98

`+

help: the following are the possible correct uses

`

``

99

`+

|

`

``

100

`+

LL | #[coverage(off)]

`

``

101

`+

| ~~~~~~~~~~~~~~~~

`

``

102

`+

LL | #[coverage(on)]

`

``

103

`+

| ~~~~~~~~~~~~~~~

`

70

104

``

71

``

`` -

error: expected coverage(off) or coverage(on)

``

72

``

`-

--> $DIR/bad-syntax.rs:52:1

`

``

105

`` +

error: expected identifier, found ,

``

``

106

`+

--> $DIR/bad-syntax.rs:42:12

`

73

107

` |

`

74

108

`LL | #[coverage(,off)]

`

75

``

`-

| ^^^^^^^^^^^^^^^^^

`

``

109

`+

| ^

`

``

110

`+

| |

`

``

111

`+

| expected identifier

`

``

112

`+

| help: remove this comma

`

``

113

+

``

114

`` +

error: multiple coverage attributes

``

``

115

`+

--> $DIR/bad-syntax.rs:7:1

`

``

116

`+

|

`

``

117

`+

LL | #[coverage(off)]

`

``

118

`+

| ^^^^^^^^^^^^^^^^ help: remove this attribute

`

``

119

`+

|

`

``

120

`+

note: attribute also specified here

`

``

121

`+

--> $DIR/bad-syntax.rs:8:1

`

``

122

`+

|

`

``

123

`+

LL | #[coverage(off)]

`

``

124

`+

| ^^^^^^^^^^^^^^^^

`

``

125

+

``

126

`` +

error: multiple coverage attributes

``

``

127

`+

--> $DIR/bad-syntax.rs:11:1

`

``

128

`+

|

`

``

129

`+

LL | #[coverage(off)]

`

``

130

`+

| ^^^^^^^^^^^^^^^^ help: remove this attribute

`

``

131

`+

|

`

``

132

`+

note: attribute also specified here

`

``

133

`+

--> $DIR/bad-syntax.rs:12:1

`

``

134

`+

|

`

``

135

`+

LL | #[coverage(on)]

`

``

136

`+

| ^^^^^^^^^^^^^^^

`

76

137

``

77

138

`error: aborting due to 11 previous errors

`

78

139

``