-
-
Save sruggier/79ea3c87ea843a52d716 to your computer and use it in GitHub Desktop.
Rust issue #13681 minimal trigger
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
BUILD_DIR=./build | |
rm -rf "$BUILD_DIR" | |
mkdir -p "$BUILD_DIR" | |
RUST_ARGS=(-A dead-code -g -L "$BUILD_DIR" --out-dir="$BUILD_DIR") | |
echo "Building l" && | |
rustc "${RUST_ARGS[@]}" l.rs && | |
echo "Building C" && | |
rustc "${RUST_ARGS[@]}" -Z lto C.rs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern crate l; | |
pub struct C; | |
pub fn p() -> C { | |
C | |
} | |
fn main() { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![crate_type = "rlib"] | |
struct S; | |
impl S { | |
fn f(&mut self) { } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./build.sh 2>&1 | tee /tmp/build.log | grep -q 'Ty == resolve(Ty.getRef()) && "type was not uniqued' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment