File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
specialization/defaultimpl Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -657,7 +657,8 @@ impl MultiSpan {
657657 MultiSpan { primary_spans : vec ! [ primary_span] , span_labels : vec ! [ ] }
658658 }
659659
660- pub fn from_spans ( vec : Vec < Span > ) -> MultiSpan {
660+ pub fn from_spans ( mut vec : Vec < Span > ) -> MultiSpan {
661+ vec. sort ( ) ;
661662 MultiSpan { primary_spans : vec, span_labels : vec ! [ ] }
662663 }
663664
Original file line number Diff line number Diff line change @@ -25,13 +25,13 @@ LL | default impl !Send for Z {}
2525 | default because of this
2626
2727error[E0750]: negative impls cannot be default impls
28- --> $DIR/validation.rs:10:14
28+ --> $DIR/validation.rs:10:1
2929 |
3030LL | default impl !Send for Z {}
3131 | ^^^^^^^ ^
3232
3333error[E0750]: negative impls cannot be default impls
34- --> $DIR/validation.rs:14:14
34+ --> $DIR/validation.rs:14:1
3535 |
3636LL | default impl !Tr for S {}
3737 | ^^^^^^^ ^
Original file line number Diff line number Diff line change 11error[E0750]: negative impls cannot be default impls
2- --> $DIR/negative-default-impls.rs:8:14
2+ --> $DIR/negative-default-impls.rs:8:1
33 |
44LL | default impl !MyTrait for u32 {}
55 | ^^^^^^^ ^
You can’t perform that action at this time.
0 commit comments