Skip to content

Commit 8c254b8

Browse files
Ignore dead code warnings until visibility has been explained (mainmatter#232)
1 parent 47def27 commit 8c254b8

File tree

17 files changed

+102
-0
lines changed

17 files changed

+102
-0
lines changed

exercises/01_intro/00_welcome/Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,9 @@
22
name = "welcome_00"
33
version = "0.1.0"
44
edition = "2021"
5+
6+
[lints.rust]
7+
# We silence dead code warnings for the time being in order to reduce
8+
# compiler noise.
9+
# We'll re-enable them again once we explain how visibility works in Rust.
10+
dead_code = "allow"

exercises/01_intro/01_syntax/Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,9 @@
22
name = "syntax"
33
version = "0.1.0"
44
edition = "2021"
5+
6+
[lints.rust]
7+
# We silence dead code warnings for the time being in order to reduce
8+
# compiler noise.
9+
# We'll re-enable them again once we explain how visibility works in Rust.
10+
dead_code = "allow"

exercises/02_basic_calculator/00_intro/Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,9 @@
22
name = "intro_01"
33
version = "0.1.0"
44
edition = "2021"
5+
6+
[lints.rust]
7+
# We silence dead code warnings for the time being in order to reduce
8+
# compiler noise.
9+
# We'll re-enable them again once we explain how visibility works in Rust.
10+
dead_code = "allow"

exercises/02_basic_calculator/01_integers/Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,9 @@
22
name = "integers"
33
version = "0.1.0"
44
edition = "2021"
5+
6+
[lints.rust]
7+
# We silence dead code warnings for the time being in order to reduce
8+
# compiler noise.
9+
# We'll re-enable them again once we explain how visibility works in Rust.
10+
dead_code = "allow"

exercises/02_basic_calculator/02_variables/Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,9 @@
22
name = "variables"
33
version = "0.1.0"
44
edition = "2021"
5+
6+
[lints.rust]
7+
# We silence dead code warnings for the time being in order to reduce
8+
# compiler noise.
9+
# We'll re-enable them again once we explain how visibility works in Rust.
10+
dead_code = "allow"

exercises/02_basic_calculator/03_if_else/Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,9 @@
22
name = "if_else"
33
version = "0.1.0"
44
edition = "2021"
5+
6+
[lints.rust]
7+
# We silence dead code warnings for the time being in order to reduce
8+
# compiler noise.
9+
# We'll re-enable them again once we explain how visibility works in Rust.
10+
dead_code = "allow"

exercises/02_basic_calculator/04_panics/Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,9 @@
22
name = "panics"
33
version = "0.1.0"
44
edition = "2021"
5+
6+
[lints.rust]
7+
# We silence dead code warnings for the time being in order to reduce
8+
# compiler noise.
9+
# We'll re-enable them again once we explain how visibility works in Rust.
10+
dead_code = "allow"

exercises/02_basic_calculator/05_factorial/Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,9 @@
22
name = "factorial"
33
version = "0.1.0"
44
edition = "2021"
5+
6+
[lints.rust]
7+
# We silence dead code warnings for the time being in order to reduce
8+
# compiler noise.
9+
# We'll re-enable them again once we explain how visibility works in Rust.
10+
dead_code = "allow"

exercises/02_basic_calculator/06_while/Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,9 @@
22
name = "while_"
33
version = "0.1.0"
44
edition = "2021"
5+
6+
[lints.rust]
7+
# We silence dead code warnings for the time being in order to reduce
8+
# compiler noise.
9+
# We'll re-enable them again once we explain how visibility works in Rust.
10+
dead_code = "allow"

exercises/02_basic_calculator/07_for/Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,9 @@
22
name = "for_"
33
version = "0.1.0"
44
edition = "2021"
5+
6+
[lints.rust]
7+
# We silence dead code warnings for the time being in order to reduce
8+
# compiler noise.
9+
# We'll re-enable them again once we explain how visibility works in Rust.
10+
dead_code = "allow"

0 commit comments

Comments
 (0)