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`]:
148148
149149``` rust,ignore
150150let mut results = MyAnalysis::new()
151- .into_engine(tcx, body, def_id)
152- .iterate_to_fixpoint()
151+ .iterate_to_fixpoint(tcx, body, None);
153152 .into_results_cursor(body);
154153
155154// 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.
344344
345345Only use ` error-pattern ` if none of the above works.
346346
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.
349348
350349### Diagnostic kinds (error levels)
351350
@@ -356,9 +355,12 @@ The diagnostic kinds that you can have are:
356355- ` NOTE `
357356- ` HELP `
358357- ` SUGGESTION `
358+ - ` RAW `
359359
360360The ` SUGGESTION ` kind is used for specifying what the expected replacement text
361361should 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.
362364
363365` ERROR ` and ` WARN ` kinds are required to be exhaustively covered by line annotations
364366` //~ ` by default.
You can’t perform that action at this time.
0 commit comments