rust/src/librustc_trans/trans
bors 91b27ec9be Auto merge of #30724 - nikomatsakis:feature-gate-defaulted-type-parameters, r=pnkfelix
It was recently realized that we accept defaulted type parameters everywhere, without feature gate, even though the only place that we really *intended* to accept them were on types. This PR adds a lint warning unless the "type-parameter-defaults" feature is enabled. This should eventually become a hard error.

This is a [breaking-change] in that new feature gates are required (or simply removing the defaults, which is probably a better choice as they have little effect at this time). Results of a [crater run][crater] suggest that approximately 5-15 crates are affected. I didn't do the measurement quite right so that run cannot distinguish "true" regressions from "non-root" regressions, but even the upper bound of 15 affected crates seems relatively minimal.

[crater]: https://gist.github.com/nikomatsakis/760c6a67698bd24253bf

cc @rust-lang/lang
r? @pnkfelix
2016-01-07 06:32:56 +00:00
..
debuginfo Auto merge of #30184 - petrochenkov:ascr, r=nikomatsakis 2015-12-19 02:45:15 +00:00
mir Create personality slot when translating Resume 2016-01-06 13:57:52 +02:00
_match.rs Fix & ref ident patterns for DSTs 2015-12-10 00:35:55 +13:00
adt.rs Fix typo 2015-12-15 12:51:08 -06:00
asm.rs Auto merge of #29735 - Amanieu:asm_indirect_constraint, r=pnkfelix 2015-12-14 13:48:41 +00:00
assert_dep_graph.rs Add assert-dep-graph testing mechanism and tests 2016-01-05 21:05:51 -05:00
attributes.rs std: Stabilize APIs for the 1.6 release 2015-12-05 15:09:44 -08:00
base.rs Auto merge of #30724 - nikomatsakis:feature-gate-defaulted-type-parameters, r=pnkfelix 2016-01-07 06:32:56 +00:00
basic_block.rs
build.rs
builder.rs Align pointers to DST fields properly 2015-12-08 00:03:45 +13:00
cabi_aarch64.rs
cabi_arm.rs
cabi_mips.rs
cabi_powerpc.rs
cabi_x86_64.rs trans: Use an isize to count the number of registers so we don't underflow for fn's with > 7 args in debug builds. 2015-10-16 21:10:52 -04:00
cabi_x86_win64.rs win64/msvc: large or oddly-sized types pass by-ref 2015-10-12 16:23:47 -06:00
cabi_x86.rs
cabi.rs
callee.rs Rollup merge of #30384 - nrc:diagnostics, r=@nikomatsakis 2015-12-18 16:47:37 +05:30
cleanup.rs Revisit implementation of custom unwind resume; 2015-10-18 19:57:28 -07:00
closure.rs Forward attributes of translated function/closure to trans_fn/trans_closure. 2015-12-31 08:06:23 -05:00
common.rs Avoid adding drops for types w/ no dtor in MIR construction 2015-12-31 17:05:08 -05:00
consts.rs Auto merge of #30661 - michaelwoerister:trans_fn_attrs, r=nrc 2016-01-04 22:09:52 +00:00
context.rs std: Stabilize APIs for the 1.6 release 2015-12-05 15:09:44 -08:00
controlflow.rs Remove some unnecessary indirection from HIR structures 2015-12-07 17:17:41 +03:00
datum.rs Align pointers to DST fields properly 2015-12-08 00:03:45 +13:00
declare.rs Consistently normalize fn types after erasing lifetimes. 2015-11-14 14:47:49 -08:00
expr.rs Forward attributes of translated function/closure to trans_fn/trans_closure. 2015-12-31 08:06:23 -05:00
foreign.rs Auto merge of #30661 - michaelwoerister:trans_fn_attrs, r=nrc 2016-01-04 22:09:52 +00:00
glue.rs Avoid adding drops for types w/ no dtor in MIR construction 2015-12-31 17:05:08 -05:00
inline.rs Auto merge of #30532 - nikomatsakis:cross-item-dependencies, r=mw 2016-01-06 18:37:57 +00:00
intrinsic.rs Annotate the compiler with information about what it is doing when. 2016-01-05 21:05:50 -05:00
llrepr.rs
machine.rs
macros.rs
meth.rs Forward attributes of translated function/closure to trans_fn/trans_closure. 2015-12-31 08:06:23 -05:00
mod.rs Add assert-dep-graph testing mechanism and tests 2016-01-05 21:05:51 -05:00
monomorphize.rs Forward attributes of translated function/closure to trans_fn/trans_closure. 2015-12-31 08:06:23 -05:00
tvec.rs Use ast attributes every where (remove HIR attributes). 2015-09-16 10:57:06 +12:00
type_.rs Use ast attributes every where (remove HIR attributes). 2015-09-16 10:57:06 +12:00
type_of.rs Fix the fallout 2015-11-19 11:41:09 +03:00
value.rs