Lary15 / embedded-msp430

0 stars 0 forks source link

Fails to build under win10 (PowerShell) #1

Open tingox opened 1 year ago

tingox commented 1 year ago

Unchanged, it fails here

[C:\Users\torfinn.ingolfsen\OneDrive - Inventas AS\Documents\Inventas\0_faglig\utvikling\rust\embedded\embedded-msp430] $ rm rust-toolchain.toml
[C:\Users\torfinn.ingolfsen\OneDrive - Inventas AS\Documents\Inventas\0_faglig\utvikling\rust\embedded\embedded-msp430] $ git status
On branch main
Your branch is up to date with 'origin/main'.

nothing to commit, working tree clean
[C:\Users\torfinn.ingolfsen\OneDrive - Inventas AS\Documents\Inventas\0_faglig\utvikling\rust\embedded\embedded-msp430] $ cargo build
  Downloaded paste v1.0.6
  Downloaded autocfg v0.1.7
  Downloaded 2 crates (30.0 KB) in 0.51s
   Compiling autocfg v0.1.7
   Compiling rand_core v0.4.2
   Compiling semver-parser v0.7.0
   Compiling proc-macro2 v0.4.30
   Compiling winapi v0.3.9
   Compiling unicode-xid v0.1.0
   Compiling syn v0.15.44
   Compiling msp430-rt v0.2.5
   Compiling msp430-periph v0.0.4 (C:\Users\torfinn.ingolfsen\OneDrive - Inventas AS\Documents\Inventas\0_faglig\utvikling\rust\embedded\embedded-msp430\msp430-periph)
   Compiling paste v1.0.6
error[E0554]: `#![feature]` may not be used on the stable release channel
 --> msp430-periph\build.rs:1:12
  |
1 | #![feature(array_value_iter)]
  |            ^^^^^^^^^^^^^^^^

warning: the feature `array_value_iter` has been stable since 1.51.0 and no longer requires an attribute to enable
 --> msp430-periph\build.rs:1:12
  |
1 | #![feature(array_value_iter)]
  |            ^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(stable_features)]` on by default

warning: use of deprecated associated function `std::array::IntoIter::<T, N>::new`: use `IntoIterator::into_iter` instead
  --> msp430-periph\build.rs:18:23
   |
18 |             IntoIter::new([d1, d2]).chain(devices).collect::<Vec<_>>()
   |                       ^^^
   |
   = note: `#[warn(deprecated)]` on by default

For more information about this error, try `rustc --explain E0554`.
warning: `msp430-periph` (build script) generated 2 warnings
error: could not compile `msp430-periph` due to previous error; 2 warnings emitted
warning: build failed, waiting for other jobs to finish...

this is with

[C:\Users\torfinn.ingolfsen\OneDrive - Inventas AS\Documents\Inventas\0_faglig\utvikling\rust\embedded\embedded-msp430] $ rustc --version
rustc 1.65.0 (897e37553 2022-11-02)
tingox commented 1 year ago

If I fix that by removing the offending line from msp430-periph\build.rs, I get this:

[C:\Users\torfinn.ingolfsen\OneDrive - Inventas AS\Documents\Inventas\0_faglig\utvikling\rust\embedded\embedded-msp430] $ cargo build
   Compiling autocfg v0.1.7
   Compiling rand_core v0.4.2
   Compiling semver-parser v0.7.0
   Compiling winapi v0.3.9
   Compiling proc-macro2 v0.4.30
   Compiling unicode-xid v0.1.0
   Compiling syn v0.15.44
   Compiling msp430-rt v0.2.5
   Compiling msp430-periph v0.0.4 (C:\Users\torfinn.ingolfsen\OneDrive - Inventas AS\Documents\Inventas\0_faglig\utvikling\rust\embedded\embedded-msp430\msp430-periph)
   Compiling paste v1.0.6
warning: use of deprecated associated function `std::array::IntoIter::<T, N>::new`: use `IntoIterator::into_iter` instead
  --> msp430-periph\build.rs:17:23
   |
17 |             IntoIter::new([d1, d2]).chain(devices).collect::<Vec<_>>()
   |                       ^^^
   |
   = note: `#[warn(deprecated)]` on by default

   Compiling rand_core v0.3.1
   Compiling semver v0.9.0
   Compiling rand_hc v0.1.0
   Compiling rand_xorshift v0.1.1
   Compiling rand_isaac v0.1.1
   Compiling rustc_version v0.2.3
   Compiling rand_pcg v0.1.2
   Compiling rand_chacha v0.1.1
   Compiling rand v0.6.5
warning: `msp430-periph` (build script) generated 1 warning
   Compiling bare-metal v0.2.5
   Compiling peripherals v0.1.1
error[E0463]: can't find crate for `core`
  |
  = note: the `msp430-none-elf` target may not be installed
  = help: consider downloading the target with `rustup target add msp430-none-elf`

error[E0463]: can't find crate for `compiler_builtins`

error[E0463]: can't find crate for `core`
 --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\mod.rs:6:5
  |
6 | use core::ops::*;
  |     ^^^^ can't find crate
  |
  = note: the `msp430-none-elf` target may not be installed
  = help: consider downloading the target with `rustup target add msp430-none-elf`

error[E0463]: can't find crate for `core`
 --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\mod.rs:3:5
  |
3 | use core::convert::TryInto;
  |     ^^^^ can't find crate
  |
  = note: the `msp430-none-elf` target may not be installed
  = help: consider downloading the target with `rustup target add msp430-none-elf`

