Skip to content

Commit b47e961

Browse files
author
Paolo Tranquilli
committed
Rust: fix MatchExpr.getExpr renaming
1 parent 261e0a1 commit b47e961

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

rust/ql/lib/codeql/rust/elements/internal/MatchExprImpl.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module Impl {
2929
*/
3030
class MatchExpr extends Generated::MatchExpr {
3131
override string toString() {
32-
result = "match " + this.getExpr().toAbbreviatedString() + " { ... }"
32+
result = "match " + this.getMatchedExpr().toAbbreviatedString() + " { ... }"
3333
}
3434

3535
/**
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
| gen_match_expr.rs:5:5:8:5 | match x { ... } | getNumberOfAttrs: | 0 | hasMatched: | yes | hasMatchArmList: | yes |
2-
| gen_match_expr.rs:9:5:12:5 | match x { ... } | getNumberOfAttrs: | 0 | hasMatched: | yes | hasMatchArmList: | yes |
1+
| gen_match_expr.rs:5:5:8:5 | match x { ... } | getNumberOfAttrs: | 0 | hasMatchedExpr: | yes | hasMatchArmList: | yes |
2+
| gen_match_expr.rs:9:5:12:5 | match x { ... } | getNumberOfAttrs: | 0 | hasMatchedExpr: | yes | hasMatchArmList: | yes |
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
| gen_match_expr.rs:5:5:8:5 | match x { ... } | gen_match_expr.rs:5:11:5:11 | x |
2+
| gen_match_expr.rs:9:5:12:5 | match x { ... } | gen_match_expr.rs:9:11:9:11 | x |

0 commit comments

Comments
 (0)