Skip to content

Commit 58eb81f

Browse files
author
GHA CI
committed
Automatic deploy to GitHub Pages: 075996e
1 parent 0664863 commit 58eb81f

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

master/lints.json

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5393,7 +5393,7 @@
53935393
"id": "str_to_string",
53945394
"id_span": {
53955395
"path": "src/strings.rs",
5396-
"line": 338
5396+
"line": 374
53975397
},
53985398
"group": "restriction",
53995399
"level": "allow",
@@ -5449,7 +5449,7 @@
54495449
"id": "string_from_utf8_as_bytes",
54505450
"id_span": {
54515451
"path": "src/strings.rs",
5452-
"line": 194
5452+
"line": 230
54535453
},
54545454
"group": "complexity",
54555455
"level": "warn",
@@ -5473,11 +5473,25 @@
54735473
"applicability": "MachineApplicable"
54745474
}
54755475
},
5476+
{
5477+
"id": "string_slice",
5478+
"id_span": {
5479+
"path": "src/strings.rs",
5480+
"line": 128
5481+
},
5482+
"group": "restriction",
5483+
"level": "allow",
5484+
"docs": " ### What it does\nChecks for slice operations on strings\n\n### Why is this bad?\nUTF-8 characters span multiple bytes, and it is easy to inadvertently confuse character\ncounts and string indices. This may lead to panics, and should warrant some test cases\ncontaining wide UTF-8 characters. This lint is most useful in code that should avoid\npanics at all costs.\n\n### Known problems\nProbably lots of false positives. If an index comes from a known valid position (e.g.\nobtained via `char_indices` over the same string), it is totally OK.\n\n# Example\n```rust\n&\"Ölkanne\"[1..];\n```",
5485+
"applicability": {
5486+
"is_multi_part_suggestion": false,
5487+
"applicability": "Unresolved"
5488+
}
5489+
},
54765490
{
54775491
"id": "string_to_string",
54785492
"id_span": {
54795493
"path": "src/strings.rs",
5480-
"line": 387
5494+
"line": 423
54815495
},
54825496
"group": "restriction",
54835497
"level": "allow",

0 commit comments

Comments
 (0)