forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of rust-lang#126649 - compiler-errors:nightly, r=lcnr
Fix `feature = "nightly"` in the new trait solver r? lcnr
- Loading branch information
Showing
18 changed files
with
124 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#[cfg(feature = "nightly")] | ||
mod impl_ { | ||
pub use rustc_data_structures::fx::FxHashMap as HashMap; | ||
pub use rustc_data_structures::fx::FxHashSet as HashSet; | ||
pub use rustc_data_structures::fx::FxIndexMap as IndexMap; | ||
pub use rustc_data_structures::fx::FxIndexSet as IndexSet; | ||
pub use rustc_data_structures::sso::SsoHashMap; | ||
pub use rustc_data_structures::sso::SsoHashSet; | ||
pub use rustc_data_structures::stack::ensure_sufficient_stack; | ||
pub use rustc_data_structures::sync::Lrc; | ||
} | ||
|
||
#[cfg(not(feature = "nightly"))] | ||
mod impl_ { | ||
pub use indexmap::IndexMap; | ||
pub use indexmap::IndexSet; | ||
pub use std::collections::HashMap; | ||
pub use std::collections::HashMap as SsoHashMap; | ||
pub use std::collections::HashSet; | ||
pub use std::collections::HashSet as SsoHashSet; | ||
pub use std::sync::Arc as Lrc; | ||
|
||
#[inline] | ||
pub fn ensure_sufficient_stack<R>(f: impl FnOnce() -> R) -> R { | ||
f() | ||
} | ||
} | ||
|
||
pub use impl_::*; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.