diff options
| author | ljedrz <ljedrz@gmail.com> | 2018-10-12 14:24:38 +0200 |
|---|---|---|
| committer | ljedrz <ljedrz@gmail.com> | 2018-10-13 10:09:41 +0200 |
| commit | 9b01b51560125338b6594f9919485e6084bee77d (patch) | |
| tree | dc37e7f54c7eb89f5f6ebd1150698287008cddfc | |
| parent | d599f5bf611018849452d5bb65c0087e1bc81a12 (diff) | |
| download | rust-9b01b51560125338b6594f9919485e6084bee77d.tar.gz rust-9b01b51560125338b6594f9919485e6084bee77d.zip | |
rustc/driver: remove lifetimes from consts
| -rw-r--r-- | src/librustc_driver/lib.rs | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/src/librustc_driver/lib.rs b/src/librustc_driver/lib.rs index 1fd2021b1e7..e56ffb20a90 100644 --- a/src/librustc_driver/lib.rs +++ b/src/librustc_driver/lib.rs @@ -152,21 +152,14 @@ pub const EXIT_SUCCESS: isize = 0; /// Exit status code used for compilation failures and invalid flags. pub const EXIT_FAILURE: isize = 1; -const BUG_REPORT_URL: &'static str = "https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.\ - md#bug-reports"; - -const ICE_REPORT_COMPILER_FLAGS: &'static [&'static str] = &[ - "Z", - "C", - "crate-type", -]; -const ICE_REPORT_COMPILER_FLAGS_EXCLUDE: &'static [&'static str] = &[ - "metadata", - "extra-filename", -]; -const ICE_REPORT_COMPILER_FLAGS_STRIP_VALUE: &'static [&'static str] = &[ - "incremental", -]; +const BUG_REPORT_URL: &str = "https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.\ + md#bug-reports"; + +const ICE_REPORT_COMPILER_FLAGS: &[&str] = &["Z", "C", "crate-type"]; + +const ICE_REPORT_COMPILER_FLAGS_EXCLUDE: &[&str] = &["metadata", "extra-filename"]; + +const ICE_REPORT_COMPILER_FLAGS_STRIP_VALUE: &[&str] = &["incremental"]; pub fn abort_on_err<T>(result: Result<T, CompileIncomplete>, sess: &Session) -> T { match result { |
