Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add --edition option #50080

Merged
merged 4 commits into from
Apr 21, 2018
Merged

add --edition option #50080

merged 4 commits into from
Apr 21, 2018

Conversation

klnusbaum
Copy link
Contributor

This adds an official edition flag to the rust compiler

@@ -2422,6 +2427,11 @@ mod dep_tracking {
}
}

pub fn edition_name_list() -> String {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would really love some guidance here. This function really needs to return a &'static str but I'm not sure how to do that. Any thoughts?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Must it return a 'static str? There's no way to do this without some unsafe code or hardcoding it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the reason I think it needs to be 'static str is that on line 1646, opt::opt_s requires that the "valid options string" be of type &'static str. Is there some way to generate this String while:

  1. Not introducing something that needs to change whenever we add a new edition in the libsyntax/edition.rs file.
  2. And generating a string that is of type &'static str

@rust-highfive
Copy link
Collaborator

The job x86_64-gnu-llvm-3.9 of your PR failed on Travis (raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.
[00:05:47]    Compiling rustc_errors v0.0.0 (file:///checkout/src/librustc_errors)
[00:07:19]    Compiling proc_macro v0.0.0 (file:///checkout/src/libproc_macro)
[00:07:19]    Compiling rustc_const_math v0.0.0 (file:///checkout/src/librustc_const_math)
[00:07:44]    Compiling syntax_ext v0.0.0 (file:///checkout/src/libsyntax_ext)
[00:09:29] error[E0597]: borrowed value does not live long enough
[00:09:29]     --> librustc/session/config.rs:1646:14
[00:09:29]      |
[00:09:29] 1646 |             &edition_name_list(),
[00:09:29]      |              ^^^^^^^^^^^^^^^^^^^ temporary value does not live long enough
[00:09:29] 1654 |     ]);
[00:09:29] 1654 |     ]);
[00:09:29]      |       - temporary value only lives until here
[00:09:29]      |
[00:09:29]      = note: borrowed value must be valid for the static lifetime...
[00:09:29]      = note: consider using a `let` binding to increase its lifetime
[00:09:37] error: aborting due to previous error
[00:09:37] 
[00:09:37] For more information about this error, try `rustc --explain E0597`.
[00:09:37] error: Could not compile `rustc`.
[00:09:37] error: Could not compile `rustc`.
[00:09:37] 
[00:09:37] Caused by:
[00:09:37]   process didn't exit successfully: `/checkout/obj/build/bootstrap/debug/rustc --crate-name rustc librustc/lib.rs --color always --error-format json --crate-type dylib --emit=dep-info,link -C prefer-dynamic -C opt-level=2 -C metadata=ba75de4e9c022817 -C extra-filename=-ba75de4e9c022817 --out-dir /checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps --target x86_64-unknown-linux-gnu -L dependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps -L dependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/release/deps --extern rustc_apfloat=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_apfloat-1299638d641ea770.rlib --extern tempdir=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/libtempdir-65dde0349e75e965.rlib --extern syntax=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/libsyntax-d3b6fcf798f7d22a.so --extern rustc_const_math=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_const_math-895f7ddc4467bb8d.so --extern flate2=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/libflate2-3c8223b0152f22a5.rlib --extern serialize=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/libserialize-c04ded78717d5d67.so --extern serialize=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/libserialize-c04ded78717d5d67.rlib --extern syntax_pos=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/libsyntax_pos-9f3518d56a01456f.so --extern backtrace=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/libbacktrace-109fed6e8125a798.rlib --extern byteorder=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/libbyteorder-ca61dfec7c40c4d4.rlib --extern jobserver=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/libjobserver-5bcc8c1ccd509892.rlib --extern rustc_errors=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_errors-609e2421d03f9c9a.so --extern rustc_data_structures=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_data_structures-93cb1ddd29ab61a4.so --extern graphviz=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/libgraphviz-0bde40de32995f14.so --extern bitflags=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/libbitflags-9866e194db82a141.rlib --extern fmt_macros=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/libfmt_macros-3706e912fdb98df1.so --extern log=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/liblog-3e35efb9e5bc7a9a.rlib --extern arena=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/libarena-dd80e21b25e89693.so --extern proc_macro=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/libproc_macro-6e4119b5ec8457a3.so --extern lazy_static=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/liblazy_static-2803512e03c19cf7.rlib --extern rustc_back=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_back-861dba9fe03aa669.so -L native=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/build/backtrace-sys-8b35e3c2ea935fab/out/.libs -L native=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/build/miniz-sys-63734d0048644b22/out` (exit code: 101)
[00:09:37] command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "build" "--target" "x86_64-unknown-linux-gnu" "--release" "--locked" "--color" "always" "--features" " jemalloc" "--manifest-path" "/checkout/src/rustc/Cargo.toml" "--message-format" "json"
[00:09:37] expected success, got: exit code: 101
[00:09:37] thread 'main' panicked at 'cargo must succeed', bootstrap/compile.rs:1091:9
[00:09:37] travis_fold:end:stage0-rustc

[00:09:37] travis_time:end:stage0-rustc:start=1524174208667859168,finish=1524174477877419023,duration=269209559855


[00:09:37] failed to run: /checkout/obj/build/bootstrap/debug/bootstrap build
[00:09:37] Build completed unsuccessfully in 0:04:42
[00:09:37] make: *** [all] Error 1
[00:09:37] Makefile:28: recipe for target 'all' failed

The command "stamp sh -x -c "$RUN_SCRIPT"" exited with 2.
travis_time:start:02a9df86
$ date && (curl -fs --head https://google.com | grep ^Date: | sed 's/Date: //g' || true)

I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact @TimNN. (Feature Requests)

@@ -410,6 +412,7 @@ top_level_options!(

// Remap source path prefixes in all output (messages, object files, debug, etc)
remap_path_prefix: Vec<(PathBuf, PathBuf)> [UNTRACKED],
edition: Edition [UNTRACKED],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this needs to be TRACKED?

this is for incremental compilation; changing this should probably force a recompile

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, so that's the the TRACKED/UNTRACKED thing means. Cool. I'll change this.

@@ -2422,6 +2427,11 @@ mod dep_tracking {
}
}

pub fn edition_name_list() -> String {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Must it return a 'static str? There's no way to do this without some unsafe code or hardcoding it.

Err(_) => early_error(
ErrorOutputType::default(),
&format!(
"argument for --edition must be one of: \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We also need to handle stability here. If the picked edition is unstable, we should throw an error if the compiler is not nightly.

You can add a .stable() method to Edition that returns true for 2015.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will do

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How do I know if the compiler is nightly?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nvm, found it

@kennytm kennytm added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Apr 19, 2018
…e editions are allowed to be used on non-nightly builds
}

// must be in order from oldest to newest
pub const ALL_EDITIONS: &[Edition] = &[Edition::Edition2015, Edition::Edition2018];

pub const EDITION_NAME_LIST: &'static str = "2015|2018";
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would really like to avoid introducing this. Would be great if we could derive it some way from something that already exists so we have one less thing to change when adding an edition.

Copy link
Member

@Manishearth Manishearth Apr 20, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using custom derives within libsyntax itself is annoying and tricky. We'd need to do a snapshot, I think.

@rust-highfive
Copy link
Collaborator

The job x86_64-gnu-llvm-3.9 of your PR failed on Travis (raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.
[00:35:13]    Compiling bitflags v0.9.1
[00:35:16]    Compiling rand v0.4.2
[00:35:22]    Compiling tempdir v0.3.7
[00:35:22]    Compiling rustdoc v0.0.0 (file:///checkout/src/librustdoc)
[00:35:32] error[E0560]: struct `rustc::session::config::DebuggingOptions` has no field named `edition`
[00:35:32]     |
[00:35:32] 158 |             edition,
[00:35:32] 158 |             edition,
[00:35:32]     |             ^^^^^^^ `rustc::session::config::DebuggingOptions` does not have this field
[00:35:32]     |
[00:35:32]     = note: available fields are: `codegen_backend`, `verbose`, `span_free_formats`, `identify_regions`, `emit_end_regions` ... and 96 others
[00:35:32] 
[00:35:38] error[E0560]: struct `rustc::session::config::DebuggingOptions` has no field named `edition`
[00:35:38]    |
[00:35:38] 83 |             edition,
[00:35:38] 83 |             edition,
[00:35:38]    |             ^^^^^^^ `rustc::session::config::DebuggingOptions` does not have this field
[00:35:38]    |
[00:35:38]    = note: available fields are: `codegen_backend`, `verbose`, `span_free_formats`, `identify_regions`, `emit_end_regions` ... and 96 others
[00:35:38] 
[00:35:38] error[E0560]: struct `rustc::session::config::DebuggingOptions` has no field named `edition`
[00:35:38]     |
[00:35:38] 226 |             edition,
[00:35:38] 226 |             edition,
[00:35:38]     |             ^^^^^^^ `rustc::session::config::DebuggingOptions` does not have this field
[00:35:38]     |
[00:35:38]     = note: available fields are: `codegen_backend`, `verbose`, `span_free_formats`, `identify_regions`, `emit_end_regions` ... and 96 others
[00:35:38] error: aborting due to 3 previous errors
[00:35:38] 
[00:35:38] For more information about this error, try `rustc --explain E0560`.
[00:35:38] error: Could not compile `rustdoc`.
---
[00:35:38] 
[00:35:38] 
[00:35:38] failed to run: /checkout/obj/build/bootstrap/debug/bootstrap build
[00:35:38] Build completed unsuccessfully in 0:30:59
[00:35:39] make: *** [all] Error 1
[00:35:39] Makefile:28: recipe for target 'all' failed

The command "stamp sh -x -c "$RUN_SCRIPT"" exited with 2.
travis_time:start:09ef5eb4
$ date && (curl -fs --head https://google.com | grep ^Date: | sed 's/Date: //g' || true)

I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact @TimNN. (Feature Requests)

@Manishearth
Copy link
Member

(ping me when this is ready to review)

@Manishearth
Copy link
Member

Ah, it is, you just need to fix up some rustdoc code it seems. lmk when travis passes

@Manishearth
Copy link
Member

You also need to update some tests that use -Zedition

@rust-highfive
Copy link
Collaborator

The job x86_64-gnu-llvm-3.9 of your PR failed on Travis (raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
  Downloading https://files.pythonhosted.org/packages/3d/9b/989165ea2972bcb7013c593ccff1bcabb6f2e002163867839b761c9e15db/awscli-1.15.6-py2.py3-none-any.whl (1.3MB)
    0% |▎                               | 10kB 13.6MB/s eta 0:00:01
    1% |▌                               | 20kB 1.6MB/s eta 0:00:01
    2% |▉                               | 30kB 1.9MB/s eta 0:00:01
    3% |█                               | 40kB 1.7MB/s eta 0:00:01
---
    100% |████████████████████████████████| 1.3MB 972kB/s 
Collecting botocore==1.10.6 (from awscli)
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
  Downloading https://files.pythonhosted.org/packages/bd/7b/c4436ba14adda753c77cccb11c9ea200ada0f44b8b10ff6b3247d2de5041/botocore-1.10.6-py2.py3-none-any.whl (4.2MB)
    0% |                                | 10kB 20.1MB/s eta 0:00:01
    0% |▏                               | 20kB 25.0MB/s eta 0:00:01
    0% |▎                               | 30kB 32.0MB/s eta 0:00:01
    0% |▎                               | 40kB 13.0MB/s eta 0:00:01
---
Collecting jmespath<1.0.0,>=0.7.1 (from botocore==1.10.6->awscli)
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
  Downloading https://files.pythonhosted.org/packages/b7/31/05c8d001f7f87f0f07289a5fc0fc3832e9a57f2dbd4d3b0fee70e0d51365/jmespath-0.9.3-py2.py3-none-any.whl
Collecting python-dateutil<3.0.0,>=2.1; python_version >= "2.7" (from botocore==1.10.6->awscli)
  InsecurePlatformWarning
  InsecurePlatformWarning
  Downloading https://files.pythonhosted.org/packages/0c/57/19f3a65bcf6d5be570ee8c35a5398496e10a0ddcbc95393b2d17f86aaaf8/python_dateutil-2.7.2-py2.py3-none-any.whl (212kB)
    4% |█▌                              | 10kB 39.1MB/s eta 0:00:01
    9% |███                             | 20kB 41.3MB/s eta 0:00:01
    14% |████▋                           | 30kB 48.5MB/s eta 0:00:01
    19% |██████▏                         | 40kB 45.7MB/s eta 0:00:01
---
Collecting futures<4.0.0,>=2.2.0; python_version == "2.6" or python_version == "2.7" (from s3transfer<0.2.0,>=0.1.12->awscli)
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
  Downloading https://files.pythonhosted.org/packages/2d/99/b2c4e9d5a30f6471e410a146232b4118e697fa3ffc06d6a65efde84debd0/futures-3.2.0-py2-none-any.whl
Requirement already satisfied: six>=1.5 in /usr/lib/python2.7/dist-packages (from python-dateutil<3.0.0,>=2.1; python_version >= "2.7"->botocore==1.10.6->awscli)
Installing collected packages: docutils, jmespath, python-dateutil, botocore, pyasn1, rsa, futures, s3transfer, colorama, awscli
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
---
[00:55:03] ....................................................................................................
[00:55:09] ....................................................................................................
[00:55:17] ....................................................................................................
[00:55:23] ....................i............................................................ii.iii.............
[00:55:30] ................................FF..................................................................
[00:55:44] ....................................................................................................
[00:55:51] ...........i........................................................................................
[00:55:58] ....................................................................................................
[00:56:08] ....................................................................................................
---
[00:58:04] failures:
[00:58:04] 
[00:58:04] ---- [compile-fail] compile-fail/edition-raw-pointer-method-2015.rs stdout ----
[00:58:04]  
[00:58:04] error: /checkout/src/test/compile-fail/edition-raw-pointer-method-2015.rs:20: expected error not found: type annotations needed [tyvar_behind_raw_pointer]
[00:58:04] 
[00:58:04] error: /checkout/src/test/compile-fail/edition-raw-pointer-method-2015.rs:20: expected warning not found: this was previously accepted
[00:58:04] 
[00:58:04] error: 0 unexpected errors found, 2 expected errors not found
[00:58:04] status: exit code: 101
[00:58:04] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/compile-fail/edition-raw-pointer-method-2015.rs" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/compile-fail" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/compile-fail/edition-raw-pointer-method-2015.stage2-x86_64-unknown-linux-gnu" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-Zedition=2015" "-Zunstable-options" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/compile-fail/edition-raw-pointer-method-2015.stage2-x86_64-unknown-linux-gnu.aux" "-A" "unused"
[00:58:04] not found errors (from test file): [
[00:58:04]     Error {
[00:58:04]         line_num: 20,
[00:58:04]         kind: Some(
[00:58:04]       "/checkout/obj/build/x86_64-unknown-linux-gnu/test/compile-fail/edition-raw-pointer-method-2018.stage2-x86_64-unknown-linux-gnu.aux" "-A" "unused"
[00:58:04] not found errors (from test file): [
[00:58:04]     Error {
[00:58:04]         line_num: 20,
[00:58:04]         kind: Some(
[00:58:04]             Error
[00:58:04]         ),
[00:58:04]         msg: "the type of this value must be known to call a method on a raw pointer on it [E0908]"
[00:58:04] ]
[00:58:04] 
[00:58:04] 
[00:58:04] thread '[compile-fail] compile-fail/edition-raw-pointer-method-2018.rs' panicked at 'explicit panic', tools/compiletest/src/runtest.rs:1254:13
[00:58:04] 
[00:58:04] failures:
[00:58:04]     [compile-fail] compile-fail/edition-raw-pointer-method-2015.rs
[00:58:04]     [compile-fail] compile-fail/edition-raw-pointer-method-2018.rs
[00:58:04]     [compile-fail] compile-fail/edition-raw-pointer-method-2018.rs
[00:58:04] 
[00:58:04] test result: FAILED. 2294 passed; 2 failed; 15 ignored; 0 measured; 0 filtered out
[00:58:04] 
[00:58:04] thread 'main' panicked at 'Some tests failed', tools/compiletest/src/main.rs:488:22
[00:58:04] 
[00:58:04] 
[00:58:04] command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools-bin/compiletest" "--compile-lib-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib" "--run-lib-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "--rustc-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "--src-base" "/checkout/src/test/compile-fail" "--build-base" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/compile-fail" "--stage-id" "stage2-x86_64-unknown-linux-gnu" "--mode" "compile-fail" "--target" "x86_64-unknown-linux-gnu" "--host" "x86_64-unknown-linux-gnu" "--llvm-filecheck" "/usr/lib/llvm-3.9/bin/FileCheck" "--host-rustcflags" "-Crpath -O -Zunstable-options " "--target-rustcflags" "-Crpath -O -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--docck-python" "/usr/bin/python2.7" "--lldb-python" "/usr/bin/python2.7" "--gdb" "/usr/bin/gdb" "--quiet" "--llvm-version" "3.9.1\n" "--system-llvm" "--cc" "" "--cxx" "" "--cflags" "" "--llvm-components" "" "--llvm-cxxflags" "" "--adb-path" "adb" "--adb-test-dir" "/data/tmp/work" "--android-cross-path" "" "--color" "always"
[00:58:04] 
[00:58:04] 
[00:58:04] failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test
[00:58:04] Build completed unsuccessfully in 0:17:29
[00:58:04] Build completed unsuccessfully in 0:17:29
[00:58:04] Makefile:58: recipe for target 'check' failed
[00:58:04] make: *** [check] Error 1
2749060 ./obj
2749028 ./obj/build
1987156 ./obj/build/x86_64-unknown-linux-gnu
721972 ./src
---
149124 ./src/llvm-emscripten/test
148860 ./.git/modules
148856 ./.git/modules/src
123644 ./obj/build/bootstrap/debug/incremental/bootstrap-351vorei3hhuv
123640 ./obj/build/bootstrap/debug/incremental/bootstrap-351vorei3hhuv/s-f0azw6w3a0-er5mmk-11hvx567nthtm
110068 ./obj/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu
110064 ./obj/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release
106160 ./obj/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release/deps
102808 ./obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/codegen-backends
102808 ./obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/codegen-backends
102404 ./obj/build/bootstrap/debug/incremental/bootstrap-zki88qpb4pjm
102400 ./obj/build/bootstrap/debug/incremental/bootstrap-zki88qpb4pjm/s-f0b0ykeqng-zpkcmx-ozhagvmv8jm9
89124 ./obj/build/x86_64-unknown-linux-gnu/stage1
89100 ./obj/build/x86_64-unknown-linux-gnu/stage1/lib
87792 ./obj/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/incremental/core-31lccp6wy7orz
87792 ./obj/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/incremental/core-31lccp6wy7orz
87788 ./obj/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/incremental/core-31lccp6wy7orz/s-f0b0w7opqv-10hc7ey-2wwgcwetctbc5
84792 ./obj/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps
80880 ./obj/build/x86_64-unknown-linux-gnu/doc/std
78688 ./obj/build/x86_64-unknown-linux-gnu/stage0-tools/release
78560 ./obj/build/x86_64-unknown-linux-gnu/stage0-sysroot
---
56092 ./obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/bin
55340 ./obj/build/x86_64-unknown-linux-gnu/stage0-rustc/release
53564 ./obj/build/x86_64-unknown-linux-gnu/stage0-rustc/release/build
51876 ./obj/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/incremental/syntax-33oa6nnkk1g08
51872 ./obj/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/incremental/syntax-33oa6nnkk1g08/s-f0b0xsw5ov-fgbto1-ws7sapui8bx0
47824 ./obj/build/x86_64-unknown-linux-gnu/stage0-std
46652 ./obj/build/x86_64-unknown-linux-gnu/stage0-std/release
46648 ./obj/build/x86_64-unknown-linux-gnu/stage1-std/release
46644 ./src/test

I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact @TimNN. (Feature Requests)

@Manishearth
Copy link
Member

@bors r+

Hopefully Travis passes, if it doesn't, r- it?

@bors
Copy link
Contributor

bors commented Apr 21, 2018

📌 Commit c8c9bf9 has been approved by Manishearth

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Apr 21, 2018
@bors
Copy link
Contributor

bors commented Apr 21, 2018

⌛ Testing commit c8c9bf9 with merge 9af69fe...

bors added a commit that referenced this pull request Apr 21, 2018
add --edition option

This adds an official `edition` flag to the rust compiler
@bors
Copy link
Contributor

bors commented Apr 21, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: Manishearth
Pushing 9af69fe to master...

@bors bors merged commit c8c9bf9 into rust-lang:master Apr 21, 2018
@Manishearth
Copy link
Member

Fix cargo to use this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants