sway/sway-lib-std/src
Cameron Carstens ada81db36f
Add mut keyword to append() in the Bytes type (#4110)
## Description

Added the `mut` keyword to `append()` in the `Bytes` type in the
standard library. This causes an internal compiler error for the
[`String`](https://github.com/FuelLabs/sway-libs/tree/master/libs/string)
type. https://github.com/FuelLabs/sway/issues/4109 should disallow both
the syntax and resolve the internal compiler error.

Closes #4108 

## Checklist

- [x] I have linked to any relevant issues.
- [x] I have commented my code, particularly in hard-to-understand
areas.
- [x] I have updated the documentation where relevant (API docs, the
reference, and the Sway book).
- [x] I have added tests that prove my fix is effective or that my
feature works.
- [x] I have added (or requested a maintainer to add) the necessary
`Breaking*` or `New Feature` labels where relevant.
- [x] I have done my best to ensure that my PR adheres to [the Fuel Labs
Code Review
Standards](https://github.com/FuelLabs/rfcs/blob/master/text/code-standards/external-contributors.md).
- [x] I have requested a review from the relevant team or maintainers.

Co-authored-by: bitzoic <cameron.carstens@fuel.sh>
2023-02-16 13:00:40 -05:00
..
vm Refactor doc strings in sway-lib-std (#3870) 2023-01-25 14:38:15 +11:00
address.sw Refactor doc strings in sway-lib-std (#3870) 2023-01-25 14:38:15 +11:00
alloc.sw Refactor doc strings in sway-lib-std (#3870) 2023-01-25 14:38:15 +11:00
assert.sw Add error code for assert (#3951) 2023-02-02 09:54:06 -05:00
auth.sw Add an assert_eq function to std::assert (#3912) 2023-01-27 14:21:39 -07:00
b256.sw Add a TryFrom trait (#3899) 2023-01-27 15:09:27 +00:00
b512.sw Refactor doc strings in sway-lib-std (#3870) 2023-01-25 14:38:15 +11:00
block.sw Refactor doc strings in sway-lib-std (#3870) 2023-01-25 14:38:15 +11:00
bytes.sw Add mut keyword to append() in the Bytes type (#4110) 2023-02-16 13:00:40 -05:00
call_frames.sw Refactor doc strings in sway-lib-std (#3870) 2023-01-25 14:38:15 +11:00
constants.sw Eliminate need for ~ in ~Foo::bar() (#3218) 2022-10-31 19:45:38 +00:00
context.sw Remove duplicate gas from std (#3588) 2022-12-13 13:52:53 -06:00
contract_id.sw Refactor doc strings in sway-lib-std (#3870) 2023-01-25 14:38:15 +11:00
convert.sw Add a TryFrom trait (#3899) 2023-01-27 15:09:27 +00:00
ecr.sw Flatten the stdlib (#3247) 2022-11-02 14:47:26 -04:00
error_signals.sw Add error code for assert (#3951) 2023-02-02 09:54:06 -05:00
external.sw Add raw_ptr type (#2828) 2022-10-25 12:34:11 +11:00
flags.sw Refactor doc strings in sway-lib-std (#3870) 2023-01-25 14:38:15 +11:00
hash.sw Refactor doc strings in sway-lib-std (#3870) 2023-01-25 14:38:15 +11:00
identity.sw Refactor doc strings in sway-lib-std (#3870) 2023-01-25 14:38:15 +11:00
inputs.sw Fuel Core v0.17.0 Upgrade (#3961) 2023-02-08 20:01:12 +11:00
intrinsics.sw Add std::alloc (#1979) 2022-06-15 15:46:37 +00:00
lib.sw Introduce a StorageBytes type in the standard library (#4001) 2023-02-08 14:33:23 -05:00
logging.sw Add logging::log & assert::assert_eq to prelude.sw (#3916) 2023-01-29 14:28:06 -07:00
low_level_call.sw Bytes: refactor & rename join to append (#3895) 2023-01-28 10:21:36 -05:00
math.sw Rename std::math::Exponentiate trait (#3919) 2023-01-30 01:20:04 +00:00
message.sw Format sway-lib-core and sway-lib-std (#3902) 2023-01-26 21:54:19 +00:00
option.sw Add a TryFrom trait (#3899) 2023-01-27 15:09:27 +00:00
outputs.sw Refactor doc strings in sway-lib-std (#3870) 2023-01-25 14:38:15 +11:00
prelude.sw Temporarily remove assert_eq from the standard library (#3962) 2023-02-01 06:21:14 -05:00
registers.sw Refactor doc strings in sway-lib-std (#3870) 2023-01-25 14:38:15 +11:00
result.sw Format sway-lib-core and sway-lib-std (#3902) 2023-01-26 21:54:19 +00:00
revert.sw Refactor doc strings in sway-lib-std (#3870) 2023-01-25 14:38:15 +11:00
storage.sw Introduce a StorageBytes type in the standard library (#4001) 2023-02-08 14:33:23 -05:00
token.sw Refactor doc strings in sway-lib-std (#3870) 2023-01-25 14:38:15 +11:00
tx.sw Refactor doc strings in sway-lib-std (#3870) 2023-01-25 14:38:15 +11:00
u128.sw Not trait implementation for U128 and U256 (#4077) 2023-02-15 20:44:11 +00:00
u256.sw Not trait implementation for U128 and U256 (#4077) 2023-02-15 20:44:11 +00:00
vec.sw Add an assert_eq function to std::assert (#3912) 2023-01-27 14:21:39 -07:00