Skip to content

Rolling up PRs in the queue #20733

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

Merged
merged 97 commits into from
Jan 8, 2015
Merged
Changes from 1 commit
Commits
Show all changes
97 commits
Select commit Hold shift + click to select a range
fcc2323
Be stricter with binders in method probing.
nikomatsakis Jan 6, 2015
279de38
Support methods invoked on projection types based on the bounds found…
nikomatsakis Jan 6, 2015
3f1cf32
Convert the TODO into FIXME.
nikomatsakis Jan 6, 2015
ab02f9e
Workaround privacy bug or something else; filter_to_traits() fails to
nikomatsakis Jan 6, 2015
1bc3c96
Correct the comment of the function `llsize_of_real`
simnalamburt Jan 6, 2015
9041e6e
Let `size_of` always be multiple of `min_align_of`
simnalamburt Jan 5, 2015
da83e4d
oboe removed
andrewyli Jan 7, 2015
4f801c4
Bump copyright year in doc footer
frewsxcv Jan 7, 2015
99b39cc
test: Move some tests to scoped instead of spawn
alexcrichton Jan 7, 2015
29ff43b
Fix rustdoc fallout from #20092
barosl Jan 7, 2015
b53e9f1
Register new snapshots
alexcrichton Jan 7, 2015
064cf55
Normalize associated types in various parts of `adt`
nikomatsakis Jan 7, 2015
6300a97
Remove assertion that substitutions are erased. It'd be nice if they
nikomatsakis Jan 7, 2015
bdc1bfd
Rename common::normalize to common::erase_regions
nikomatsakis Jan 7, 2015
cf136cd
Use the `erase_regions` helper within trans in deference to
nikomatsakis Jan 7, 2015
aec62af
Solve rather subtle bug in `replace_late_bound_regions` -- we were pa…
nikomatsakis Jan 7, 2015
448ddad
Better debug output in `decl_rust_fn`. The lack of output here has
nikomatsakis Jan 7, 2015
a70428a
Add regression test for #20582. Fixes #20582.
nikomatsakis Jan 7, 2015
f67a722
liballoc does not need liblibc under certain configurations
Ericson2314 Dec 26, 2014
efaa43a
liballoc's "external_funcs" and "external_crate" are now features
Ericson2314 Dec 26, 2014
2b84e44
Shorten cfg line lengths in liballoc
Ericson2314 Dec 26, 2014
ea9d5c9
liballoc's "extern_funcs" impl mod had a duplicate and missing item
Ericson2314 Dec 26, 2014
b1b4bc9
Fix warning in liballoc about unused constant MIN_ALIGN when cfg(feat…
Ericson2314 Dec 30, 2014
120a520
Reject all uses of non-typaram bounds
jroesch Jan 7, 2015
7deb9ab
Add isize, usize modules, deprecate int, uint modules
aturon Jan 7, 2015
dd3e89a
Rename `target_word_size` to `target_pointer_width`
nrc Jan 7, 2015
321d9dd
Update references to old snapshot
aturon Jan 7, 2015
511f0b8
std: Stabilize the std::hash module
alexcrichton Dec 9, 2014
801585d
Fix #[stable] coming before } instead of after
daboross Jan 7, 2015
9fcf097
fix typo in the ownership guide
Jan 7, 2015
209c701
std: Stablize the macros module
alexcrichton Jan 6, 2015
4a04117
mk: Remove RUST_NDEBUG and RUST_DEBUG defines. Unused
brson Jan 7, 2015
6e2bfe4
register new snapshots
Jan 7, 2015
e15f043
Show, String, Eq impls for Ranges
nrc Jan 7, 2015
63a9bd5
Fix precedence for ranges.
nrc Jan 7, 2015
82af2a1
Add `Box::new` method. Prereq for feature-gating `box <expr>` itself.
pnkfelix Jan 7, 2015
517f1cc
use slicing sugar
Jan 7, 2015
3c1ca17
Require that types cannot implement both Drop and Copy.
huonw Jan 6, 2015
9851b4f
std: Tweak String implementations
alexcrichton Jan 7, 2015
c27133e
Preliminary feature staging
brson Jan 6, 2015
8327bcc
remove slicing_syntax feature gate
Jan 7, 2015
ed4bebd
remove some `slicing_syntax` feature gates
Jan 7, 2015
4a31aad
Added `box_syntax` feature gate; added to std and rustc crates for bo…
pnkfelix Jan 7, 2015
cfeab25
Allow unknown features to bootstrap rustc with box_syntax feature.
pnkfelix Jan 7, 2015
ef5e8fc
run-pass tests: Add feature attributes to enable box pat/expr syntax …
pnkfelix Jan 7, 2015
e318125
compile-fail tests: Add feature attributes to enable box pat/expr syn…
pnkfelix Jan 7, 2015
c52486d
alternate version of coerce-match test that avoids box syntax.
pnkfelix Jan 7, 2015
b57b0e0
Test that box syntax, both in expressions and patterns, is caught by
pnkfelix Jan 7, 2015
3fd6bfa
Switch to using `Box::new` in the tests in `alloc::boxed`.
pnkfelix Jan 7, 2015
3010e10
allow unknown features in the log crate.
pnkfelix Jan 7, 2015
2606f99
Remove the unneeded Sized bound on TypeId creation
reem Jan 6, 2015
772cfe9
allow box_syntax and unknown features in the rustc_llvm crate.
pnkfelix Jan 8, 2015
5bd88a0
allow box_syntax and unknown features in the rustc_driver crate.
pnkfelix Jan 8, 2015
a0734ff
rustdoc: Render associated type bindings
tomjakubowski Jan 8, 2015
7d72719
fix the `&mut _` patterns
Jan 8, 2015
bfd6f95
allow box_syntax and unknown features in compiletest driver.
pnkfelix Jan 8, 2015
1cc69c4
RFC 558: Require parentheses for chained comparisons
dgrunwald Jan 8, 2015
ebe8411
rollup merge of #20237: RustOS-Fork-Holding-Ground/master
alexcrichton Jan 8, 2015
b1c23f6
rollup merge of #20611: simnalamburt/master
alexcrichton Jan 8, 2015
8bf3ee7
rollup merge of #20654: alexcrichton/stabilize-hash
alexcrichton Jan 8, 2015
f3b67af
rollup merge of #20663: brson/feature-staging
alexcrichton Jan 8, 2015
6301c78
rollup merge of #20680: nick29581/target-word
alexcrichton Jan 8, 2015
3800f64
rollup merge of #20688: jroesch/reject-non-param-bounds-followup
alexcrichton Jan 8, 2015
5b1a285
rollup merge of #20693: EchoAce/intro-oboe
alexcrichton Jan 8, 2015
cedaf46
rollup merge of #20695: frewsxcv/patch-2
alexcrichton Jan 8, 2015
f257848
rollup merge of #20696: reem/unsized-typeid
alexcrichton Jan 8, 2015
188bfbf
rollup merge of #20703: barosl/rustdoc-z-index-fallout
alexcrichton Jan 8, 2015
b21a0ce
rollup merge of #20704: alexcrichton/hopefully-make-tests-less-spurious
alexcrichton Jan 8, 2015
dd38f46
rollup merge of #20708: aturon/new-int-modules
alexcrichton Jan 8, 2015
5d342ac
rollup merge of #20709: thiagopnts/ownership-guide-typo
alexcrichton Jan 8, 2015
4373db6
rollup merge of #20710: daboross/fix-stable-before-bracket
alexcrichton Jan 8, 2015
a6bf767
rollup merge of #20716: brson/RUST_DEBUG
alexcrichton Jan 8, 2015
a204dc5
rollup merge of #20722: alexcrichton/audit-show
alexcrichton Jan 8, 2015
cb344be
rollup merge of #20725: tomjakubowski/rustdoc-misc
alexcrichton Jan 8, 2015
f6a7dc5
rollup merge of #20726: dgrunwald/require-parens-for-chained-comparison
alexcrichton Jan 8, 2015
9e4e882
Use ty::type_is_sized() so that we handle projection types properly.
nikomatsakis Jan 7, 2015
4dd368b
Normalize associated types in `with_field_tys`
nikomatsakis Jan 7, 2015
55c6a68
Add rather involved run-pass test case.
nikomatsakis Jan 7, 2015
18f426e
Update compile-fail test with new message that is generated as a
nikomatsakis Jan 7, 2015
cb98c3d
Normalize types of fields in struct literals during type-checking.
nikomatsakis Jan 7, 2015
6e806bd
rollup merge of #20721: japaric/snap
alexcrichton Jan 8, 2015
92cd8ea
Prohibit type parameter shadowing with a clunky hammer.
huonw Jan 8, 2015
773fdb3
rollup merge of #20631: huon/no-drop-and-copy
alexcrichton Jan 8, 2015
6afda64
rollup merge of #20728: huonw/type-param-shadowing
alexcrichton Jan 8, 2015
a7a2dd9
fallout: run-pass tests that use box. (many could be ported to `Box:…
pnkfelix Jan 8, 2015
51357e0
rollup merge of #20665: nikomatsakis/assoc-types-method-dispatch-proj…
alexcrichton Jan 8, 2015
bcebec5
rollup merge of #20706: nikomatsakis/assoc-types-projections-in-struc…
alexcrichton Jan 8, 2015
68a783a
Remove String impls and fix for make tidy
nrc Jan 8, 2015
6621325
rollup merge of #20657: alexcrichton/stabilize-macros
alexcrichton Jan 8, 2015
d859816
fallout: run-fail tests that use box. (many/all could be ported to `B…
pnkfelix Jan 8, 2015
d11bfba
rollup merge of #20720: nick29581/assoc-ice-missing
alexcrichton Jan 8, 2015
ae4bcd4
fallout: part of changes to compile-fail tests. (follows same patter…
pnkfelix Jan 8, 2015
373cbab
rollup merge of #20723: pnkfelix/feature-gate-box-syntax
alexcrichton Jan 8, 2015
11e265c
rollup merge of #20707: nikomatsakis/issue-20582
alexcrichton Jan 8, 2015
0dc48b4
Test fixes and rebase conflicts
alexcrichton Jan 8, 2015
ef46cae
rollup merge of #20731: nick29581/assoc-inherant
alexcrichton Jan 8, 2015
0abf458
More test fixes and rebase conflicts
alexcrichton Jan 8, 2015
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
Add regression test for #20582. Fixes #20582.
  • Loading branch information
nikomatsakis committed Jan 7, 2015
commit a70428aa09d0ffc2e9ecd35c22077cc07da6719c
27 changes: 27 additions & 0 deletions src/test/run-pass/associated-types-region-erasure-issue-20582.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// Copyright 2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// Regression test for #20582. This test caused an ICE related to
// inconsistent region erasure in trans.

struct Foo<'a> {
buf: &'a[u8]
}

impl<'a> Iterator for Foo<'a> {
type Item = &'a[u8];

fn next(&mut self) -> Option<<Self as Iterator>::Item> {
Some(self.buf)
}
}

fn main() {
}