about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2024-08-23 12:32:15 +0200
committerGitHub <noreply@github.com>2024-08-23 12:32:15 +0200
commit26672c93d5417e9760190cf3777459332060a9c1 (patch)
tree4060fa6cd01440c763d3df17321f702d46d0da2e /compiler/rustc_pattern_analysis/src
parent724f612be8e2216a35d5ff5d193ba4508f892bf0 (diff)
parentdbad7581348d71822573e906c165bd08c366f196 (diff)
downloadrust-26672c93d5417e9760190cf3777459332060a9c1.tar.gz
rust-26672c93d5417e9760190cf3777459332060a9c1.zip
Rollup merge of #129276 - eduardosm:stabilize-char_indices_offset, r=Amanieu
Stabilize feature `char_indices_offset`

Stabilized API:

```rust
impl CharIndices<'_> {
    pub fn offset(&self) -> usize;
}
```

Tracking issue: https://github.com/rust-lang/rust/issues/83871

Closes https://github.com/rust-lang/rust/issues/83871

I also attempted to improved the documentation to make it more clear that it returns the offset of the character that will be returned by the next call to `next()`.
Diffstat (limited to 'compiler/rustc_pattern_analysis/src')
0 files changed, 0 insertions, 0 deletions