diff options
| author | bors <bors@rust-lang.org> | 2024-07-06 02:48:17 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-07-06 02:48:17 +0000 |
| commit | 51917e2e69702e5752bce6a4f3bfd285d0f4ae39 (patch) | |
| tree | 6e2e33eb455e26cfc5bb79c600069c1ecfd7805e /tests/ui/parser | |
| parent | 5c08cc765af9975d4b176f7a377bbf927791e20d (diff) | |
| parent | b73a79090473f64aa55822eed523620f09a5200b (diff) | |
Auto merge of #127403 - compiler-errors:rollup-x2yb5t0, r=compiler-errors
Rollup of 8 pull requests Successful merges: - #123600 (impl PathBuf::add_extension and Path::with_added_extension) - #127107 (Improve dead code analysis) - #127221 (Improve well known value check-cfg diagnostic for the standard library) - #127333 (Split `SolverDelegate` back out from `InferCtxtLike`) - #127363 (Improve readability of some fmt code examples) - #127366 (Use `ControlFlow` results for visitors that are only looking for a single value) - #127368 (Added dots at the sentence ends of rustc AST doc) - #127393 (Remove clubby789 from review rotation) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'tests/ui/parser')
| -rw-r--r-- | tests/ui/parser/issues/issue-105366.fixed | 1 | ||||
| -rw-r--r-- | tests/ui/parser/issues/issue-105366.rs | 1 | ||||
| -rw-r--r-- | tests/ui/parser/issues/issue-105366.stderr | 2 |
3 files changed, 3 insertions, 1 deletions
diff --git a/tests/ui/parser/issues/issue-105366.fixed b/tests/ui/parser/issues/issue-105366.fixed index 7157b647524..95419dc07f2 100644 --- a/tests/ui/parser/issues/issue-105366.fixed +++ b/tests/ui/parser/issues/issue-105366.fixed @@ -1,5 +1,6 @@ //@ run-rustfix +#[allow(dead_code)] struct Foo; impl From<i32> for Foo { diff --git a/tests/ui/parser/issues/issue-105366.rs b/tests/ui/parser/issues/issue-105366.rs index dc3cb8b343d..3278b737991 100644 --- a/tests/ui/parser/issues/issue-105366.rs +++ b/tests/ui/parser/issues/issue-105366.rs @@ -1,5 +1,6 @@ //@ run-rustfix +#[allow(dead_code)] struct Foo; fn From<i32> for Foo { diff --git a/tests/ui/parser/issues/issue-105366.stderr b/tests/ui/parser/issues/issue-105366.stderr index 18c04dfaf20..195305a2ec8 100644 --- a/tests/ui/parser/issues/issue-105366.stderr +++ b/tests/ui/parser/issues/issue-105366.stderr @@ -1,5 +1,5 @@ error: you might have meant to write `impl` instead of `fn` - --> $DIR/issue-105366.rs:5:1 + --> $DIR/issue-105366.rs:6:1 | LL | fn From<i32> for Foo { | ^^ |
