We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rust-analyzer version: v0.2.1048
rustc version: 1.60.0
relevant settings: none
The following code:
#[derive(Debug, PartialEq)] struct Rectangle { left: f32, top: f32, right: f32, bottom: f32, } impl Rectangle { pub fn new(left: f32, top: f32, right: f32, bottom: f32) -> Self { Self { left: left, top: top, right: right, bottom: bottom } } } #[derive(Debug, PartialEq)] struct Fragment { bounding_box: Option<Rectangle>, connection_order: Option<Vec<u32>>, } #[cfg(test)] mod tests { use super::*; #[test] fn it_works() { let fragment = Fragment { bounding_box: Some(Rectangle::new(0., 0., 1., 1.)), connection_order: Some(vec![1,2]), }; assert_eq!( fragment, Fragment { bounding_box: Some(Rectangle::new(0., 0., 1., 1.)), connection_order: Some(vec![1,2]) } ) } }
Yields the following highlighting in VS Code:
I expected the numbers inside the brackets on line 36 to be highlighted consistently, but they are not. The first is white and the second is red.
Changing line 35 to:
bounding_box: Some(Rectangle::new(0f32, 0f32, 1f32, 1f32)),
resolves the issue. The issue is also resolved by disabling Rust Analyzer.
The text was updated successfully, but these errors were encountered:
Auto merge of #12225 - Veykril:tmapfloats, r=Veykril
3a69bfd
internal: Add token mapping test for float literals cc #12216
I've reverted the offending PR in #12241
Sorry, something went wrong.
No branches or pull requests
rust-analyzer version: v0.2.1048
rustc version: 1.60.0
relevant settings: none
The following code:
Yields the following highlighting in VS Code:
I expected the numbers inside the brackets on line 36 to be highlighted consistently, but they are not. The first is white and the second is red.
Changing line 35 to:
resolves the issue. The issue is also resolved by disabling Rust Analyzer.
The text was updated successfully, but these errors were encountered: