You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rhai depends on smartstring which contains a regression that breaks std::string::String in projects depending on smartstring and by extend rhai. bodil/smartstring#7
fnmain(){let a = "Hello ".to_string();let b = "World!".to_string();let c = a + &b;// Breaks hereprintln!("{c}");}
This code works when not depending on rhai or smartstring.
When inserting use smartstring or use rhai it breaks compilation with this error:
error[E0277]: cannot add `&String` to `String`
--> src/main.rs:5:15
|
5 | let c = a + &b;
| ^ no implementation for `String + &String`
|
= help: the trait `Add<&String>` is not implemented for `String`
= help: the following other types implement trait `Add<Rhs>`:
<String as Add<&str>>
<String as Add<smartstring::SmartString<Mode>>>
The text was updated successfully, but these errors were encountered:
DSeeLP
added a commit
to authentra/authentra
that referenced
this issue
Feb 17, 2023
Rhai depends on smartstring which contains a regression that breaks std::string::String in projects depending on smartstring and by extend rhai.
bodil/smartstring#7
This code works when not depending on rhai or smartstring.
When inserting
use smartstring
oruse rhai
it breaks compilation with this error:The text was updated successfully, but these errors were encountered: