File tree 1 file changed +7
-0
lines changed
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ because that's clearly a non-descriptive name.
10
10
* [ Setup] ( #Setup )
11
11
* [ Testing] ( #Testing )
12
12
* [ Rustfix tests] ( #Rustfix-tests )
13
+ * [ Edition 2018 tests] ( #Edition-2018-tests )
13
14
* [ Lint declaration] ( #Lint-declaration )
14
15
* [ Lint passes] ( #Lint-passes )
15
16
* [ Emitting a lint] ( #Emitting-a-lint )
@@ -101,6 +102,12 @@ Use `tests/ui/update-all-references.sh` to automatically generate the
101
102
102
103
With tests in place, let's have a look at implementing our lint now.
103
104
105
+ ### Edition 2018 tests
106
+
107
+ Some features require the 2018 edition to work (e.g. ` async_await ` ), but
108
+ compile-test tests run on the 2015 edition by default. To change this behavior
109
+ add ` // compile-flags: --edition 2018 ` at the top of the test file.
110
+
104
111
### Testing manually
105
112
106
113
Manually testing against an example file can be useful if you have added some
You can’t perform that action at this time.
0 commit comments