Skip to content

Rollup of 13 pull requests #67643

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
01599fc
note other end-point when typeck range pats
Centril Dec 13, 2019
3c56a65
reuse `capacity` variable in slice::repeat
king6cong Dec 24, 2019
697a38b
Add test cases which exercise the fix.
jumbatm Dec 25, 2019
d0dc932
Pass new instance instead of self.instance to simd_shuffle_indices.
jumbatm Dec 24, 2019
dca0a33
Run RustFmt
jumbatm Dec 24, 2019
94089ad
Suggest adding a lifetime constraint when opaque type is responsible …
ohadravid Dec 24, 2019
3e9d1cc
Change wording for lifetime suggestion for opaque types from `constra…
ohadravid Dec 25, 2019
415ecc8
Add Scalar::to_(u|i)16 methods
pvdrz Dec 25, 2019
3a2ef17
tidy: change msdn links to newer locations
tesuji Dec 25, 2019
dfcc44d
rewrite scalar to integer methods
pvdrz Dec 25, 2019
b98633b
Store callbacks in global statics
Mark-Simulacrum Dec 25, 2019
4dcc627
Fix skipped setting of syntax::GLOBALS
Mark-Simulacrum Dec 25, 2019
b8ccc0f
Remove `compiler_builtins_lib` documentation
kraai Dec 25, 2019
21e636f
Remove redundant link texts
kraai Dec 26, 2019
2f43313
Convert collapsed to shortcut reference links
kraai Dec 26, 2019
652cec1
Work around a resolve bug in const prop
oli-obk Dec 26, 2019
be9a3c6
Update .mailmap
pvdrz Dec 26, 2019
3ab0663
Prevent polymorphic const prop on assignments
oli-obk Dec 26, 2019
9c0f3f7
Document safety of Path casting
Mark-Simulacrum Dec 26, 2019
39b2ce8
Rollup merge of #67287 - Centril:mismatch-range-improve-diag, r=estebank
Mark-Simulacrum Dec 26, 2019
5fc61ef
Rollup merge of #67576 - king6cong:slice_repeat, r=Dylan-DPC
Mark-Simulacrum Dec 26, 2019
d755d79
Rollup merge of #67595 - ohadravid:impl-trait-does-not-live-long-enou…
Mark-Simulacrum Dec 26, 2019
aa04474
Rollup merge of #67598 - jumbatm:issue67557_simd_shuffle, r=oli-obk
Mark-Simulacrum Dec 26, 2019
f121b3f
Rollup merge of #67604 - christianpoveda:scalar_to_(u|i)64, r=RalfJung
Mark-Simulacrum Dec 26, 2019
0bb17cd
Rollup merge of #67605 - lzutao:msdn-links, r=Mark-Simulacrum
Mark-Simulacrum Dec 26, 2019
871bf33
Rollup merge of #67614 - Mark-Simulacrum:global-callbacks, r=Zoxc
Mark-Simulacrum Dec 26, 2019
0a0017e
Rollup merge of #67617 - kraai:remove-compiler_builtins_lib-docs, r=D…
Mark-Simulacrum Dec 26, 2019
39935ea
Rollup merge of #67629 - kraai:remove-redundant-link-texts, r=stevekl…
Mark-Simulacrum Dec 26, 2019
eeaaee8
Rollup merge of #67631 - oli-obk:polymorphic_promotion, r=wesleywiser
Mark-Simulacrum Dec 26, 2019
1f2ded8
Rollup merge of #67632 - kraai:remove-collapsed-reference-links, r=st…
Mark-Simulacrum Dec 26, 2019
d042916
Rollup merge of #67633 - christianpoveda:patch-1, r=Mark-Simulacrum
Mark-Simulacrum Dec 26, 2019
fef4606
Rollup merge of #67635 - Mark-Simulacrum:path-doc-unsafe, r=dtolnay
Mark-Simulacrum Dec 26, 2019
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
Prev Previous commit
Next Next commit
Pass new instance instead of self.instance to simd_shuffle_indices.
  • Loading branch information
jumbatm committed Dec 25, 2019
commit d0dc9323e18f8e1884b571a3968c13d0cf1d5a1e
6 changes: 3 additions & 3 deletions src/librustc_codegen_ssa/mir/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -618,14 +618,14 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
if let mir::PlaceRef {
base:
&PlaceBase::Static(box Static {
kind: StaticKind::Promoted(promoted, _),
kind: StaticKind::Promoted(promoted, substs),
ty,
def_id: _,
def_id,
}),
projection: &[],
} = place.as_ref()
{
let c = bx.tcx().const_eval_promoted(self.instance, promoted);
let c = bx.tcx().const_eval_promoted(Instance::new(def_id, self.monomorphize(&substs)), promoted);
let (llval, ty) = self.simd_shuffle_indices(
&bx,
terminator.source_info.span,
Expand Down