Skip to content

Commit

Permalink
Use a permalink to the SIMD line index code, and add a note on the Gi…
Browse files Browse the repository at this point in the history
…tHub API
  • Loading branch information
lnicola committed Jul 12, 2023
1 parent 75ac37f commit a2b159d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/line-index/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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![];
Expand Down
1 change: 1 addition & 0 deletions xtask/src/publish.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ fn update_release(sh: &Shell, tag_name: &str, release_notes: &str) -> anyhow::Re
let release_id = cmd!(sh, "jq .id").stdin(release_json).read()?;

let mut patch = String::new();
// note: the GitHub API doesn't update the target commit if the tag already exists
write_json::object(&mut patch)
.string("tag_name", tag_name)
.string("target_commitish", "master")
Expand Down

0 comments on commit a2b159d

Please sign in to comment.