Commit 4b46617
authored
Use IndexMap for mounts and validate duplicates [Namespaces Part 2] (#5062)
# Description of Changes
- Replace ModuleDef `mounts` type with IndexMap rather than Vec to
explicitly require name uniqueness
- Validate mount name uniqueness
# API and ABI breaking changes
No
# Expected complexity level and risk
2 - Fairly simple change to new (as of yet unused) module def type
# Testing
- [ ] Added a test to check that the duplicate name check is working
correctly1 parent d3b4a96 commit 4b46617
3 files changed
Lines changed: 45 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
| 156 | + | |
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
| 174 | + | |
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
274 | | - | |
275 | | - | |
| 274 | + | |
| 275 | + | |
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
| |||
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
305 | 320 | | |
306 | 321 | | |
307 | 322 | | |
| |||
907 | 922 | | |
908 | 923 | | |
909 | 924 | | |
| 925 | + | |
910 | 926 | | |
911 | 927 | | |
912 | 928 | | |
| |||
1299 | 1315 | | |
1300 | 1316 | | |
1301 | 1317 | | |
1302 | | - | |
1303 | | - | |
| 1318 | + | |
| 1319 | + | |
1304 | 1320 | | |
1305 | 1321 | | |
1306 | 1322 | | |
| |||
1319 | 1335 | | |
1320 | 1336 | | |
1321 | 1337 | | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
| 1348 | + | |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
| 1353 | + | |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
| 1358 | + | |
| 1359 | + | |
1322 | 1360 | | |
1323 | 1361 | | |
1324 | 1362 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
| 169 | + | |
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| |||
0 commit comments