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
May be similar to #11450, but maybe not. Running on Arch Linux, pulled rust master today.
use std::num::sqrt;structVec2{x:f32,y:f32,}implVec2{fnnew(x:f32,y:f32) -> Vec2{Vec2{x: x,y: y}}fnnormalized(&self) -> Vec2{self / self.length()}fnlength(&self) -> f32{sqrt(self.length_squared())}fnlength_squared(&self) -> f32{self.x*self.x +
self.y*self.y}}implDiv<f32,Vec2>forVec2{fndiv(&self,scalar:f32) -> Vec2{let inverse = 1.0f32 / scalar;Vec2{x:self.x* inverse,y:self.y* inverse,}}}#[cfg(test)]mod tests {usesuper::Vec2;#[test]fntest_length(){let v = Vec2::new(3,4);let len = v.length();assert!(len > 0.49 && len < 0.51);}}
[127] dg@dg-devbox> rustc vector-min.rs --test
vector-min.rs:14:16: 14:29 error: internal compiler error: no ref
This message reflects a bug in the Rust compiler.
We would appreciate a bug report: http://static.rust-lang.org/doc/master/complement-bugreport.html
vector-min.rs:14 self / self.length()
[`case_sensitive_file_extension_comparisons`]: Don't trigger on digits-only extensions
If we find a file extension check with only digits (`.123`), do not trigger `case_sensitive_file_extension_comparisons`.
Fixesrust-lang#12252
---
*Please write a short comment explaining your change (or "none" for internal only changes)*
changelog: [`case_sensitive_file_extension_comparisons`]: Don't trigger on digits-only extensions
May be similar to #11450, but maybe not. Running on Arch Linux, pulled rust master today.
The text was updated successfully, but these errors were encountered: