jonas-schievink / rubble

(going to be a) BLE stack for embedded Rust
BSD Zero Clause License
397 stars 56 forks source link

Reproduce incr. comp. linker bug on nightly and report it #23

Closed jonas-schievink closed 5 years ago

jonas-schievink commented 5 years ago

See: https://github.com/jonas-schievink/rubble/compare/incr-linker-error

Build the first commit (04cf1d1), then the second (cedf7be), and you should get a linker error like this:

  = note: rust-lld: error: undefined symbol: _$LT$rubble..ble..time..Duration$u20$as$u20$core..fmt..Display$GT$::fmt::h343296729f83afc4
          >>> referenced by time.rs:129 (src/ble/time.rs:129)
          >>>               /home/jonas/dev/rubble/target/thumbv7em-none-eabi/debug/deps/rubble-a38354bf4561073f.3qtzuenakrd0qcaf.rcgu.o:(_$LT$$RF$T$u20$as$u20$core..fmt..Debug$GT$::fmt::h26ac05bd6f4f461e)

This is on rustc 1.33.0 (2aa4c46cf 2019-02-28).

jonas-schievink commented 5 years ago

Reproduces on rustc 1.35.0-nightly (4c27fb19b 2019-03-25)

jonas-schievink commented 5 years ago

Opened https://github.com/rust-lang/rust/issues/59535, closing this one