Skip to content

Commit 304af27

Browse files
author
The rustc-dev-guide Cronjob Bot
committed
Merge from rustc
2 parents acd63b2 + c6fe7c5 commit 304af27

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/mir/dataflow.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,7 @@ whereas this code uses [`ResultsCursor`]:
148148

149149
```rust,ignore
150150
let 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.

src/tests/ui.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,7 @@ For checking runtime output, `//@ check-run-results` may be preferable.
344344

345345
Only 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

360360
The `SUGGESTION` kind is used for specifying what the expected replacement text
361361
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.
362364

363365
`ERROR` and `WARN` kinds are required to be exhaustively covered by line annotations
364366
`//~` by default.

0 commit comments

Comments
 (0)