Skip to content

Commit c3f462b

Browse files
committed
Auto merge of #518 - Zeegomo:local_crate/error_code, r=pietroalbini
add crate with build error codes
2 parents cf09f9d + f9aeb5f commit c3f462b

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed

local-crates/error-code/Cargo.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[package]
2+
name = "error_code"
3+
version = "0.1.0"
4+
authors = ["Giacomo Pasini <g.pasini98@gmail.com>"]
5+
edition = "2018"
6+
7+
[dependencies]

local-crates/error-code/src/lib.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
pub const STRING: String = String::from("invalid");
2+
3+
static X: i32 = 42;
4+
const Y: i32 = X;
5+
6+
fn hello() {
7+
println!("Hello, world!");
8+
}

tests/minicrater/full/results.expected.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,24 @@
108108
],
109109
"url": "https://github.com/rust-lang/crater/tree/master/local-crates/clippy-warn"
110110
},
111+
{
112+
"krate": {
113+
"Local": "error-code"
114+
},
115+
"name": "error-code (local)",
116+
"res": "build-fail",
117+
"runs": [
118+
{
119+
"log": "stable/local/error-code",
120+
"res": "build-fail:unknown"
121+
},
122+
{
123+
"log": "beta/local/error-code",
124+
"res": "build-fail:unknown"
125+
}
126+
],
127+
"url": "https://github.com/rust-lang/crater/tree/master/local-crates/error-code"
128+
},
111129
{
112130
"krate": {
113131
"Local": "ice-regression"

0 commit comments

Comments
 (0)