Skip to content

Commit 2d0dffa

Browse files
committed
---
yaml --- r: 276991 b: refs/heads/try c: 69095bb h: refs/heads/master i: 276989: fab8e3e 276987: 7e96cad 276983: b0487db 276975: 69c3602 276959: fddb4d4 276927: 447ae1e 276863: 996e7a6 276735: c449fb3 276479: 1837f60
1 parent 3d2407b commit 2d0dffa

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 6dbb0e86aec11050480beb76eade6fb805010ba7
33
refs/heads/snap-stage3: 235d77457d80b549dad3ac36d94f235208a1eafb
4-
refs/heads/try: 4805e1291af490b6c76f49ee241ac9f0bc0ceba4
4+
refs/heads/try: 69095bb02393b861c062fa80cde717e9eb7b2d29
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
77
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try/src/librustc_typeck/diagnostics.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3651,23 +3651,23 @@ specialized further. Erroneous code example:
36513651
```compile_fail
36523652
#![feature(specialization)]
36533653
3654-
trait SpaceLama {
3654+
trait SpaceLlama {
36553655
fn fly(&self);
36563656
}
36573657
36583658
// applies to all T
3659-
impl<T> SpaceLama for T {
3659+
impl<T> SpaceLlama for T {
36603660
default fn fly(&self) {}
36613661
}
36623662
36633663
// non-default impl
36643664
// applies to all `Clone` T and overrides the previous impl
3665-
impl<T: Clone> SpaceLama for T {
3665+
impl<T: Clone> SpaceLlama for T {
36663666
fn fly(&self) {}
36673667
}
36683668
36693669
// since `i32` is clone, this conflicts with the previous implementation
3670-
impl SpaceLama for i32 {
3670+
impl SpaceLlama for i32 {
36713671
default fn fly(&self) {}
36723672
// error: item `fly` is provided by an `impl` that specializes
36733673
// another, but the item in the parent `impl` is not marked
@@ -3684,23 +3684,23 @@ Example:
36843684
```
36853685
#![feature(specialization)]
36863686
3687-
trait SpaceLama {
3687+
trait SpaceLlama {
36883688
fn fly(&self);
36893689
}
36903690
36913691
// applies to all T
3692-
impl<T> SpaceLama for T {
3692+
impl<T> SpaceLlama for T {
36933693
default fn fly(&self) {} // This is a parent implementation.
36943694
}
36953695
36963696
// applies to all `Clone` T; overrides the previous impl
3697-
impl<T: Clone> SpaceLama for T {
3697+
impl<T: Clone> SpaceLlama for T {
36983698
default fn fly(&self) {} // This is a parent implementation but was
36993699
// previously not a default one, causing the error
37003700
}
37013701
37023702
// applies to i32, overrides the previous two impls
3703-
impl SpaceLama for i32 {
3703+
impl SpaceLlama for i32 {
37043704
fn fly(&self) {} // And now that's ok!
37053705
}
37063706
```

0 commit comments

Comments
 (0)