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
LLVM carries this all the way down to the IR after optimization, so it's not using optimal instructions for swapping when it can't infer an alignment after inlining.
The text was updated successfully, but these errors were encountered:
…lip1995
Refactor: arrange transmute lints
This PR arranges `transmute` lints so that they can be accessed more easily.
Basically, I followed the instruction described in rust-lang#6680 as to how to do the refactoring.
- `declare_clippy_lint!` and `impl LintPass` is placed in `transmute/mod.rs`
- Uitlity functions is placed in `transmute/utils.rs`
- Each lint function about `transmute` is moved into its own module, like `transmute/useless_transmute.rs`
For ease of review, I refactored step by step, keeping each commit small. For instance, all I did in
2451781 was to move `useless_transmute` into its own module.
---
changelog: Refactor `transmute.rs` file into `transmute` module.
LLVM carries this all the way down to the IR after optimization, so it's not using optimal instructions for swapping when it can't infer an alignment after inlining.
The text was updated successfully, but these errors were encountered: