Skip to content

Commit 353d630

Browse files
committed
Rust: accept test changes
1 parent 0370291 commit 353d630

File tree

5 files changed

+34
-56
lines changed

5 files changed

+34
-56
lines changed

rust/ql/test/extractor-tests/crate_graph/crates.expected

Lines changed: 29 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
#-----| Crate(alloc@0.0.0)
22
#-----| core -> Crate(core@0.0.0)
33
#-----| compiler_builtins -> Crate(compiler_builtins@0.1.146)
4-
#-----| rand -> Crate(rand@0.9.0)
4+
#-----| rand -> Crate(rand@0.9.1)
55
#-----| rand_xorshift -> Crate(rand_xorshift@0.4.0)
66

7-
#-----| Crate(allocator_api2@0.2.21)
8-
97
#-----| Crate(block_buffer@0.10.4)
108
#-----| proc_macro -> Crate(proc_macro@0.0.0)
119
#-----| alloc -> Crate(alloc@0.0.0)
@@ -14,17 +12,16 @@
1412
#-----| test -> Crate(test@0.0.0)
1513
#-----| generic_array -> Crate(generic_array@0.14.7)
1614

17-
#-----| Crate(cfg_if@1.0.0)
18-
#-----| core -> Crate(core@0.0.0)
19-
#-----| compiler_builtins -> Crate(compiler_builtins@0.1.146)
20-
2115
#-----| Crate(cfg_if@1.0.1)
2216
#-----| proc_macro -> Crate(proc_macro@0.0.0)
2317
#-----| alloc -> Crate(alloc@0.0.0)
2418
#-----| core -> Crate(core@0.0.0)
2519
#-----| std -> Crate(std@0.0.0)
2620
#-----| test -> Crate(test@0.0.0)
2721

22+
#-----| Crate(cfg_if@1.0.1)
23+
#-----| core -> Crate(core@0.0.0)
24+
2825
#-----| Crate(compiler_builtins@0.1.146)
2926
#-----| core -> Crate(core@0.0.0)
3027

@@ -56,18 +53,16 @@
5653
#-----| test -> Crate(test@0.0.0)
5754
#-----| typenum -> Crate(typenum@1.18.0)
5855

59-
#-----| Crate(getopts@0.2.21)
56+
#-----| Crate(getopts@0.2.23)
6057
#-----| core -> Crate(core@0.0.0)
6158
#-----| std -> Crate(std@0.0.0)
62-
#-----| unicode_width -> Crate(unicode_width@0.1.14)
59+
#-----| unicode_width -> Crate(unicode_width@0.2.1)
6360

64-
#-----| Crate(hashbrown@0.15.2)
65-
#-----| allocator_api2 -> Crate(allocator_api2@0.2.21)
61+
#-----| Crate(hashbrown@0.15.4)
6662
#-----| alloc -> Crate(alloc@0.0.0)
6763
#-----| core -> Crate(core@0.0.0)
68-
#-----| compiler_builtins -> Crate(compiler_builtins@0.1.146)
6964

70-
#-----| Crate(libc@0.2.169)
65+
#-----| Crate(libc@0.2.174)
7166
#-----| rustc_std_workspace_core -> Crate(core@0.0.0)
7267

7368
main.rs:
@@ -100,46 +95,43 @@ main.rs:
10095
#-----| Crate(panic_abort@0.0.0)
10196
#-----| alloc -> Crate(alloc@0.0.0)
10297
#-----| core -> Crate(core@0.0.0)
98+
#-----| cfg_if -> Crate(cfg_if@1.0.1)
10399
#-----| compiler_builtins -> Crate(compiler_builtins@0.1.146)
104-
#-----| cfg_if -> Crate(cfg_if@1.0.0)
105-
#-----| libc -> Crate(libc@0.2.169)
100+
#-----| libc -> Crate(libc@0.2.174)
106101

107102
#-----| Crate(panic_unwind@0.0.0)
108103
#-----| alloc -> Crate(alloc@0.0.0)
109104
#-----| core -> Crate(core@0.0.0)
105+
#-----| cfg_if -> Crate(cfg_if@1.0.1)
110106
#-----| compiler_builtins -> Crate(compiler_builtins@0.1.146)
111-
#-----| cfg_if -> Crate(cfg_if@1.0.0)
112-
#-----| libc -> Crate(libc@0.2.169)
107+
#-----| libc -> Crate(libc@0.2.174)
113108
#-----| unwind -> Crate(unwind@0.0.0)
114109

115110
#-----| Crate(proc_macro@0.0.0)
116111
#-----| core -> Crate(core@0.0.0)
117112
#-----| std -> Crate(std@0.0.0)
118113

119-
#-----| Crate(rand@0.9.0)
120-
#-----| zerocopy -> Crate(zerocopy@0.8.17)
121-
#-----| rand_core -> Crate(rand_core@0.9.0)
114+
#-----| Crate(rand@0.9.1)
115+
#-----| rand_core -> Crate(rand_core@0.9.3)
122116

123-
#-----| Crate(rand_core@0.9.0)
124-
#-----| zerocopy -> Crate(zerocopy@0.8.17)
117+
#-----| Crate(rand_core@0.9.3)
125118

126119
#-----| Crate(rand_xorshift@0.4.0)
127-
#-----| rand_core -> Crate(rand_core@0.9.0)
120+
#-----| rand_core -> Crate(rand_core@0.9.3)
128121

129-
#-----| Crate(rustc_demangle@0.1.24)
122+
#-----| Crate(rustc_demangle@0.1.25)
130123
#-----| core -> Crate(core@0.0.0)
131-
#-----| compiler_builtins -> Crate(compiler_builtins@0.1.146)
132124

133125
#-----| Crate(std@0.0.0)
134126
#-----| alloc -> Crate(alloc@0.0.0)
135127
#-----| core -> Crate(core@0.0.0)
128+
#-----| cfg_if -> Crate(cfg_if@1.0.1)
136129
#-----| compiler_builtins -> Crate(compiler_builtins@0.1.146)
137-
#-----| cfg_if -> Crate(cfg_if@1.0.0)
138-
#-----| hashbrown -> Crate(hashbrown@0.15.2)
139-
#-----| libc -> Crate(libc@0.2.169)
140-
#-----| rand -> Crate(rand@0.9.0)
130+
#-----| hashbrown -> Crate(hashbrown@0.15.4)
131+
#-----| libc -> Crate(libc@0.2.174)
132+
#-----| rand -> Crate(rand@0.9.1)
141133
#-----| rand_xorshift -> Crate(rand_xorshift@0.4.0)
142-
#-----| rustc_demangle -> Crate(rustc_demangle@0.1.24)
134+
#-----| rustc_demangle -> Crate(rustc_demangle@0.1.25)
143135
#-----| panic_abort -> Crate(panic_abort@0.0.0)
144136
#-----| unwind -> Crate(unwind@0.0.0)
145137
#-----| panic_unwind -> Crate(panic_unwind@0.0.0)
@@ -148,15 +140,15 @@ main.rs:
148140
#-----| Crate(std_detect@0.1.5)
149141
#-----| alloc -> Crate(alloc@0.0.0)
150142
#-----| core -> Crate(core@0.0.0)
143+
#-----| cfg_if -> Crate(cfg_if@1.0.1)
151144
#-----| compiler_builtins -> Crate(compiler_builtins@0.1.146)
152-
#-----| cfg_if -> Crate(cfg_if@1.0.0)
153-
#-----| libc -> Crate(libc@0.2.169)
145+
#-----| libc -> Crate(libc@0.2.174)
154146

155147
#-----| Crate(test@0.0.0)
156148
#-----| core -> Crate(core@0.0.0)
157149
#-----| std -> Crate(std@0.0.0)
158-
#-----| getopts -> Crate(getopts@0.2.21)
159-
#-----| libc -> Crate(libc@0.2.169)
150+
#-----| getopts -> Crate(getopts@0.2.23)
151+
#-----| libc -> Crate(libc@0.2.174)
160152

161153
lib.rs:
162154
# 0| Crate(test@0.0.1)
@@ -175,22 +167,19 @@ lib.rs:
175167
#-----| std -> Crate(std@0.0.0)
176168
#-----| test -> Crate(test@0.0.0)
177169

178-
#-----| Crate(unicode_width@0.1.14)
170+
#-----| Crate(unicode_width@0.2.1)
179171
#-----| core -> Crate(core@0.0.0)
180172
#-----| std -> Crate(std@0.0.0)
181-
#-----| compiler_builtins -> Crate(compiler_builtins@0.1.146)
182173

183174
#-----| Crate(unwind@0.0.0)
184175
#-----| core -> Crate(core@0.0.0)
176+
#-----| cfg_if -> Crate(cfg_if@1.0.1)
185177
#-----| compiler_builtins -> Crate(compiler_builtins@0.1.146)
186-
#-----| cfg_if -> Crate(cfg_if@1.0.0)
187-
#-----| libc -> Crate(libc@0.2.169)
178+
#-----| libc -> Crate(libc@0.2.174)
188179

