File tree 4 files changed +9
-41
lines changed
4 files changed +9
-41
lines changed Original file line number Diff line number Diff line change @@ -57,25 +57,23 @@ pub fn foo8() {}
57
57
/// ```{class=one=two}
58
58
/// main;
59
59
/// ```
60
- //~^^^ ERROR unexpected `=`
60
+ //~^^^ ERROR unexpected `=` character
61
61
pub fn foo9 ( ) { }
62
62
63
63
/// ```{.one.two}
64
64
/// main;
65
65
/// ```
66
- //~^^^ ERROR unexpected `.` character
67
66
pub fn foo10 ( ) { }
68
67
69
- /// ```{class=. one}
68
+ /// ```{class=( one}
70
69
/// main;
71
70
/// ```
72
- //~^^^ ERROR unexpected `. ` character after `=`
71
+ //~^^^ ERROR unexpected `( ` character after `=`
73
72
pub fn foo11 ( ) { }
74
73
75
74
/// ```{class=one.two}
76
75
/// main;
77
76
/// ```
78
- //~^^^ ERROR unexpected `.` character
79
77
pub fn foo12 ( ) { }
80
78
81
79
/// ```{(comment)}
Original file line number Diff line number Diff line change @@ -77,37 +77,21 @@ LL | | /// main;
77
77
LL | | /// ```
78
78
| |_______^
79
79
80
- error: unexpected `. ` character
81
- --> $DIR/custom_code_classes_in_docs-warning.rs:63 :1
80
+ error: unexpected `( ` character after `=`
81
+ --> $DIR/custom_code_classes_in_docs-warning.rs:68 :1
82
82
|
83
- LL | / /// ```{.one.two}
84
- LL | | /// main;
85
- LL | | /// ```
86
- | |_______^
87
-
88
- error: unexpected `.` character after `=`
89
- --> $DIR/custom_code_classes_in_docs-warning.rs:69:1
90
- |
91
- LL | / /// ```{class=.one}
92
- LL | | /// main;
93
- LL | | /// ```
94
- | |_______^
95
-
96
- error: unexpected `.` character
97
- --> $DIR/custom_code_classes_in_docs-warning.rs:75:1
98
- |
99
- LL | / /// ```{class=one.two}
83
+ LL | / /// ```{class=(one}
100
84
LL | | /// main;
101
85
LL | | /// ```
102
86
| |_______^
103
87
104
88
error: unexpected character `(`
105
- --> $DIR/custom_code_classes_in_docs-warning.rs:81 :1
89
+ --> $DIR/custom_code_classes_in_docs-warning.rs:79 :1
106
90
|
107
91
LL | / /// ```{(comment)}
108
92
LL | | /// main;
109
93
LL | | /// ```
110
94
| |_______^
111
95
112
- error: aborting due to 13 previous errors
96
+ error: aborting due to 11 previous errors
113
97
Original file line number Diff line number Diff line change @@ -12,7 +12,4 @@ pub struct Bar;
12
12
/// ```ASN.1
13
13
/// int main(void) { return 0; }
14
14
/// ```
15
- //~^^^ WARNING custom classes in code blocks will change behaviour
16
- //~| NOTE see issue #79483 <https://github.com/rust-lang/rust/issues/79483>
17
- //~| HELP add `#![feature(custom_code_classes_in_docs)]` to the crate attributes to enable
18
15
pub struct Bar2 ;
Original file line number Diff line number Diff line change @@ -10,16 +10,5 @@ LL | | /// ```
10
10
= help: add `#![feature(custom_code_classes_in_docs)]` to the crate attributes to enable
11
11
= note: found these custom classes: class=language-c
12
12
13
- warning: custom classes in code blocks will change behaviour
14
- --> $DIR/feature-gate-custom_code_classes_in_docs.rs:12:1
15
- |
16
- LL | / /// ```ASN.1
17
- LL | | /// int main(void) { return 0; }
18
- LL | | /// ```
19
- | |_______^
20
- |
21
- = note: see issue #79483 <https://github.com/rust-lang/rust/issues/79483> for more information
22
- = help: add `#![feature(custom_code_classes_in_docs)]` to the crate attributes to enable
23
-
24
- warning: 2 warnings emitted
13
+ warning: 1 warning emitted
25
14
You can’t perform that action at this time.
0 commit comments