File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -808,6 +808,7 @@ fn get_string_representation(expr: &ast::Expr) -> Option<String> {
808
808
ast:: Expr :: PathExpr ( path_expr) => Some ( path_expr. path ( ) ?. segment ( ) ?. to_string ( ) ) ,
809
809
ast:: Expr :: PrefixExpr ( prefix_expr) => get_string_representation ( & prefix_expr. expr ( ) ?) ,
810
810
ast:: Expr :: RefExpr ( ref_expr) => get_string_representation ( & ref_expr. expr ( ) ?) ,
811
+ ast:: Expr :: CastExpr ( cast_expr) => get_string_representation ( & cast_expr. expr ( ) ?) ,
811
812
_ => None ,
812
813
}
813
814
}
@@ -1173,6 +1174,7 @@ fn main() {
1173
1174
1174
1175
let param = 0;
1175
1176
foo(param);
1177
+ foo(param as _);
1176
1178
let param_end = 0;
1177
1179
foo(param_end);
1178
1180
let start_param = 0;
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ fn integrated_highlighting_benchmark() {
31
31
32
32
// Load rust-analyzer itself.
33
33
let workspace_to_load = project_root ( ) ;
34
- let file = "./crates/ide_db /src/apply_change.rs" ;
34
+ let file = "./crates/ide-db /src/apply_change.rs" ;
35
35
36
36
let cargo_config = CargoConfig :: default ( ) ;
37
37
let load_cargo_config = LoadCargoConfig {
You can’t perform that action at this time.
0 commit comments