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
A-runtimeArea: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflowsE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
There are a few places in the runtime where it is nice to pass strings around to identify things, and many but not all the strings are known statically. Examples include failure messages, logging messages, task names, test names, condition and error messages.
Failure already does this using the FailureWithCause trait, which could be refactored into a single function over this string type. std::test does similar optimizations.
The text was updated successfully, but these errors were encountered:
Refactor casts lint
Ref: rust-lang#6724
Changes:
1. Separate the `casts` group from the `types` group.
2. Reorganize the lints of the `casts` group into their own modules.
Notes:
1. I didn't `fix` rust-lang#6874 in order to maintain this PR as small as possible.
---
changelog: none
flip1995
pushed a commit
to flip1995/rust
that referenced
this issue
Mar 25, 2021
replace span_lint with span_lint_and_sugg along with error message
fixes: rust-lang#6874
changelog: none
apologies if this may not be the most idiomatic way of doing it, any advice on changes (if any) would be greatly appreciated.
A-runtimeArea: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflowsE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
There are a few places in the runtime where it is nice to pass strings around to identify things, and many but not all the strings are known statically. Examples include failure messages, logging messages, task names, test names, condition and error messages.
Failure already does this using the
FailureWithCause
trait, which could be refactored into a single function over this string type.std::test
does similar optimizations.The text was updated successfully, but these errors were encountered: