By default, we don't want contextful strings and we almost always want contextless strings. To this end, we make taking a contextful string a very explicit operation under `to_contextful_str` and we implement manually the `to_str` cast which requires a `if !s.has_context()` guard that the macro cannot cover. Change-Id: I7aae8e57a7d73e547e62b1edb0b1cc7e8c0c69b6 Reviewed-on: https://cl.tvl.fyi/c/depot/+/10425 Autosubmit: raitobezarius <tvl@lahfa.xyz> Reviewed-by: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI |
||
|---|---|---|
| .. | ||
| attrs | ||
| arbitrary.rs | ||
| attrs.rs | ||
| builtin.rs | ||
| function.rs | ||
| json.rs | ||
| list.rs | ||
| mod.rs | ||
| path.rs | ||
| string.rs | ||
| thunk.rs | ||