about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2021-08-31Check for Not trait implementationxordi-29/+63
2021-08-31Auto merge of #88467 - sexxi-goose:issue-88431, r=nikomatsakisbors-52/+77
2229: Drop any deref in move closure Fixes: #88431 r? `@nikomatsakis`
2021-08-31Apply suggestionsDeadbeef-4/+5
2021-08-31Report variant size without the discriminantDeadbeef-8/+15
2021-08-31Apply suggestionsDeadbeef-26/+18
2021-08-31Report Layout of enum variantsDeadbeef-1/+41
Followup of #83501, Fixes #86253.
2021-08-30Update E0785.mdMichael Howell-1/+1
2021-08-30fix(rustc_typeck): produce better errors for dyn auto traitMichael Howell-0/+71
Fixes #85026
2021-08-30Remove unnecessary `mut` from udp doctestsSönke Hahn-1/+1
2021-08-31Auto merge of #88414 - Aaron1011:guess-foreign-head-span, r=estebankbors-15/+97
Don't use `guess_head_span` in `predicates_of` for foreign span Previously, the result of `predicates_of` for a foreign trait would depend on the *current* state of the corresponding source file in the foreign crate. This could lead to ICEs during incremental compilation, since the on-disk contents of the upstream source file could potentially change without the upstream crate being recompiled. Additionally, this ensure that that the metadata we produce for a crate only depends on its *compiled* upstream dependencies (e.g an rlib or rmeta file), *not* the current on-disk state of the upstream crate source files.
2021-08-30Expand documentation for `FpCategory`.Kevin Reid-4/+22
I intend these changes to be helpful to readers who are not yet familiar with the quirks of floating-point numbers. Additionally, I felt it was misleading to describe `Nan` as being the result of division by zero, since most divisions by zero (except for 0/0) produce `Infinite` floats, so I moved that remark to the `Infinite` variant with adjustment. The first sentence of the `Nan` documentation is copied from `f32`; I followed the example of the `f64` documentation by referring to `f32` for general concepts, rather than duplicating the text.
2021-08-30Fix testsCameron Steffen-33/+33
2021-08-30Add let-else testsCameron Steffen-0/+322
2021-08-30Handle irrufutable or unreachable let-elseCameron Steffen-13/+41
2021-08-30Calculate LetSource laterCameron Steffen-40/+42
2021-08-30Handle let-else initializer edge case errorsCameron Steffen-15/+101
2021-08-30Enforce diverging let...elseCameron Steffen-5/+33
2021-08-30Fix clippy for let-elseCameron Steffen-3/+16
2021-08-30Temporary fix rustfmt for let-elseCameron Steffen-4/+11
2021-08-30Fix clippy for let-elseCameron Steffen-3/+16
2021-08-30Add let_else feature gateCameron Steffen-0/+33
2021-08-30Lower let-else to HIRCameron Steffen-16/+83
2021-08-30Refactor lower_stmtsCameron Steffen-55/+56
2021-08-30Move some methods to block moduleCameron Steffen-95/+111
2021-08-30Add let-else to ASTCameron Steffen-26/+92
2021-08-31Auto merge of #88100 - HTG-YT:edition2021-compopt-stabilization, r=m-ou-sebors-28/+28
Make Edition 2021 Stable An item of #87959. This is an "on-demand" pull request, which means it will be merged when it is the right time to.
2021-08-30Auto merge of #88369 - lcnr:cec-rename, r=oli-obkbors-4514/+917
update const generics feature gates **tl;dr: split const generics into three features: `adt_const_params`, `const_generics_defaults` and `generic_const_exprs`** continuing the work of `@BoxyUwU` in #88324, this PR - renames `feature(const_evaluatable_checked)` to `feature(generic_const_exprs)` which now doesn't need any other feature gate to work. Previously `feature(const_evaluatable_checked)` was only useful in combination with `feature(const_generics)`. - completely removes `feature(lazy_normalization_consts)`. This feature only supplied the parents generics to anonymous constants, which is pretty useless as generic anon consts are only allowed with `feature(generic_const_exprs)` anyways. - moves the ability to use additional const param types from `feature(const_generics)` into `feature(adt_const_params)`. As `feature(const_generics)` is now mostly useless without `feature(generic_const_exprs)` we also remove that feature flag. - updates tests, removing duplicates and unnecessary revisions in some cases and also deletes all unused `*.stderr` files. I not also remove the ordering restriction for const and type parameters if any of the three const generics features is active. This ordering restriction feels like the only "real" use of the current `feature(const_generics)` right now so this change isn't a perfect solution, but as I intend to stabilize the ordering - and `feature(const_generics_defaults)` - in the very near future, I think this is acceptable for now. --- cc `@rust-lang/project-const-generics` about the new feature names and this change in general. I don't think we need any external approval for this change but I do intend to publish an update to the const generics tracking issue the day this PR lands, so I don't want this merged yet. Apologies to whoever ends up reviewing this PR :sweat_smile: :heart: r? rust-lang/project-const-generics
2021-08-30Turn to ifs into a match.Mara Bos-16/+9
2021-08-30Update tests for array_into_iter lint upgrade.Mara Bos-82/+31
2021-08-30Don't give invalid suggestions in array_into_iter.Mara Bos-1/+1
2021-08-30Upgrade array_into_iter lint to include Deref-to-array types.Mara Bos-23/+29
2021-08-30Add test for extra <> in dyn suggestion.Mara Bos-0/+71
2021-08-30Don't suggest extra <> in dyn suggestion.Mara Bos-5/+10
2021-08-30Fix loading large rlibsMark Rousskov-3/+79
Bumps object crate to permit parsing archives with 64-bit table entries. These are primarily encountered when there's more than 4GB of archive data.
2021-08-30Add test case for using `slice::fill` with MaybeUninitKatherine Philip-0/+9
2021-08-30use `unwrap_unchecked` where possibleibraheemdev-11/+5
2021-08-30Test that turbofish does not swim away in prelude collusion suggestion.Mara Bos-0/+81
2021-08-30Keep turbofish in prelude collision lint.Mara Bos-2/+16
2021-08-30Add test for 2021 ambiguous [T; N].into_iter().Mara Bos-0/+70
2021-08-30Warn when [T; N].into_iter() is ambiguous in the new edition.Mara Bos-5/+26
2021-08-30No longer pass -Z unstable-options for edition 2021 in test.Mara Bos-1/+1
2021-08-30Update test output for stable Rust 2021.Mara Bos-24/+24
2021-08-30Auto merge of #88466 - sexxi-goose:issue-88372, r=nikomatsakisbors-0/+24
2229: Handle update to capture kind properly Fixes: #88372 r? `@nikomatsakis`
2021-08-30clean up `c::linger` conversionibraheemdev-2/+2
2021-08-30sunos systems add sanitizer supported.David Carlier-2/+6
2021-08-30add `TcpStream::set_linger` and `TcpStream::linger`ibraheemdev-1/+166
2021-08-30Add test for glob imported prelude collision trait.Mara Bos-1/+32
2021-08-30Fix prelude collision suggestions for glob imported traits.Mara Bos-2/+7
2021-08-30Add and update tests.Mara Bos-20/+96
2021-08-30Fix lifetime generics in <T<..> as Trait>::try_from suggestion.Mara Bos-17/+21