Skip to content

Commit 9b01b51

Browse files
committed
rustc/driver: remove lifetimes from consts
1 parent d599f5b commit 9b01b51

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

src/librustc_driver/lib.rs

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -152,21 +152,14 @@ pub const EXIT_SUCCESS: isize = 0;
152152
/// Exit status code used for compilation failures and invalid flags.
153153
pub const EXIT_FAILURE: isize = 1;
154154

155-
const BUG_REPORT_URL: &'static str = "https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.\
156-
md#bug-reports";
157-
158-
const ICE_REPORT_COMPILER_FLAGS: &'static [&'static str] = &[
159-
"Z",
160-
"C",
161-
"crate-type",
162-
];
163-
const ICE_REPORT_COMPILER_FLAGS_EXCLUDE: &'static [&'static str] = &[
164-
"metadata",
165-
"extra-filename",
166-
];
167-
const ICE_REPORT_COMPILER_FLAGS_STRIP_VALUE: &'static [&'static str] = &[
168-
"incremental",
169-
];
155+
const BUG_REPORT_URL: &str = "https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.\
156+
md#bug-reports";
157+
158+
const ICE_REPORT_COMPILER_FLAGS: &[&str] = &["Z", "C", "crate-type"];
159+
160+
const ICE_REPORT_COMPILER_FLAGS_EXCLUDE: &[&str] = &["metadata", "extra-filename"];
161+
162+
const ICE_REPORT_COMPILER_FLAGS_STRIP_VALUE: &[&str] = &["incremental"];
170163

171164
pub fn abort_on_err<T>(result: Result<T, CompileIncomplete>, sess: &Session) -> T {
172165
match result {

0 commit comments

Comments
 (0)