Skip to content

Commit 215b149

Browse files
committed
Auto merge of #15272 - lnicola:links, r=lnicola
minor: Use a permalink to the SIMD line index code, and add a note on the GitHub API
2 parents d16d5fc + a2b159d commit 215b149

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/line-index/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ impl LineIndex {
199199
}
200200
}
201201

202-
/// This is adapted from the rustc_span crate, https://github.com/rust-lang/rust/blob/master/compiler/rustc_span/src/analyze_source_file.rs
202+
/// This is adapted from the rustc_span crate, https://github.com/rust-lang/rust/blob/de59844c98f7925242a798a72c59dc3610dd0e2c/compiler/rustc_span/src/analyze_source_file.rs
203203
fn analyze_source_file(src: &str) -> (Vec<TextSize>, IntMap<u32, Box<[WideChar]>>) {
204204
assert!(src.len() < !0u32 as usize);
205205
let mut lines = vec![];

xtask/src/publish.rs

+1
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ fn update_release(sh: &Shell, tag_name: &str, release_notes: &str) -> anyhow::Re
7979
let release_id = cmd!(sh, "jq .id").stdin(release_json).read()?;
8080

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

0 commit comments

Comments
 (0)