error[E0463]: can't find crate for `core`
 --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\mod.rs:4:5
  |
4 | use core::fmt::{self, Debug};
  |     ^^^^ can't find crate
  |
  = note: the `msp430-none-elf` target may not be installed
  = help: consider downloading the target with `rustup target add msp430-none-elf`

error[E0463]: can't find crate for `core`
 --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\mod.rs:5:5
  |
5 | use core::marker::PhantomData;
  |     ^^^^ can't find crate
  |
  = note: the `msp430-none-elf` target may not be installed
  = help: consider downloading the target with `rustup target add msp430-none-elf`

error[E0432]: unresolved imports `core::convert::TryInto`, `core::fmt`, `core::fmt::Debug`, `core::marker::PhantomData`
 --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\mod.rs:3:5
  |
3 | use core::convert::TryInto;
  |     ^^^^^^^^^^^^^^^^^^^^^^
4 | use core::fmt::{self, Debug};
  |                 ^^^^  ^^^^^
5 | use core::marker::PhantomData;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^

error: cannot find attribute `derive` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\mod.rs:137:3
    |
137 | #[derive(Copy, Clone, Debug, PartialEq, Eq)]
    |   ^^^^^^

error: cannot find attribute `derive` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\mod.rs:127:3
    |
127 | #[derive(Debug)]
    |   ^^^^^^

error: cannot find macro `write` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\value.rs:153:13
    |