189180
#-----| Crate(version_check@0.9.5)
190181
#-----| proc_macro -> Crate(proc_macro@0.0.0)
191182
#-----| alloc -> Crate(alloc@0.0.0)
192183
#-----| core -> Crate(core@0.0.0)
193184
#-----| std -> Crate(std@0.0.0)
194185
#-----| test -> Crate(test@0.0.0)
195-
196-
#-----| Crate(zerocopy@0.8.17)

rust/ql/test/library-tests/path-resolution/path-resolution.expected

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -392,15 +392,15 @@ resolvePath
392392
| proc_macro.rs:5:25:5:35 | TokenStream | {EXTERNAL LOCATION} | struct TokenStream |
393393
| proc_macro.rs:5:44:5:54 | TokenStream | {EXTERNAL LOCATION} | struct TokenStream |
394394
| proc_macro.rs:5:60:5:70 | TokenStream | {EXTERNAL LOCATION} | struct TokenStream |
395-
| proc_macro.rs:6:16:6:18 | syn | {EXTERNAL LOCATION} | Crate(syn@2.0.103) |
396-
| proc_macro.rs:6:48:6:50 | syn | {EXTERNAL LOCATION} | Crate(syn@2.0.103) |
395+
| proc_macro.rs:6:16:6:18 | syn | {EXTERNAL LOCATION} | Crate(syn@2.0.104) |
396+
| proc_macro.rs:6:48:6:50 | syn | {EXTERNAL LOCATION} | Crate(syn@2.0.104) |
397397
| proc_macro.rs:6:48:6:58 | ...::LitStr | {EXTERNAL LOCATION} | struct LitStr |
398398
| proc_macro.rs:6:48:6:58 | ...::parse::<...> | {EXTERNAL LOCATION} | fn parse |
399-
| proc_macro.rs:7:19:7:21 | syn | {EXTERNAL LOCATION} | Crate(syn@2.0.103) |
400-
| proc_macro.rs:7:51:7:53 | syn | {EXTERNAL LOCATION} | Crate(syn@2.0.103) |
399+
| proc_macro.rs:7:19:7:21 | syn | {EXTERNAL LOCATION} | Crate(syn@2.0.104) |
400+
| proc_macro.rs:7:51:7:53 | syn | {EXTERNAL LOCATION} | Crate(syn@2.0.104) |
401401
| proc_macro.rs:7:51:7:61 | ...::ItemFn | {EXTERNAL LOCATION} | struct ItemFn |
402402
| proc_macro.rs:7:51:7:61 | ...::parse::<...> | {EXTERNAL LOCATION} | fn parse |
403-
| proc_macro.rs:8:21:8:23 | syn | {EXTERNAL LOCATION} | Crate(syn@2.0.103) |
403+
| proc_macro.rs:8:21:8:23 | syn | {EXTERNAL LOCATION} | Crate(syn@2.0.104) |
404404
| proc_macro.rs:8:21:8:30 | ...::Ident | {EXTERNAL LOCATION} | struct Ident |
405405
| proc_macro.rs:8:21:8:35 | ...::new | {EXTERNAL LOCATION} | fn new |
406406
testFailures
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
multipleCallTargets
22
| main.rs:85:19:85:40 | ...::from(...) |
33
| main.rs:102:19:102:40 | ...::from(...) |
4-
| main.rs:374:5:374:27 | ... .add_assign(...) |
5-
| main.rs:459:9:459:23 | z.add_assign(...) |

rust/ql/test/query-tests/security/CWE-770/CONSISTENCY/PathResolutionConsistency.expected

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
11
multipleCallTargets
2-
| main.rs:218:14:218:30 | ...::malloc(...) |
3-
| main.rs:219:13:219:27 | ...::malloc(...) |
4-
| main.rs:220:13:220:37 | ...::aligned_alloc(...) |
5-
| main.rs:221:13:221:37 | ...::aligned_alloc(...) |
6-
| main.rs:222:13:222:31 | ...::calloc(...) |
7-
| main.rs:223:13:223:55 | ...::calloc(...) |
8-
| main.rs:224:13:224:32 | ...::realloc(...) |
92
| main.rs:229:13:229:40 | ...::with_capacity(...) |
103
| main.rs:233:18:233:47 | ...::with_capacity(...) |
114
multiplePathResolutions

rust/ql/test/query-tests/security/CWE-825/CONSISTENCY/PathResolutionConsistency.expected

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
multipleCallTargets
2-
| deallocation.rs:106:16:106:32 | ...::malloc(...) |
3-
| deallocation.rs:112:3:112:41 | ...::free(...) |
42
| deallocation.rs:260:11:260:29 | ...::from(...) |
53
| deallocation.rs:261:11:261:29 | ...::from(...) |
64
| lifetime.rs:610:13:610:31 | ...::from(...) |

0 commit comments

Comments
 (0)