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
Right now the compiler incorrectly infers that a trait like:
trait Foo {
fn get_foo(&self) -> &self/int;
}
must be region parameterized. This leads to various errors, for example using the Map trait. This will be a non-issue once the new region syntax is complete, because region parameterization will be explicit, but it's causing issues now. I've got a patch I was going to push as part of a larger pull request but due to the fact that I'm having trouble landing that big patch I am breaking it up into bits, and hence opening a separate issue for this.
The text was updated successfully, but these errors were encountered:
Update region inference for traits so that a method with explicit self doesn't incorrectly cause the entire trait to be tagged as being region-parameterized.
Fixes#5224.
r? @pcwalton
Detect usage of custom floating-point abs implementation
Closesrust-lang#5224
changelog: Enhance [`suboptimal_flops`] lint to detect manual implementations of the `abs` method
Right now the compiler incorrectly infers that a trait like:
must be region parameterized. This leads to various errors, for example using the
Map
trait. This will be a non-issue once the new region syntax is complete, because region parameterization will be explicit, but it's causing issues now. I've got a patch I was going to push as part of a larger pull request but due to the fact that I'm having trouble landing that big patch I am breaking it up into bits, and hence opening a separate issue for this.The text was updated successfully, but these errors were encountered: