clawchain/solar/crates/sema/CHANGELOG.md

14 KiB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

0.1.8

Bug Fixes

  • [sema] Remap Sources::file_to_id when sorting (#548)
  • [sema] Do not expose mutable Session access while entered (#542)
  • [sema] Peel parens when lowering call args (#495)

Features

  • [ast] Spanned optional commasep elements (#543)
  • Add ItemId::as_struct (#544)
  • [sema] Allow delaying/manual import resolution (#531)
  • [sema] Add sources getters (#528)
  • Checks on upper bounds of contract storage sizes (#169)
  • [sema] Add validation for assembly memory-safe flags (#263)

Miscellaneous Tasks

  • Add some traits to AstPath (#549)
  • Simplify pointer projection (#541)
  • Remove feature(doc_auto_cfg) (#540)
  • [sema] Simplify perform_imports (#530)
  • [sema] Fix parse dbg log (#527)

Performance

  • [ast] Use ThinSlice (#546)
  • [sema] Pre-compute topo_sort map (#533)
  • [sema] Use a map in AST Sources (#535)

Styling

  • Implement fmt::Debug for more types (#537)

Testing

  • Add unit test and debug assertion for sources inconsistency (#550)
  • Track node sizes (#497)

0.1.7

Bug Fixes

  • [sema] Handle linearization failure fallout (#472)

Features

  • [sema] Add Compiler::stage getter (#490)
  • Diagnostic suggestions (#474)
  • Bump to annotate-snippets 0.12, diagnostic tweaks (#465)
  • [sema] Add Compiler::enter{,_mut}_sequential (#457)

Miscellaneous Tasks

  • Improve 'parsed' debug log (#489)
  • Use json_type to sort ABIs (#456)
  • Move VERSION to config::version::SEMVER_VERSION and log it (#454)
  • Hide more source map implementation details (#450)
  • Chore!(data-structures): remove aliases in sync re-exports (#452)
  • [meta] Update solidity links (#448)
  • Make all features reachable from meta crate (#444)

Performance

  • [interface] Cache thread pool inside of session (#458)

0.1.6

Bug Fixes

  • Error on dummy instead of empty args (#407)
  • OnDrop drops, rename to DropGuard (#399)

Features

  • Add getters for source by file name (path) (#442)
  • [interface] Add FileLoader abstraction for fs/io (#438)
  • Implement base_path, streamline creating pcx (#436)
  • Allow session mutable access (#435)
  • Make Literals implement Copy (#414)
  • Add Compiler (#397)
  • [sema] Add helper methods to Function (#385)

Miscellaneous Tasks

  • Downgrade some debug spans to trace (#412)
  • Abstract implementation of Declarations (#410)
  • Remove query tracing (#406)
  • Clean up contract inheritance linearization (#405)

Other

  • Enforce typos (#423)

Performance

  • Load input source files in parallel (#429)
  • [sema] Better parallel parser scheduling (#428)
  • Pool symbol resolver scopes, refactor (#413)
  • [sema] Add some reserve calls (#411)
  • [sema] Use Cell<usize> in lowering (#408)

0.1.5

Bug Fixes

  • Visit modifiers in hir visitor (#373)

Dependencies

  • Bump to edition 2024, MSRV 1.88 (#375)
  • [deps] Weekly cargo update (#351)

Features

  • Resolve ctor base args (#322)
  • Add span visitor debug tool (#355)

Miscellaneous Tasks

  • Use Option in the AST (#374)
  • Fn header spans (#371)
  • Misc cleanup, util methods (#367)
  • Add span to TryCatchClause (#364)
  • [parser] Move unescaping from lexer to parser (#360)

0.1.4

Bug Fixes

  • [sema] Don't warn 3628 if no interface functions (#330)

Features

  • [sema] Implement receive function checks (#321)
  • [sema] Display more types, add Ty::display (#328)
  • Add span in FunctionHeader (#318)
  • [ast] Add spans to blocks (#314)
  • Typecheck for external type clashes (#312)

0.1.3

Bug Fixes

  • [sema] Declare selfdestruct builtin (#297)
  • [sema] Correct variable declaration scopes (#300)
  • Invalid underscores check (#281)

Features

  • Warn when payable fallback function found but no receive function (#170)
  • Literal checks (#287)
  • [ast] Store concatenated string literals (#266)
  • [ast] Add span to CallArgs (#265)
  • Add CompilerStage::ParsedAndImported (#259)

Miscellaneous Tasks

  • Shorter Debug impls (#291)
  • Misc map cleanups (#277)
  • Add some more non_exhaustive (#261)
  • Tweak tracing events (#255)
  • Revert extra changelog

0.1.2

Bug Fixes

  • Hir call visiting (#250)
  • Public transient assert (#248)
  • [parser] Glob imports require an alias (#245)
  • Point resolution errors to the import string (#244)
  • Unsound transmute (#239)
  • Variable getter functions are external (#202)
  • Error when func type has named return param (#173)
  • Don't check placeholders in virtual modifiers (#201)
  • Correctly resolve try/catch scopes (#200)
  • Correctly evaluate public constants (#187)
  • Allow storage in modifiers (#185)

Dependencies

  • Bump solidity submodule to 0.8.29 (#230)
  • [deps] Weekly cargo update (#225)

Features

  • Align input options with solc, implement remapping context (#238)
  • Refactor FileResolver to allow custom current_dir (#235)
  • [hir] Expose hir from parsing context (#210)
  • Parse storage layout specifiers (#232)
  • Make current_dir configurable (#231)
  • Implement minimal HIR visitor (#195)

0.1.1

Bug Fixes

  • Display order in AST stats (#180)
  • Reduce width of subnode name in ast-stats (#157)
  • Exclude arrays from mapping getter returns (#148)
  • Properly handle recursive types (#133)
  • Validate placeholder is within modifier (#132)

Documentation

Features

  • Add some more Span utils (#179)
  • Unify CLI and Session options (#176)
  • Check placeholders inside unchecked blocks (#172)
  • Library requirements syntax checker (#168)
  • Set up codspeed (#167)
  • Underscores and literals validation (#165)
  • Receive function validation (#166)
  • Func visibility checks for free functions (#163)
  • Syntax checker for functions with modifiers (#164)
  • Variable declaration statements are not allowed as the body of loop (#158)
  • Validate functions with no visibility specified (#160)
  • Modifier definitions must have a placeholder (#159)
  • Add more methods to index types (#156)
  • Update to Rust 1.83 (#150)
  • Validate variable data locations (#149)
  • Make TyAbiPrinter public (#145)
  • Add some methods to CallArgs (#140)
  • Print AST statistics with -Zast-stats flag (#125)
  • Return ControlFlow from AST visitor methods (#115)

Miscellaneous Tasks

  • Add TyAbiPrinterMode (#147)
  • Mark TyKind as non_exhaustive (#146)
  • Use unimplemented! instead of todo! in eval.rs (#110)

Other

  • Initial AST validation for using-for (#119)
  • AST validate that a contract does not have a function with contract name (#117)
  • Validate num. variants in enum declaration (#120)
  • Better error for struct without any fields (#121)
  • AST validate unchecked nested blocks (#116)
  • AST validate check statement only in while/for loops (#111)

Refactor

  • Split Ty printers (#144)
  • Re-export ast::* internal module (#141)

Testing

  • Add some more tests (#122)

0.1.0

Initial release.