153 |             write!(
    |             ^^^^^

error: cannot find macro `write` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\value.rs:145:13
    |
145 |             write!(
    |             ^^^^^

error: cannot find macro `write` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\reg.rs:119:9
    |
119 |         write!(fmt, "Reg {}.{} @ 0x{:06p}", P::NAME, R::NAME, self.ptr())
    |         ^^^^^

error: cannot find macro `write` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\fields.rs:138:13
    |
138 |             write!(
    |             ^^^^^

error: cannot find macro `write` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\fields.rs:130:13
    |
130 |             write!(
    |             ^^^^^

error: cannot find macro `write` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\field_values.rs:139:13
    |
139 |             write!(
    |             ^^^^^

error: cannot find macro `write` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\field_values.rs:130:13
    |
130 |             write!(
    |             ^^^^^

error: cannot find macro `write` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\field.rs:118:13
    |
118 |             write!(
    |             ^^^^^

error: cannot find macro `write` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\field.rs:110:13
    |
110 |             write!(
    |             ^^^^^

error: cannot find macro `write` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\dynreg.rs:110:9
    |
110 |         write!(fmt, "DynReg {} @ 0x{:06p}", R::NAME, self.ptr())
    |         ^^^^^

error[E0405]: cannot find trait `Into` in this scope
  --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\dynreg.rs:51:22
   |
51 |       pub fn fields<F: Into<Fields<R::Value>> + MayToggle>(
   |                        ^^^^ help: a trait with a similar name exists: `Int`
   |
  ::: C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\mod.rs:26:5
   |
26 | /     pub trait Int:
27 | |         BitAnd<Output = Self>
28 | |         + BitOr<Output = Self>
29 | |         + BitXor<Output = Self>
...  |
39 | |         const WIDTH: usize;
40 | |     }
   | |_____- similarly named trait `Int` defined here

error[E0405]: cannot find trait `Into` in this scope
  --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\dynreg.rs:62:20
   |
62 |       pub fn test<B: Into<FieldValues<R::Value>>>(&self, bits: B) -> bool {
   |                      ^^^^ help: a trait with a similar name exists: `Int`
   |
  ::: C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\mod.rs:26:5
   |
26 | /     pub trait Int:
27 | |         BitAnd<Output = Self>
28 | |         + BitOr<Output = Self>
29 | |         + BitXor<Output = Self>
...  |
39 | |         const WIDTH: usize;
40 | |     }
   | |_____- similarly named trait `Int` defined here

error[E0405]: cannot find trait `Into` in this scope
  --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\dynreg.rs:93:22
   |
93 |       pub fn modify<B: Into<FieldValues<R::Value>>>(&mut self, bits: B) {
   |                        ^^^^ help: a trait with a similar name exists: `Int`
   |
  ::: C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\mod.rs:26:5
   |
26 | /     pub trait Int:
27 | |         BitAnd<Output = Self>
28 | |         + BitOr<Output = Self>
29 | |         + BitXor<Output = Self>
...  |
39 | |         const WIDTH: usize;
40 | |     }
   | |_____- similarly named trait `Int` defined here

error[E0405]: cannot find trait `Into` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\dynreg.rs:102:22
    |
102 |       pub fn toggle<F: Into<Fields<R::Value, Toggle>>>(&mut self, fields: F) {
    |                        ^^^^ help: a trait with a similar name exists: `Int`
    |
   ::: C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\mod.rs:26:5
    |
26  | /     pub trait Int:
27  | |         BitAnd<Output = Self>
28  | |         + BitOr<Output = Self>
29  | |         + BitXor<Output = Self>
...   |
39  | |         const WIDTH: usize;
40  | |     }
    | |_____- similarly named trait `Int` defined here

error[E0405]: cannot find trait `Clone` in this scope
  --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\field.rs:93:27
   |
93 | impl<R: RegisterValue, T> Clone for Field<R, T, R::Int> {
   |                           ^^^^^ not found in this scope

error[E0405]: cannot find trait `Copy` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\field.rs:105:27
    |
105 | impl<R: RegisterValue, T> Copy for Field<R, T, R::Int> {}
    |                           ^^^^ not found in this scope

error[E0405]: cannot find trait `PartialEq` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\field.rs:129:54
    |
129 | impl<R: RegisterValue, T: Into<Fields<R>> + Copy, U> PartialEq<T> for Field<R, U, R::Int> {
    |                                                      ^^^^^^^^^ not found in this scope

error[E0405]: cannot find trait `Into` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\field.rs:129:27
    |
129 |   impl<R: RegisterValue, T: Into<Fields<R>> + Copy, U> PartialEq<T> for Field<R, U, R::Int> {
    |                             ^^^^ help: a trait with a similar name exists: `Int`
    |
   ::: C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\mod.rs:26:5
    |
26  | /     pub trait Int:
27  | |         BitAnd<Output = Self>
28  | |         + BitOr<Output = Self>
29  | |         + BitXor<Output = Self>
...   |
39  | |         const WIDTH: usize;
40  | |     }
    | |_____- similarly named trait `Int` defined here

error[E0405]: cannot find trait `Copy` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\field.rs:129:45
    |
129 | impl<R: RegisterValue, T: Into<Fields<R>> + Copy, U> PartialEq<T> for Field<R, U, R::Int> {
    |                                             ^^^^ not found in this scope

error[E0405]: cannot find trait `Eq` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\field.rs:137:27
    |
137 | impl<R: RegisterValue, T> Eq for Field<R, T, R::Int> {}
    |                           ^^ not found in this scope

error[E0405]: cannot find trait `From` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\field.rs:139:27
    |
139 | impl<R: RegisterValue, T> From<Field<R, T, R::Int>> for Fields<R, ()> {
    |                           ^^^^ not found in this scope

error[E0405]: cannot find trait `From` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\field.rs:146:55
    |
146 | impl<R: RegisterValue, T: MayToggle<Toggle = Toggle>> From<Field<R, T, R::Int>>
    |                                                       ^^^^ not found in this scope

error[E0405]: cannot find trait `BitOr` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\field.rs:159:58
    |
159 | impl<R: RegisterValue, T: Into<Fields<R>>, U: MayToggle> BitOr<T> for Field<R, U, R::Int>
    |                                                          ^^^^^ not found in this scope

error[E0405]: cannot find trait `Into` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\field.rs:159:27
    |
159 |   impl<R: RegisterValue, T: Into<Fields<R>>, U: MayToggle> BitOr<T> for Field<R, U, R::Int>
    |                             ^^^^ help: a trait with a similar name exists: `Int`
    |
   ::: C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\mod.rs:26:5
    |
26  | /     pub trait Int:
27  | |         BitAnd<Output = Self>
28  | |         + BitOr<Output = Self>
29  | |         + BitXor<Output = Self>
...   |
39  | |         const WIDTH: usize;
40  | |     }
    | |_____- similarly named trait `Int` defined here

error[E0405]: cannot find trait `BitAnd` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\field.rs:172:58
    |
172 | impl<R: RegisterValue, T: Into<Fields<R>>, U: MayToggle> BitAnd<T> for Field<R, U, R::Int>
    |                                                          ^^^^^^ not found in this scope

error[E0405]: cannot find trait `Into` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\field.rs:172:27
    |
172 |   impl<R: RegisterValue, T: Into<Fields<R>>, U: MayToggle> BitAnd<T> for Field<R, U, R::Int>
    |                             ^^^^ help: a trait with a similar name exists: `Int`
    |
   ::: C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\mod.rs:26:5
    |
26  | /     pub trait Int:
27  | |         BitAnd<Output = Self>
28  | |         + BitOr<Output = Self>
29  | |         + BitXor<Output = Self>
...   |
39  | |         const WIDTH: usize;
40  | |     }
    | |_____- similarly named trait `Int` defined here

error[E0405]: cannot find trait `BitXor` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\field.rs:185:58
    |
185 | impl<R: RegisterValue, T: Into<Fields<R>>, U: MayToggle> BitXor<T> for Field<R, U, R::Int>
    |                                                          ^^^^^^ not found in this scope

error[E0405]: cannot find trait `Into` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\field.rs:185:27
    |
185 |   impl<R: RegisterValue, T: Into<Fields<R>>, U: MayToggle> BitXor<T> for Field<R, U, R::Int>
    |                             ^^^^ help: a trait with a similar name exists: `Int`
    |
   ::: C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\mod.rs:26:5
    |
26  | /     pub trait Int:
27  | |         BitAnd<Output = Self>
28  | |         + BitOr<Output = Self>
29  | |         + BitXor<Output = Self>
...   |
39  | |         const WIDTH: usize;
40  | |     }
    | |_____- similarly named trait `Int` defined here

error[E0405]: cannot find trait `Clone` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\field_values.rs:101:27
    |
101 | impl<R: RegisterValue, T> Clone for FieldValues<R, T> {
    |                           ^^^^^ not found in this scope

error[E0405]: cannot find trait `Copy` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\field_values.rs:113:27
    |
113 | impl<R: RegisterValue, T> Copy for FieldValues<R, T> {}
    |                           ^^^^ not found in this scope

error[E0405]: cannot find trait `Default` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\field_values.rs:115:27
    |
115 | impl<R: RegisterValue, T> Default for FieldValues<R, T> {
    |                           ^^^^^^^ not found in this scope

error[E0405]: cannot find trait `PartialEq` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\field_values.rs:151:59
    |
151 | impl<R: RegisterValue, T: Into<FieldValues<R>> + Copy, U> PartialEq<T> for FieldValues<R, U> {
    |                                                           ^^^^^^^^^ not found in this scope

error[E0405]: cannot find trait `Into` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\field_values.rs:151:27
    |
151 |   impl<R: RegisterValue, T: Into<FieldValues<R>> + Copy, U> PartialEq<T> for FieldValues<R, U> {
    |                             ^^^^ help: a trait with a similar name exists: `Int`
    |
   ::: C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\mod.rs:26:5
    |
26  | /     pub trait Int:
27  | |         BitAnd<Output = Self>
28  | |         + BitOr<Output = Self>
29  | |         + BitXor<Output = Self>
...   |
39  | |         const WIDTH: usize;
40  | |     }
    | |_____- similarly named trait `Int` defined here

error[E0405]: cannot find trait `Copy` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\field_values.rs:151:50
    |
151 | impl<R: RegisterValue, T: Into<FieldValues<R>> + Copy, U> PartialEq<T> for FieldValues<R, U> {
    |                                                  ^^^^ not found in this scope

error[E0405]: cannot find trait `Eq` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\field_values.rs:159:24
    |
159 | impl<R: RegisterValue> Eq for FieldValues<R, ()> {}
    |                        ^^ not found in this scope

error[E0405]: cannot find trait `Eq` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\field_values.rs:160:24
    |
160 | impl<R: RegisterValue> Eq for FieldValues<R, Toggle> {}
    |                        ^^ not found in this scope

error[E0405]: cannot find trait `From` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\field_values.rs:162:57
    |
162 | impl<R: RegisterValue, T: Into<FieldValues<R, Toggle>>> From<T> for FieldValues<R, ()> {
    |                                                         ^^^^ not found in this scope

error[E0405]: cannot find trait `Into` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\field_values.rs:162:27
    |
162 |   impl<R: RegisterValue, T: Into<FieldValues<R, Toggle>>> From<T> for FieldValues<R, ()> {
    |                             ^^^^ help: a trait with a similar name exists: `Int`
    |
   ::: C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\mod.rs:26:5
    |
26  | /     pub trait Int:
27  | |         BitAnd<Output = Self>
28  | |         + BitOr<Output = Self>
29  | |         + BitXor<Output = Self>
...   |
39  | |         const WIDTH: usize;
40  | |     }
    | |_____- similarly named trait `Int` defined here

error[E0405]: cannot find trait `Not` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\field_values.rs:179:24
    |
179 | impl<R: RegisterValue> Not for FieldValues<R, Toggle> {
    |                        ^^^ not found in this scope

error[E0405]: cannot find trait `BitOr` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\field_values.rs:193:52
    |
193 | impl<R: RegisterValue, T: Into<FieldValues<R>>, U> BitOr<T> for FieldValues<R, U>
    |                                                    ^^^^^ not found in this scope

error[E0405]: cannot find trait `Into` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\field_values.rs:193:27
    |
193 |   impl<R: RegisterValue, T: Into<FieldValues<R>>, U> BitOr<T> for FieldValues<R, U>
    |                             ^^^^ help: a trait with a similar name exists: `Int`
    |
   ::: C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\mod.rs:26:5
    |
26  | /     pub trait Int:
27  | |         BitAnd<Output = Self>
28  | |         + BitOr<Output = Self>
29  | |         + BitXor<Output = Self>
...   |
39  | |         const WIDTH: usize;
40  | |     }
    | |_____- similarly named trait `Int` defined here

error[E0405]: cannot find trait `BitOrAssign` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\field_values.rs:211:52
    |
211 | impl<R: RegisterValue, T: Into<FieldValues<R>>, U> BitOrAssign<T> for FieldValues<R, U>
    |                                                    ^^^^^^^^^^^ not found in this scope

error[E0405]: cannot find trait `Into` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\field_values.rs:211:27
    |
211 |   impl<R: RegisterValue, T: Into<FieldValues<R>>, U> BitOrAssign<T> for FieldValues<R, U>
    |                             ^^^^ help: a trait with a similar name exists: `Int`
    |
   ::: C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\mod.rs:26:5
    |
26  | /     pub trait Int:
27  | |         BitAnd<Output = Self>
28  | |         + BitOr<Output = Self>
29  | |         + BitXor<Output = Self>
...   |
39  | |         const WIDTH: usize;
40  | |     }
    | |_____- similarly named trait `Int` defined here

error[E0405]: cannot find trait `BitAnd` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\field_values.rs:223:47
    |
223 | impl<R: RegisterValue, T: Into<Fields<R>>, U> BitAnd<T> for FieldValues<R, U>
    |                                               ^^^^^^ not found in this scope

error[E0405]: cannot find trait `Into` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\field_values.rs:223:27
    |
223 |   impl<R: RegisterValue, T: Into<Fields<R>>, U> BitAnd<T> for FieldValues<R, U>
    |                             ^^^^ help: a trait with a similar name exists: `Int`
    |
   ::: C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\mod.rs:26:5
    |
26  | /     pub trait Int:
27  | |         BitAnd<Output = Self>
28  | |         + BitOr<Output = Self>
29  | |         + BitXor<Output = Self>
...   |
39  | |         const WIDTH: usize;
40  | |     }
    | |_____- similarly named trait `Int` defined here

error[E0405]: cannot find trait `BitAndAssign` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\field_values.rs:241:47
    |
241 | impl<R: RegisterValue, T: Into<Fields<R>>, U> BitAndAssign<T> for FieldValues<R, U>
    |                                               ^^^^^^^^^^^^ not found in this scope

error[E0405]: cannot find trait `Into` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\field_values.rs:241:27
    |
241 |   impl<R: RegisterValue, T: Into<Fields<R>>, U> BitAndAssign<T> for FieldValues<R, U>
    |                             ^^^^ help: a trait with a similar name exists: `Int`
    |
   ::: C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\mod.rs:26:5
    |
26  | /     pub trait Int:
27  | |         BitAnd<Output = Self>
28  | |         + BitOr<Output = Self>
29  | |         + BitXor<Output = Self>
...   |
39  | |         const WIDTH: usize;
40  | |     }
    | |_____- similarly named trait `Int` defined here

error[E0405]: cannot find trait `BitXor` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\field_values.rs:253:47
    |
253 | impl<R: RegisterValue, T: Into<Fields<R>>, U> BitXor<T> for FieldValues<R, U>
    |                                               ^^^^^^ not found in this scope

error[E0405]: cannot find trait `Into` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\field_values.rs:253:27
    |
253 |   impl<R: RegisterValue, T: Into<Fields<R>>, U> BitXor<T> for FieldValues<R, U>
    |                             ^^^^ help: a trait with a similar name exists: `Int`
    |
   ::: C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\mod.rs:26:5
    |
26  | /     pub trait Int:
27  | |         BitAnd<Output = Self>
28  | |         + BitOr<Output = Self>
29  | |         + BitXor<Output = Self>
...   |
39  | |         const WIDTH: usize;
40  | |     }
    | |_____- similarly named trait `Int` defined here

error[E0405]: cannot find trait `BitXorAssign` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\field_values.rs:271:47
    |
271 | impl<R: RegisterValue, T: Into<Fields<R>>, U> BitXorAssign<T> for FieldValues<R, U>
    |                                               ^^^^^^^^^^^^ not found in this scope

error[E0405]: cannot find trait `Into` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\field_values.rs:271:27
    |
271 |   impl<R: RegisterValue, T: Into<Fields<R>>, U> BitXorAssign<T> for FieldValues<R, U>
    |                             ^^^^ help: a trait with a similar name exists: `Int`
    |
   ::: C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\mod.rs:26:5
    |
26  | /     pub trait Int:
27  | |         BitAnd<Output = Self>
28  | |         + BitOr<Output = Self>
29  | |         + BitXor<Output = Self>
...   |
39  | |         const WIDTH: usize;
40  | |     }
    | |_____- similarly named trait `Int` defined here

error[E0405]: cannot find trait `Clone` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\fields.rs:103:27
    |
103 | impl<R: RegisterValue, T> Clone for Fields<R, T> {
    |                           ^^^^^ not found in this scope

error[E0405]: cannot find trait `Copy` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\fields.rs:114:27
    |
114 | impl<R: RegisterValue, T> Copy for Fields<R, T> {}
    |                           ^^^^ not found in this scope

error[E0405]: cannot find trait `Default` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\fields.rs:116:27
    |
116 | impl<R: RegisterValue, T> Default for Fields<R, T> {
    |                           ^^^^^^^ not found in this scope

error[E0405]: cannot find trait `PartialEq` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\fields.rs:149:54
    |
149 | impl<R: RegisterValue, T: Into<Fields<R>> + Copy, U> PartialEq<T> for Fields<R, U> {
    |                                                      ^^^^^^^^^ not found in this scope

error[E0405]: cannot find trait `Into` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\fields.rs:149:27
    |
149 |   impl<R: RegisterValue, T: Into<Fields<R>> + Copy, U> PartialEq<T> for Fields<R, U> {
    |                             ^^^^ help: a trait with a similar name exists: `Int`
    |
   ::: C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\mod.rs:26:5
    |
26  | /     pub trait Int:
27  | |         BitAnd<Output = Self>
28  | |         + BitOr<Output = Self>
29  | |         + BitXor<Output = Self>
...   |
39  | |         const WIDTH: usize;
40  | |     }
    | |_____- similarly named trait `Int` defined here

error[E0405]: cannot find trait `Copy` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\fields.rs:149:45
    |
149 | impl<R: RegisterValue, T: Into<Fields<R>> + Copy, U> PartialEq<T> for Fields<R, U> {
    |                                             ^^^^ not found in this scope

error[E0405]: cannot find trait `From` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\fields.rs:157:24
    |
157 | impl<R: RegisterValue> From<Fields<R, Toggle>> for Fields<R, ()> {
    |                        ^^^^ not found in this scope

error[E0405]: cannot find trait `BitOr` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\fields.rs:172:47
    |
172 | impl<R: RegisterValue, T: Into<Fields<R>>, U> BitOr<T> for Fields<R, U>
    |                                               ^^^^^ not found in this scope

error[E0405]: cannot find trait `Into` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\fields.rs:172:27
    |
172 |   impl<R: RegisterValue, T: Into<Fields<R>>, U> BitOr<T> for Fields<R, U>
    |                             ^^^^ help: a trait with a similar name exists: `Int`
    |
   ::: C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\mod.rs:26:5
    |
26  | /     pub trait Int:
27  | |         BitAnd<Output = Self>
28  | |         + BitOr<Output = Self>
29  | |         + BitXor<Output = Self>
...   |
39  | |         const WIDTH: usize;
40  | |     }
    | |_____- similarly named trait `Int` defined here

error[E0405]: cannot find trait `BitOrAssign` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\fields.rs:189:47
    |
189 | impl<R: RegisterValue, T: Into<Fields<R>>, U> BitOrAssign<T> for Fields<R, U>
    |                                               ^^^^^^^^^^^ not found in this scope

error[E0405]: cannot find trait `Into` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\fields.rs:189:27
    |
189 |   impl<R: RegisterValue, T: Into<Fields<R>>, U> BitOrAssign<T> for Fields<R, U>
    |                             ^^^^ help: a trait with a similar name exists: `Int`
    |
   ::: C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\mod.rs:26:5
    |
26  | /     pub trait Int:
27  | |         BitAnd<Output = Self>
28  | |         + BitOr<Output = Self>
29  | |         + BitXor<Output = Self>
...   |
39  | |         const WIDTH: usize;
40  | |     }
    | |_____- similarly named trait `Int` defined here

error[E0405]: cannot find trait `BitAnd` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\fields.rs:200:47
    |
200 | impl<R: RegisterValue, T: Into<Fields<R>>, U> BitAnd<T> for Fields<R, U>
    |                                               ^^^^^^ not found in this scope

error[E0405]: cannot find trait `Into` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\fields.rs:200:27
    |
200 |   impl<R: RegisterValue, T: Into<Fields<R>>, U> BitAnd<T> for Fields<R, U>
    |                             ^^^^ help: a trait with a similar name exists: `Int`
    |
   ::: C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\mod.rs:26:5
    |
26  | /     pub trait Int:
27  | |         BitAnd<Output = Self>
28  | |         + BitOr<Output = Self>
29  | |         + BitXor<Output = Self>
...   |
39  | |         const WIDTH: usize;
40  | |     }
    | |_____- similarly named trait `Int` defined here

error[E0405]: cannot find trait `BitAndAssign` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\fields.rs:217:47
    |
217 | impl<R: RegisterValue, T: Into<Fields<R>>, U> BitAndAssign<T> for Fields<R, U>
    |                                               ^^^^^^^^^^^^ not found in this scope

error[E0405]: cannot find trait `Into` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\fields.rs:217:27
    |
217 |   impl<R: RegisterValue, T: Into<Fields<R>>, U> BitAndAssign<T> for Fields<R, U>
    |                             ^^^^ help: a trait with a similar name exists: `Int`
    |
   ::: C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\mod.rs:26:5
    |
26  | /     pub trait Int:
27  | |         BitAnd<Output = Self>
28  | |         + BitOr<Output = Self>
29  | |         + BitXor<Output = Self>
...   |
39  | |         const WIDTH: usize;
40  | |     }
    | |_____- similarly named trait `Int` defined here

error[E0405]: cannot find trait `BitXor` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\fields.rs:228:47
    |
228 | impl<R: RegisterValue, T: Into<Fields<R>>, U> BitXor<T> for Fields<R, U>
    |                                               ^^^^^^ not found in this scope

error[E0405]: cannot find trait `Into` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\fields.rs:228:27
    |
228 |   impl<R: RegisterValue, T: Into<Fields<R>>, U> BitXor<T> for Fields<R, U>
    |                             ^^^^ help: a trait with a similar name exists: `Int`
    |
   ::: C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\mod.rs:26:5
    |
26  | /     pub trait Int:
27  | |         BitAnd<Output = Self>
28  | |         + BitOr<Output = Self>
29  | |         + BitXor<Output = Self>
...   |
39  | |         const WIDTH: usize;
40  | |     }
    | |_____- similarly named trait `Int` defined here

error[E0405]: cannot find trait `BitXorAssign` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\fields.rs:245:47
    |
245 | impl<R: RegisterValue, T: Into<Fields<R>>, U> BitXorAssign<T> for Fields<R, U>
    |                                               ^^^^^^^^^^^^ not found in this scope

error[E0405]: cannot find trait `Into` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\fields.rs:245:27
    |
245 |   impl<R: RegisterValue, T: Into<Fields<R>>, U> BitXorAssign<T> for Fields<R, U>
    |                             ^^^^ help: a trait with a similar name exists: `Int`
    |
   ::: C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\mod.rs:26:5
    |
26  | /     pub trait Int:
27  | |         BitAnd<Output = Self>
28  | |         + BitOr<Output = Self>
29  | |         + BitXor<Output = Self>
...   |
39  | |         const WIDTH: usize;
40  | |     }
    | |_____- similarly named trait `Int` defined here

error[E0405]: cannot find trait `Into` in this scope
  --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\reg.rs:60:22
   |
60 |       pub fn fields<F: Into<Fields<R::Value>> + MayToggle>(
   |                        ^^^^ help: a trait with a similar name exists: `Int`
   |
  ::: C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\mod.rs:26:5
   |
26 | /     pub trait Int:
27 | |         BitAnd<Output = Self>
28 | |         + BitOr<Output = Self>
29 | |         + BitXor<Output = Self>
...  |
39 | |         const WIDTH: usize;
40 | |     }
   | |_____- similarly named trait `Int` defined here

error[E0405]: cannot find trait `Into` in this scope
  --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\reg.rs:71:20
   |
71 |       pub fn test<B: Into<FieldValues<R::Value>>>(&self, bits: B) -> bool {
   |                      ^^^^ help: a trait with a similar name exists: `Int`
   |
  ::: C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\mod.rs:26:5
   |
26 | /     pub trait Int:
27 | |         BitAnd<Output = Self>
28 | |         + BitOr<Output = Self>
29 | |         + BitXor<Output = Self>
...  |
39 | |         const WIDTH: usize;
40 | |     }
   | |_____- similarly named trait `Int` defined here

error[E0405]: cannot find trait `Into` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\reg.rs:102:22
    |
102 |       pub fn modify<B: Into<FieldValues<R::Value>>>(&mut self, bits: B) {
    |                        ^^^^ help: a trait with a similar name exists: `Int`
    |
   ::: C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\mod.rs:26:5
    |
26  | /     pub trait Int:
27  | |         BitAnd<Output = Self>
28  | |         + BitOr<Output = Self>
29  | |         + BitXor<Output = Self>
...   |
39  | |         const WIDTH: usize;
40  | |     }
    | |_____- similarly named trait `Int` defined here

error[E0405]: cannot find trait `Into` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\reg.rs:111:22
    |
111 |       pub fn toggle<F: Into<Fields<R::Value, Toggle>>>(&mut self, fields: F) {
    |                        ^^^^ help: a trait with a similar name exists: `Int`
    |
   ::: C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\mod.rs:26:5
    |
26  | /     pub trait Int:
27  | |         BitAnd<Output = Self>
28  | |         + BitOr<Output = Self>
29  | |         + BitXor<Output = Self>
...   |
39  | |         const WIDTH: usize;
40  | |     }
    | |_____- similarly named trait `Int` defined here

error[E0405]: cannot find trait `Into` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\value.rs:103:20
    |
103 |       pub fn test<B: Into<FieldValues<R>>>(self, bits: B) -> bool {
    |                      ^^^^ help: a trait with a similar name exists: `Int`
    |
   ::: C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\mod.rs:26:5
    |
26  | /     pub trait Int:
27  | |         BitAnd<Output = Self>
28  | |         + BitOr<Output = Self>
29  | |         + BitXor<Output = Self>
...   |
39  | |         const WIDTH: usize;
40  | |     }
    | |_____- similarly named trait `Int` defined here

error[E0405]: cannot find trait `Clone` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\value.rs:120:24
    |
120 | impl<R: RegisterValue> Clone for Value<R> {
    |                        ^^^^^ not found in this scope

error[E0405]: cannot find trait `Copy` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\value.rs:130:24
    |
130 | impl<R: RegisterValue> Copy for Value<R> {}
    |                        ^^^^ not found in this scope

error[E0405]: cannot find trait `Default` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\value.rs:132:24
    |
132 | impl<R: RegisterValue> Default for Value<R> {
    |                        ^^^^^^^ not found in this scope

error[E0405]: cannot find trait `PartialEq` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\value.rs:164:50
    |
164 | impl<R: RegisterValue, T: Into<Value<R>> + Copy> PartialEq<T> for Value<R> {
    |                                                  ^^^^^^^^^ not found in this scope

error[E0405]: cannot find trait `Into` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\value.rs:164:27
    |
164 |   impl<R: RegisterValue, T: Into<Value<R>> + Copy> PartialEq<T> for Value<R> {
    |                             ^^^^ help: a trait with a similar name exists: `Int`
    |
   ::: C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\mod.rs:26:5
    |
26  | /     pub trait Int:
27  | |         BitAnd<Output = Self>
28  | |         + BitOr<Output = Self>
29  | |         + BitXor<Output = Self>
...   |
39  | |         const WIDTH: usize;
40  | |     }
    | |_____- similarly named trait `Int` defined here

error[E0405]: cannot find trait `Copy` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\value.rs:164:44
    |
164 | impl<R: RegisterValue, T: Into<Value<R>> + Copy> PartialEq<T> for Value<R> {
    |                                            ^^^^ not found in this scope

error[E0405]: cannot find trait `Eq` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\value.rs:172:24
    |
172 | impl<R: RegisterValue> Eq for Value<R> {}
    |                        ^^ not found in this scope

error[E0405]: cannot find trait `BitOr` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\value.rs:174:49
    |
174 | impl<R: RegisterValue, T: Into<FieldValues<R>>> BitOr<T> for Value<R> {
    |                                                 ^^^^^ not found in this scope

error[E0405]: cannot find trait `Into` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\value.rs:174:27
    |
174 |   impl<R: RegisterValue, T: Into<FieldValues<R>>> BitOr<T> for Value<R> {
    |                             ^^^^ help: a trait with a similar name exists: `Int`
    |
   ::: C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\mod.rs:26:5
    |
26  | /     pub trait Int:
27  | |         BitAnd<Output = Self>
28  | |         + BitOr<Output = Self>
29  | |         + BitXor<Output = Self>
...   |
39  | |         const WIDTH: usize;
40  | |     }
    | |_____- similarly named trait `Int` defined here

error[E0405]: cannot find trait `BitOrAssign` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\value.rs:187:49
    |
187 | impl<R: RegisterValue, T: Into<FieldValues<R>>> BitOrAssign<T> for Value<R> {
    |                                                 ^^^^^^^^^^^ not found in this scope

error[E0405]: cannot find trait `Into` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\value.rs:187:27
    |
187 |   impl<R: RegisterValue, T: Into<FieldValues<R>>> BitOrAssign<T> for Value<R> {
    |                             ^^^^ help: a trait with a similar name exists: `Int`
    |
   ::: C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\mod.rs:26:5
    |
26  | /     pub trait Int:
27  | |         BitAnd<Output = Self>
28  | |         + BitOr<Output = Self>
29  | |         + BitXor<Output = Self>
...   |
39  | |         const WIDTH: usize;
40  | |     }
    | |_____- similarly named trait `Int` defined here

error[E0405]: cannot find trait `BitAnd` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\value.rs:195:56
    |
195 | impl<R: RegisterValue, T: Into<Fields<R>> + MayToggle> BitAnd<T> for Value<R> {
    |                                                        ^^^^^^ not found in this scope

error[E0405]: cannot find trait `Into` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\value.rs:195:27
    |
195 |   impl<R: RegisterValue, T: Into<Fields<R>> + MayToggle> BitAnd<T> for Value<R> {
    |                             ^^^^ help: a trait with a similar name exists: `Int`
    |
   ::: C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\mod.rs:26:5
    |
26  | /     pub trait Int:
27  | |         BitAnd<Output = Self>
28  | |         + BitOr<Output = Self>
29  | |         + BitXor<Output = Self>
...   |
39  | |         const WIDTH: usize;
40  | |     }
    | |_____- similarly named trait `Int` defined here

error[E0405]: cannot find trait `BitXor` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\value.rs:205:52
    |
205 | impl<R: RegisterValue, T: Into<Fields<R, Toggle>>> BitXor<T> for Value<R> {
    |                                                    ^^^^^^ not found in this scope

error[E0405]: cannot find trait `Into` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\value.rs:205:27
    |
205 |   impl<R: RegisterValue, T: Into<Fields<R, Toggle>>> BitXor<T> for Value<R> {
    |                             ^^^^ help: a trait with a similar name exists: `Int`
    |
   ::: C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\mod.rs:26:5
    |
26  | /     pub trait Int:
27  | |         BitAnd<Output = Self>
28  | |         + BitOr<Output = Self>
29  | |         + BitXor<Output = Self>
...   |
39  | |         const WIDTH: usize;
40  | |     }
    | |_____- similarly named trait `Int` defined here

error[E0405]: cannot find trait `BitXorAssign` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\value.rs:218:52
    |
218 | impl<R: RegisterValue, T: Into<Fields<R, Toggle>>> BitXorAssign<T> for Value<R> {
    |                                                    ^^^^^^^^^^^^ not found in this scope

error[E0405]: cannot find trait `Into` in this scope
   --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\value.rs:218:27
    |
218 |   impl<R: RegisterValue, T: Into<Fields<R, Toggle>>> BitXorAssign<T> for Value<R> {
    |                             ^^^^ help: a trait with a similar name exists: `Int`
    |
   ::: C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\mod.rs:26:5
    |
26  | /     pub trait Int:
27  | |         BitAnd<Output = Self>
28  | |         + BitOr<Output = Self>
29  | |         + BitXor<Output = Self>
...   |
39  | |         const WIDTH: usize;
40  | |     }
    | |_____- similarly named trait `Int` defined here

error[E0405]: cannot find trait `BitAnd` in this scope
  --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\mod.rs:27:9
   |
27 |         BitAnd<Output = Self>
   |         ^^^^^^ not found in this scope

error[E0405]: cannot find trait `BitOr` in this scope
  --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\mod.rs:28:11
   |
28 |         + BitOr<Output = Self>
   |           ^^^^^ not found in this scope

error[E0405]: cannot find trait `BitXor` in this scope
  --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\mod.rs:29:11
   |
29 |         + BitXor<Output = Self>
   |           ^^^^^^ not found in this scope

error[E0405]: cannot find trait `Not` in this scope
  --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\mod.rs:30:11
   |
30 |         + Not<Output = Self>
   |           ^^^ not found in this scope

error[E0405]: cannot find trait `Shl` in this scope
  --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\mod.rs:31:11
   |
31 |         + Shl<usize, Output = Self>
   |           ^^^ not found in this scope

error[E0405]: cannot find trait `Shr` in this scope
  --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\mod.rs:32:11
   |
32 |         + Shr<usize, Output = Self>
   |           ^^^ not found in this scope

error[E0405]: cannot find trait `Eq` in this scope
  --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\mod.rs:33:11
   |
33 |         + Eq
   |           ^^ not found in this scope

error[E0405]: cannot find trait `Default` in this scope
  --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\mod.rs:34:11
   |
34 |         + Default
   |           ^^^^^^^ not found in this scope

error[E0405]: cannot find trait `Copy` in this scope
  --> C:\Users\torfinn.ingolfsen\.cargo\registry\src\github.com-1ecc6299db9ec823\peripherals-0.1.1\src\utils\mod.rs:37:11
   |
37 |         + Copy
   |           ^^^^ not found in this scope

Some errors have detailed explanations: E0405, E0432, E0463.
For more information about an error, try `rustc --explain E0405`.
error: could not compile `peripherals` due to 110 previous errors
warning: build failed, waiting for other jobs to finish...

I'm a newbie with Rust, so it possible that I have overlooked something fundamental here. Of course rustup doesn't know how to add the suggested target:

[C:\Users\torfinn.ingolfsen\OneDrive - Inventas AS\Documents\Inventas\0_faglig\utvikling\rust\embedded\embedded-msp430] $ rustup target add msp430-none-elf
error: toolchain 'stable-x86_64-pc-windows-msvc' does not contain component 'rust-std' for target 'msp430-none-elf'
note: not all platforms have the standard library pre-compiled: https://doc.rust-lang.org/nightly/rustc/platform-support.html