Skip to content

Commit a84e6c0

Browse files
authored
Merge pull request #10777 from LawnGnome/perm-block-rdep-deletion
controllers/krate/delete: remove the temporary language from #10591
2 parents dc9271b + 0e2897c commit a84e6c0

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

app/templates/crate/delete.hbs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,7 @@
2121
<div local-class="requirements">
2222
<h3>Requirements:</h3>
2323
<p>
24-
A crate can only be deleted if it is not depended upon by any other crate on crates.io. (This is a temporary
25-
restriction due to
26-
<a
27-
href='https://github.com/rust-lang/crates.io/issues/10538'
28-
target='_blank'
29-
rel='noopener noreferrer'
30-
>#10538</a>.)
24+
A crate can only be deleted if it is not depended upon by any other crate on crates.io.
3125
</p>
3226
<p>Additionally, a crate can only be deleted if either:</p>
3327
<ol local-class='first'>

src/controllers/krate/delete.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,7 @@ pub async fn delete_crate(
9999
}
100100
}
101101

102-
// Temporary hack to mitigate https://github.com/rust-lang/crates.io/issues/10538: all crates
103-
// with reverse dependencies are currently blocked from being deleted to avoid unexpected
102+
// All crates with reverse dependencies are blocked from being deleted to avoid unexpected
104103
// historical index changes.
105104
if has_rev_dep(&mut conn, krate.id).await? {
106105
let msg = "only crates without reverse dependencies can be deleted";

0 commit comments

Comments
 (0)