{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreib4kdt7zpyejh7r6cyivrdkivrkoquhpjkgk7k3mmqk54cyq5fihy",
    "uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3mgqn3c62wsi2"
  },
  "path": "/t/stop-including-string-content-in-index-panics/24067#post_2",
  "publishedAt": "2026-03-10T17:46:30.000Z",
  "site": "https://internals.rust-lang.org",
  "tags": [
    "rust-lang.github.io",
    "char_indices - Clippy Lints"
  ],
  "textContent": "ConradIrwin:\n\n> or forbid indexing into a string - doesn't seem tenable\n\nYou should be able to ban slicing with clippy:\n\nrust-lang.github.io\n\n### char_indices - Clippy Lints\n\nChecks for usage of items through absolute paths, like std::env::current_dir. | A collection of lints to catch common mistakes and improve your Rust code.",
  "title": "Stop including string content in index panics?"
}