]> git.lizzy.rs Git - rust.git/commit - src/tools/clippy
Rollup merge of #69899 - ecstatic-morse:const-idx-methods, r=oli-obk
authorMazdak Farrokhzad <twingoow@gmail.com>
Wed, 18 Mar 2020 17:03:42 +0000 (18:03 +0100)
committerGitHub <noreply@github.com>
Wed, 18 Mar 2020 17:03:42 +0000 (18:03 +0100)
commit252184969b7191e8be9b485b14a4f0fd216947da
treeb05137f2581a6b579d904df1fc7433c17341889b
parenta958314472f07a71e6d2e59d8dbf73f9edee70c5
parent9ac93eee6df4ca08e69ec97a112657640deb8bb3
Rollup merge of #69899 - ecstatic-morse:const-idx-methods, r=oli-obk

Make methods declared by `newtype_index` macro `const`

Crates that use the macro to define an `Idx` type need to enable `#![feature(const_if_match, const_panic)]`.
src/librustc/ty/mod.rs
src/librustc_span/symbol.rs