Skip to content

Commit 781203d

Browse files
authored
Rollup merge of rust-lang#137451 - compiler-errors:synm, r=Noratrieb
FIx `sym` -> `syn` typo in tail-expr-drop-order type opt-out The rust-lang#131326 PR attempts to reduce some false positives for the `tail_expr_drop_order` lint by hard-coding some common ecosystem crate names. Specifically, I believe it attempts to opt out the drop impls from `syn` which only exist as optimizations. However, this was typo'd like "sym", which is a crate that has been [yanked](https://crates.io/crates/sym) (lol). This PR fixes that. cc `@dingxiangfei2009` `@nikomatsakis` -- did I mistake this? Was this meant to be a different crate? `@bors` rollup
2 parents fb54acd + 506532a commit 781203d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: compiler/rustc_mir_transform/src/lint_tail_expr_drop_order.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ fn true_significant_drop_ty<'tcx>(
186186
debug!(?name_str);
187187
match name_str[..] {
188188
// These are the types from Rust core ecosystem
189-
["sym" | "proc_macro2", ..]
189+
["syn" | "proc_macro2", ..]
190190
| ["core" | "std", "task", "LocalWaker" | "Waker"]
191191
| ["core" | "std", "task", "wake", "LocalWaker" | "Waker"] => Some(smallvec![]),
192192
// These are important types from Rust ecosystem

0 commit comments

Comments
 (0)