Skip to content

Commit d7a91f0

Browse files
authored
Rollup merge of rust-lang#111239 - TaKO8Ki:fix-111232, r=compiler-errors
Remove unnecessary attribute from a diagnostic Fixes rust-lang#111232 ref: rust-lang@06ff310
2 parents dedc891 + 0a64dac commit d7a91f0

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed

compiler/rustc_hir_analysis/src/errors.rs

-1
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,6 @@ pub enum ImplNotMarkedDefault {
657657
#[note]
658658
Err {
659659
#[primary_span]
660-
#[label]
661660
span: Span,
662661
cname: Symbol,
663662
ident: Symbol,
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#![feature(min_specialization)]
2+
3+
struct S;
4+
5+
impl From<S> for S {
6+
fn from(s: S) -> S { //~ ERROR `from` specializes an item from a parent `impl`, but that item is not marked `default`
7+
s
8+
}
9+
}
10+
11+
fn main() {}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
error[E0520]: `from` specializes an item from a parent `impl`, but that item is not marked `default`
2+
--> $DIR/issue-111232.rs:6:5
3+
|
4+
LL | fn from(s: S) -> S {
5+
| ^^^^^^^^^^^^^^^^^^
6+
|
7+
= note: parent implementation is in crate `core`
8+
9+
error: aborting due to previous error
10+
11+
For more information about this error, try `rustc --explain E0520`.

0 commit comments

Comments
 (0)