Skip to content

Commit 634c6e9

Browse files
authored
Merge pull request #2374 from rust-lang/rustc-pull
Rustc pull update
2 parents 72a9e36 + 304af27 commit 634c6e9

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0c33fe2c3d3eecadd17a84b110bb067288a64f1c
1+
7e552b46af72df390ed233b58a7f51650515b2a8

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)