v0.39.0
What's Changed
- ci: extract out verify_tags step from publish job into its own job by @bingcicle in #4496
- Run
cargo update
by @sdankel in #4499 - Fixes
star_import_with_reexports
. by @esdrubal in #4498 - Add block_header_hash() function by @nfurfaro in #4493
- Adds support for where clauses in impl self methods. by @esdrubal in #3836
- Added to msg_sender to prelude and removed from swayfiles by @calldelegation in #4483
- Implement module privacy rules by @IGI-111 in #4474
- Add Option and Result variants in prelude by @IGI-111 in #4504
- Where clauses on
impl
blocks by @emilyaherbert in #3731 - Fix parser panic on empty file by @IGI-111 in #4507
- Remove leftover dbg!s by @AlicanC in #4509
- Fix underflow in
StorageVec
'sinsert
by @IGI-111 in #4508 - Fix
--finalized-asm
output and docs by @IGI-111 in #4510 - add constants page to summary by @sarahschwartz in #4514
- Allow more than 12b (up to 18b now) stack offsets for local initialization by @vaivaswatha in #4515
- Inlining heuristic: return value demotion adds arg by @vaivaswatha in #4518
- Allow loops in predicates by @IGI-111 in #4526
- Fix ordering bug in
U256
by @IGI-111 in #4527 - docs: add section comments for devrel by @sarahschwartz in #4531
- chore: remove leftover
build.sh
by @iqdecay in #4529 - chore: rename
fn_args_layout
tofn_params_layout
inrustfmt.toml
by @kayagokalp in #4530 - const-demotion locals must be loaded in same basic block as its use. by @vaivaswatha in #4534
- feat(
forc doc
): Addimpl_trait
representation toItemBody
by @eureka-cpu in #4389 - Fixes method application self mutability check. by @esdrubal in #4538
- Introduce unique
field_id
inStorageKey
by @IGI-111 in #4537 - Goto links for LSP hover by @sdankel in #4539
- Parse
__ptr[T]
and__slice[T]
by @AlicanC in #4522 - Fix
StorageVec
bugs with use offield_id
by @bitzoic in #4543 - Update
StorageBytes
to usefield_id
overslot
by @bitzoic in #4541 - feat(fmt): improve newline insertion when comments are in between leaf spans by @bingcicle in #4548
- Add links to hover documentation by @sdankel in #4532
- Implements where clauses for Structs and Enums. by @esdrubal in #4557
- Update
StorableSlice
function naming to match storage API by @bitzoic in #4562 - Use intrinsics for base integer operations by @IGI-111 in #4553
- Bump to 0.39.0 by @IGI-111 in #4568
Breaking changes
- Module privacy rules are changing to the ones described in RFC0008. The new behavior can be enabled with a flag. Code that doesn't respect the rules will still compile by default in this version. A warning will be emitted if the flag isn't enabled, and the new behavior should be made the default in the next version
- New reserved keywords:
__ptr
and__slice
StorableSlice
functions have been renamed to match the storage API- new intrinsics have been added in a way that breaks IR compatibility
Full Changelog: v0.38.0...v0.39.0