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
This would let non-rustpkg tools have an easier time installing artifacts into a rustpkg workspace just by setting the installation prefix and not changing all the installation directories manually. E.g. in an Autoconf or CMake based system you'd simply do:
Right now you'd have to do something like this instead:
./configure --bindir rustpkg_workspace/bin/<build_triple> --libdir rustpkg_workspace/lib/<build_triple>
# CMake doesn't have an option to do this by default
Which is somewhat less convenient. There's still a question of where to obtain a rustc compatible target triple, but it's a separate issue.
Along the same lines, the default rustc search path could be modified to look for <build_triple>/lib instead of lib/<build_triple>.
The text was updated successfully, but these errors were encountered:
[iter_overeager_cloned]: detect `.cloned().filter()` and `.cloned().find()`
changelog: [`iter_overeager_cloned`]: detect `.cloned().filter()` and `.cloned().find()`
Key idea:
```
// before
iter.cloned().filter(|x| unimplemented!() )
// after
iter.filter(|&x| unimplemented!() ).cloned()
// before
iter.cloned().filter( foo )
// after
// notice `iter` must be `Iterator<Item= &T>` (callee of `cloned()`)
// so the parameter in the closure of `filter` must be `&&T`
// so the deref is safe
iter.filter(|&x| foo(x) ).cloned()
```
This would let non-rustpkg tools have an easier time installing artifacts into a rustpkg workspace just by setting the installation prefix and not changing all the installation directories manually. E.g. in an Autoconf or CMake based system you'd simply do:
Right now you'd have to do something like this instead:
Which is somewhat less convenient. There's still a question of where to obtain a rustc compatible target triple, but it's a separate issue.
Along the same lines, the default rustc search path could be modified to look for
<build_triple>/lib
instead oflib/<build_triple>
.The text was updated successfully, but these errors were encountered: