Skip to content
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
b99f9f7
Enclose type in backticks for "non-exhaustive patterns" error
varkor Nov 20, 2018
83388e8
Update an outdated comment in mir building
oli-obk Nov 21, 2018
5a2a251
Update as_temp.rs
oli-obk Nov 21, 2018
925274a
Update as_temp.rs
oli-obk Nov 21, 2018
f039872
Enclose type in backticks for "reached the recursion limit while auto…
varkor Nov 21, 2018
5c99ae6
Fix ICE with feature self_struct_ctor
estebank Nov 25, 2018
8d76f54
Use opt_def_id instead of having special branch
estebank Nov 25, 2018
057e6d3
Add TryFrom<&[T]> for [T; $N] where T: Copy
SimonSapin Nov 25, 2018
2d2b7c0
Make JSON output from -Zprofile-json valid
Mark-Simulacrum Nov 25, 2018
ae0d033
Update cargo
ehuss Nov 25, 2018
cc46685
Remove unsafe `unsafe` inner function.
frewsxcv Nov 26, 2018
cd20be5
Update outdated code comments in StringReader
jasonl Nov 26, 2018
d4a6e73
Use sort_by_cached_key when key the function is not trivial/free
ljedrz Nov 9, 2018
d8ba63f
Rollup merge of #55821 - ljedrz:cached_key_sorts, r=michaelwoerister
kennytm Nov 27, 2018
41232f6
Rollup merge of #56114 - varkor:nonexhaustive-backticks, r=nikomatsakis
kennytm Nov 27, 2018
bb35aad
Rollup merge of #56127 - rust-lang:oli-obk-patch-1, r=nikomatsakis
kennytm Nov 27, 2018
48276a7
Rollup merge of #56205 - estebank:ice-ice-baby, r=nikomatsakis
kennytm Nov 27, 2018
350f314
Rollup merge of #56216 - SimonSapin:array-tryfrom-slice, r=withoutboats
kennytm Nov 27, 2018
8420944
Rollup merge of #56223 - Mark-Simulacrum:self-profile-json, r=wesleyw…
kennytm Nov 27, 2018
5dc0f40
Rollup merge of #56224 - ehuss:update-cargo, r=alexcrichton
kennytm Nov 27, 2018
0e2dc16
Rollup merge of #56236 - frewsxcv:frewsxcv-unsafe-unsafe, r=cramertj
kennytm Nov 27, 2018
76d7daa
Rollup merge of #56255 - jasonl:update-old-documents, r=michaelwoerister
kennytm Nov 27, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/librustc/middle/resolve_lifetime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1573,7 +1573,7 @@ impl<'a, 'tcx> LifetimeContext<'a, 'tcx> {
.collect();

// ensure that we issue lints in a repeatable order
def_ids.sort_by_key(|&def_id| self.tcx.def_path_hash(def_id));
def_ids.sort_by_cached_key(|&def_id| self.tcx.def_path_hash(def_id));

for def_id in def_ids {
debug!(
Expand Down
2 changes: 1 addition & 1 deletion src/librustc/traits/object_safety.rs
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ impl<'a, 'tcx> TyCtxt<'a, 'tcx, 'tcx> {
.collect::<Vec<_>>();

// existential predicates need to be in a specific order
associated_types.sort_by_key(|item| self.def_path_hash(item.def_id));
associated_types.sort_by_cached_key(|item| self.def_path_hash(item.def_id));

let projection_predicates = associated_types.into_iter().map(|item| {
ty::ExistentialPredicate::Projection(ty::ExistentialProjection {
Expand Down
2 changes: 1 addition & 1 deletion src/librustc_mir/monomorphize/partitioning.rs
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,7 @@ fn collect_and_partition_mono_items<'a, 'tcx>(
output.push_str(" @@");
let mut empty = Vec::new();
let cgus = item_to_cgus.get_mut(i).unwrap_or(&mut empty);
cgus.as_mut_slice().sort_by_key(|&(ref name, _)| name.clone());
cgus.as_mut_slice().sort_by_cached_key(|&(ref name, _)| name.clone());
cgus.dedup();
for &(ref cgu_name, (linkage, _)) in cgus.iter() {
output.push_str(" ");
Expand Down