{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreidizjpkzvv5zx6vpbxl6ufxxpekj4bxnclnl6p22pxhur2v4fd22y",
    "uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3mnzv2q5gicc2"
  },
  "path": "/t/code-compiles-on-playground-but-fails-when-passed-via-stdin-to-rustc/24393#post_7",
  "publishedAt": "2026-06-11T18:43:32.000Z",
  "site": "https://internals.rust-lang.org",
  "textContent": "I think that, given the number and significance of edition differences that now exist, `rustc` ought to warn whenever it is invoked without an `--edition`, because almost nobody writing a `rustc` invocation today should be using the 2015 edition.\n\nAt one point I tried implementing such a warning; the complication I found was that very many of the “UI” tests (tests that compile code and look at the compiler output) were written without any edition set, and each one would gain a new warning unless modified to set the edition.",
  "title": "Code compiles on playground but fails when passed via stdin to rustc"
}