File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -148,8 +148,7 @@ whereas this code uses [`ResultsCursor`]:
148
148
149
149
``` rust,ignore
150
150
let mut results = MyAnalysis::new()
151
- .into_engine(tcx, body, def_id)
152
- .iterate_to_fixpoint()
151
+ .iterate_to_fixpoint(tcx, body, None);
153
152
.into_results_cursor(body);
154
153
155
154
// Inspect the fixpoint state immediately before each `Drop` terminator.
Original file line number Diff line number Diff line change @@ -344,8 +344,7 @@ For checking runtime output, `//@ check-run-results` may be preferable.
344
344
345
345
Only use ` error-pattern ` if none of the above works.
346
346
347
- Line annotations ` //~ ` are still checked in tests using ` error-pattern ` .
348
- In exceptional cases, use ` //@ compile-flags: --error-format=human ` to opt out of these checks.
347
+ Line annotations ` //~ ` and ` error-pattern ` are compatible and can be used in the same test.
349
348
350
349
### Diagnostic kinds (error levels)
351
350
@@ -356,9 +355,12 @@ The diagnostic kinds that you can have are:
356
355
- ` NOTE `
357
356
- ` HELP `
358
357
- ` SUGGESTION `
358
+ - ` RAW `
359
359
360
360
The ` SUGGESTION ` kind is used for specifying what the expected replacement text
361
361
should be for a diagnostic suggestion.
362
+ The ` RAW ` kind can be used for matching on lines from non-structured output sometimes emitted
363
+ by the compiler instead of or in addition to structured json.
362
364
363
365
` ERROR ` and ` WARN ` kinds are required to be exhaustively covered by line annotations
364
366
` //~ ` by default.
You can’t perform that action at this time.
0 commit comments