Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup. #8287

Merged
merged 5 commits into from
Dec 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ commands:
jobs:
check-style:
docker:
- image: cimg/rust:1.71
- image: cimg/rust:1.74
resource_class: xlarge
steps:
- checkout
Expand All @@ -66,7 +66,7 @@ jobs:

clippy:
docker:
- image: cimg/rust:1.71
- image: cimg/rust:1.74
resource_class: xlarge
steps:
- checkout
Expand All @@ -83,7 +83,7 @@ jobs:

leo-executable:
docker:
- image: cimg/rust:1.71
- image: cimg/rust:1.74
resource_class: xlarge
steps:
- checkout
Expand All @@ -102,7 +102,7 @@ jobs:

leo-new:
docker:
- image: cimg/rust:1.71
- image: cimg/rust:1.74
resource_class: xlarge
steps:
- attach_workspace:
Expand All @@ -111,11 +111,11 @@ jobs:
name: leo new
command: |
export LEO=/home/circleci/project/project/bin/leo
./project/.circleci/leo-new.sh
timeout 30m ./project/.circleci/leo-new.sh

leo-clean:
docker:
- image: cimg/rust:1.71
- image: cimg/rust:1.74
resource_class: xlarge
steps:
- attach_workspace:
Expand All @@ -128,7 +128,7 @@ jobs:

leo-example:
docker:
- image: cimg/rust:1.71
- image: cimg/rust:1.74
resource_class: xlarge
steps:
- attach_workspace:
Expand All @@ -141,7 +141,7 @@ jobs:

test-examples:
docker:
- image: cimg/rust:1.71
- image: cimg/rust:1.74
resource_class: xlarge
steps:
- attach_workspace:
Expand Down
7 changes: 1 addition & 6 deletions compiler/ast/src/functions/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ pub mod mode;
pub use mode::*;

use crate::{Block, Identifier, Node, NodeID, TupleType, Type};
use leo_span::{sym, Span, Symbol};
use leo_span::{Span, Symbol};

use serde::{Deserialize, Serialize};
use std::fmt;
Expand Down Expand Up @@ -111,11 +111,6 @@ impl Function {
self.identifier.name
}

/// Returns `true` if the function name is `main`.
pub fn is_main(&self) -> bool {
self.name() == sym::main
}

///
/// Private formatting method used for optimizing [fmt::Debug] and [fmt::Display] implementations.
///
Expand Down
2 changes: 2 additions & 0 deletions compiler/ast/src/value/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ macro_rules! implement_const_unary {
) => {
// TODO: This is temporary since the currently unused code is used in constant folding.
#[allow(dead_code)]
#[allow(clippy::redundant_closure_call)]
pub(crate) fn $name(self, span: Span) -> Result<Self> {
use Value::*;

Expand Down Expand Up @@ -159,6 +160,7 @@ macro_rules! implement_const_binary {
) => {
// This is temporary since the currently unused code is used in constant folding.
#[allow(dead_code)]
#[allow(clippy::redundant_closure_call)]
pub(crate) fn $name(self, other: Self, span: Span) -> Result<Self> {
use Value::*;

Expand Down
2 changes: 1 addition & 1 deletion compiler/passes/src/destructuring/destructure_statement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ impl StatementReconstructor for Destructurer<'_> {
let statements = lhs_tuple
.elements
.into_iter()
.zip_eq(rhs_tuple.elements.into_iter())
.zip_eq(rhs_tuple.elements)
.map(|(lhs, rhs)| {
// Get the type of the rhs.
let type_ = match self.type_table.get(&lhs.id()) {
Expand Down
Loading