Make ~fn non-copyable, make &fn copyable, split barefn/closure types,
correct handling of moves for struct-record update. Part of #3678. Fixes #2828, #3904, #4719.
This commit is contained in:
parent
82d7396333
commit
a32498d846
187 changed files with 2065 additions and 2373 deletions
|
@ -76,7 +76,7 @@ pub impl BytePos: Sub<BytePos, BytePos> {
|
|||
}
|
||||
|
||||
pub impl BytePos: to_bytes::IterBytes {
|
||||
pure fn iter_bytes(&self, +lsb0: bool, f: to_bytes::Cb) {
|
||||
pure fn iter_bytes(&self, +lsb0: bool, &&f: to_bytes::Cb) {
|
||||
(**self).iter_bytes(lsb0, f)
|
||||
}
|
||||
}
|
||||
|
@ -99,7 +99,7 @@ pub impl CharPos: cmp::Ord {
|
|||
}
|
||||
|
||||
pub impl CharPos: to_bytes::IterBytes {
|
||||
pure fn iter_bytes(&self, +lsb0: bool, f: to_bytes::Cb) {
|
||||
pure fn iter_bytes(&self, +lsb0: bool, &&f: to_bytes::Cb) {
|
||||
(**self).iter_bytes(lsb0, f)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue