Skip to content

Commit 43803df

Browse files
apply suggestions
1 parent 8002cde commit 43803df

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/rustc_feature/src/accepted.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ declare_features! (
362362
/// Allows `Self` struct constructor (RFC 2302).
363363
(accepted, self_struct_ctor, "1.32.0", Some(51994)),
364364
/// Shortern the tail expression lifetime
365-
(accepted, shorter_tail_lifetimes, "1.79.0", Some(123739)),
365+
(accepted, shorter_tail_lifetimes, "CURRENT_RUSTC_VERSION", Some(123739)),
366366
/// Allows using subslice patterns, `[a, .., b]` and `[a, xs @ .., b]`.
367367
(accepted, slice_patterns, "1.42.0", Some(62254)),
368368
/// Allows use of `&foo[a..b]` as a slicing syntax.

compiler/rustc_lint/src/tail_expr_drop_order.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ impl<'a, 'tcx> Visitor<'tcx> for LintVisitor<'a, 'tcx> {
185185
impl<'a, 'tcx> LintVisitor<'a, 'tcx> {
186186
fn check_block_inner(&mut self, block: &Block<'tcx>) {
187187
if block.span.at_least_rust_2024() {
188-
// We only lint for up to Edition 2021
188+
// We only lint up to Edition 2021
189189
return;
190190
}
191191
let Some(tail_expr) = block.expr else { return };

0 commit comments

Comments
 (0)