Skip to content

Commit

Permalink
chore: appease clippy and 1.54 build
Browse files Browse the repository at this point in the history
  • Loading branch information
rdrpenguin04 committed Jan 20, 2022
1 parent 44a175a commit f59f826
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
File renamed without changes.
1 change: 1 addition & 0 deletions c/.clippy.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
msrv = "1.54.0"
3 changes: 2 additions & 1 deletion c/src/analyze.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ use crate::parse::{
};
use std::collections::HashMap;

const fn diagnostic() -> ! {
#[allow(clippy::missing_const_for_fn)] // b/c 1.54.0 doesn't support panic in const fns
fn diagnostic() -> ! {
panic!(\\_(ツ)_/¯ Sema error");
}

Expand Down
3 changes: 2 additions & 1 deletion c/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ use xlang::abi::string::StringView;
use xlang::ir;
use xlang::plugin::{Error, XLangFrontend, XLangPlugin};

const fn diagnostic() -> ! {
#[allow(clippy::missing_const_for_fn)] // b/c 1.54.0 doesn't support panic in const fns
fn diagnostic() -> ! {
panic!("Hello everyone, and welcome to yet another placeholder function for generating a diagnostic!")
}

Expand Down

0 comments on commit f59f826

Please sign in to comment.