Newshot

Release: Roto v0.14.0

Original text(via Lobsters)

Roto version 0.14.0 is now available on crates.io! This is mostly a bugfix release and most users should be able to upgrade without any problems. The only breaking change is around List::contains and List::index when they are used from Rust.

For this release, I’d like to thank sha90w and @algernon in particular for both reporting and fixing many issues!

As always you can find the release in the following places:

You can find the full list of changes below!

Language

Added

  • Added the List.clear and List.remove methods. (#500)

Bug fixes

  • Report an error instead of crashing when trying to assign to a constant. Thanks, @sha90w! (#477)
  • The lexer now properly handles multi-byte characters in all places. Thanks, @sha90w! (#482)
  • Fix parsing of char and String literals at the end of input. This issue did not affect Roto in its current state, but enables future work. Thanks, @sha90w! (#488)
  • Fix the module name of the pkg.roto file of a dependency, which interfered with the pkg.roto of the main package. (#485)
  • Fix panics in cases where an error needs to display a hint in another file than where the error occurred. Thanks, @sha90w! (#505)
  • Ensure that labels generated by the conversion to MIR are always unique in a function. This didn’t lead to any known problems, but is generally good practice. (#507)

Crate

Breaking Changes

  • Fix soundness issue and incorrect behaviour of List::contains and List::index. These functions took their arguments by reference, but implementing the correct behaviour required that they take it by value. (#501)

Added

  • Added Blob::get_functions_by_signature to get all the functions in a Blob that match a given signature. Thanks, @algernon! (#494)
  • Make FunctionRetrievalError and TypeMismatch public. Thanks, @algernon! (#503)

Bug fixes

  • Fix DynVal being used in combination with vtables in the library! macro. Thanks, @sha90w! (#488)
  • Filter out generated functions from the hints generated by Blob::get_function. Thanks, @algernon! (#496)
  • Fix extracting tests from a Blob with tests in a dependency. (#499)
  • Fix a panic when displaying symbols that are not in a package, such as registered items. This panic was also triggered when such a symbol was used in the signature of an extracted function. (#497)

Documentation

  • The manual has a new look and has been improved in a few places. (#480)

The text above was extracted automatically from the source page and may miss images, tables or code blocks. The original is authoritative.

Published by Lobsters
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