Skip to content

Commit

Permalink
chore: change rust version used by CI to v1.72.0 (FuelLabs#5043)
Browse files Browse the repository at this point in the history
## Description

Changes rust version CI uses to v1.72.0 and nightly to 2023-08-27
  • Loading branch information
kayagokalp authored Aug 28, 2023
1 parent 255350e commit 869200a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ concurrency:
env:
CARGO_TERM_COLOR: always
REGISTRY: ghcr.io
RUST_VERSION: 1.71.0
NIGHTLY_RUST_VERSION: nightly-2023-04-01
RUST_VERSION: 1.72.0
NIGHTLY_RUST_VERSION: nightly-2023-08-27

jobs:
build-sway-lib-core:
Expand Down
18 changes: 9 additions & 9 deletions sway-ir/src/optimize/misc_demotion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -603,12 +603,11 @@ fn wide_cmp_demotion(context: &mut Context, function: Function) -> Result<bool,

// Get ptr to each arg
for (block, cmp_instr_val) in candidates {
let Instruction::Cmp (op, arg1, arg2) = cmp_instr_val
.get_instruction(context)
.cloned()
.unwrap() else {
continue;
};
let Instruction::Cmp(op, arg1, arg2) =
cmp_instr_val.get_instruction(context).cloned().unwrap()
else {
continue;
};

let cmp_op_metadata = cmp_instr_val.get_metadata(context);

Expand Down Expand Up @@ -764,9 +763,10 @@ fn wide_unary_op_demotion(context: &mut Context, function: Function) -> Result<b
let Instruction::UnaryOp { arg, .. } = binary_op_instr_val
.get_instruction(context)
.cloned()
.unwrap() else {
continue;
};
.unwrap()
else {
continue;
};

let unary_op_metadata = binary_op_instr_val.get_metadata(context);

Expand Down
4 changes: 2 additions & 2 deletions sway-parse/src/token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1001,9 +1001,9 @@ mod tests {

#[test]
fn lex_char_escaped_quote() {
let input = r#"
let input = r"
'\''
"#;
";
let handler = Handler::default();
let stream = lex(&handler, &Arc::from(input), 0, input.len(), None).unwrap();
assert!(handler.consume().0.is_empty());
Expand Down
8 changes: 4 additions & 4 deletions swayfmt/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ fn main() -> bool {
#[test]
fn struct_comments() {
check(
r#"contract;
r"contract;
// This is a comment, for this one to be placed correctly we need to have Module visitor implemented
pub struct Foo { // Here is a comment
Expand All @@ -515,8 +515,8 @@ pub struct Foo { // Here is a comment
// \|__| \|_______|\|_______|\|_______| \|_______|\|__|\|__|\|_______|\_________\
// \|_________|
}
"#,
r#"contract;
",
r"contract;
// This is a comment, for this one to be placed correctly we need to have Module visitor implemented
pub struct Foo { // Here is a comment
Expand All @@ -532,7 +532,7 @@ pub struct Foo { // Here is a comment
// \|__| \|_______|\|_______|\|_______| \|_______|\|__|\|__|\|_______|\_________\
// \|_________|
}
"#,
",
);
}

Expand Down

0 comments on commit 869200a

Please sign in to comment.