diff options
| author | Laurențiu Nicola <lnicola@dend.ro> | 2023-07-12 20:51:20 +0300 |
|---|---|---|
| committer | Laurențiu Nicola <lnicola@dend.ro> | 2023-07-12 20:51:20 +0300 |
| commit | a2b159dcc6a3ad01900a5f733cd3a8b3bb51dd15 (patch) | |
| tree | 478efe388eed21499b3c759bf7aa8ffa5601a9d4 /lib | |
| parent | 75ac37f317269798da87d42738d79cade3a28ab9 (diff) | |
| download | rust-a2b159dcc6a3ad01900a5f733cd3a8b3bb51dd15.tar.gz rust-a2b159dcc6a3ad01900a5f733cd3a8b3bb51dd15.zip | |
Use a permalink to the SIMD line index code, and add a note on the GitHub API
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/line-index/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/line-index/src/lib.rs b/lib/line-index/src/lib.rs index 58db93a5890..03371c9c87a 100644 --- a/lib/line-index/src/lib.rs +++ b/lib/line-index/src/lib.rs @@ -199,7 +199,7 @@ impl LineIndex { } } -/// This is adapted from the rustc_span crate, https://github.com/rust-lang/rust/blob/master/compiler/rustc_span/src/analyze_source_file.rs +/// This is adapted from the rustc_span crate, https://github.com/rust-lang/rust/blob/de59844c98f7925242a798a72c59dc3610dd0e2c/compiler/rustc_span/src/analyze_source_file.rs fn analyze_source_file(src: &str) -> (Vec<TextSize>, IntMap<u32, Box<[WideChar]>>) { assert!(src.len() < !0u32 as usize); let mut lines = vec![]; |
