Skip to content

Commit f84df49

Browse files
committed
ctest: Add generation, compilation, and running of tests for constants.
1 parent e50c116 commit f84df49

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

ctest-next/src/rustc_queries.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ pub fn rustc_host() -> Result<String> {
8585
.nth(4)
8686
.unwrap()
8787
.split(':')
88-
.last()
88+
.next_back()
8989
.map(|s| s.trim())
9090
.unwrap();
9191

ctest-next/src/translator.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ impl Translator {
177177
/// This method is only used for translating expressions inside of
178178
/// array brackets, and will fail for expressions not allowed inside of
179179
/// those brackets.
180+
#[expect(clippy::only_used_in_recursion)]
180181
fn translate_expr(&self, expr: &syn::Expr) -> String {
181182
match expr {
182183
syn::Expr::Lit(l) => match &l.lit {

0 commit comments

Comments
 (0)