- 19 1月, 2021 1 次提交
-
-
由 Cameron Steffen 提交于
-
- 18 1月, 2021 2 次提交
-
-
由 Ashley Mannix 提交于
Update Clippy Biweekly Clippy update r? ``@Manishearth``
-
由 bors 提交于
Remove PredicateKind and instead only use Binder<PredicateAtom> Originally brought up in https://github.com/rust-lang/rust/pull/76814#discussion_r546858171 r? `@lcnr`
-
- 17 1月, 2021 7 次提交
- 15 1月, 2021 1 次提交
-
-
由 flip1995 提交于
-
- 14 1月, 2021 2 次提交
-
-
由 bors 提交于
Reintroduce hir::ExprKind::If Basically copied and paste #59288/https://github.com/rust-lang/rust-clippy/pull/4080 with some modifications. The vast majority of tests were fixed and now there are only a few remaining. Since I am still unable to figure out the missing pieces, any help with the following list is welcome. - [ ] **Unnecessary `typeck` exception**: [Cheated on this one to make CI green.](https://github.com/rust-lang/rust/pull/79328/files#diff-3faee9ba23fc54a12b7c43364ba81f8c5660045c7e1d7989a02a0cee1c5b2051) - [x] **Incorrect span**: [Span should reference `then` and `else` separately.](https://github.com/rust-lang/rust/pull/79328/files#diff-cf2c46e82222ee4b1037a68fff8a1af3c4f1de7a6b3fd798aacbf3c0475abe3d) - [x] **New note regarding `assert!`**: [Modified but not "wrong". Maybe can be a good thing?](https://github.com/rust-lang/rust/pull/79328/files#diff-9e0d7c89ed0224e2b62060c957177c27db43c30dfe3c2974cb6b5091cda9cfb5) - [x] **Inverted report location**: [Modified but not "wrong". Locations were inverted.](https://github.com/rust-lang/rust/pull/79328/files#diff-f637ce7c1f68d523a165aa9651765df05e36c4d7d279194b1a6b28b48a323691) - [x] **`src/test/ui/point-to-type-err-cause-on-impl-trait-return.rs` has weird errors**: [Not sure why this is happening.](https://github.com/rust-lang/rust/pull/79328/files#diff-c823c09660f5b112f95e97e8ff71f1797b6c7f37dbb3d16f8e98bbaea8072e95) - [x] **Missing diagnostic**: [???](https://github.com/rust-lang/rust/pull/79328/files#diff-6b8ab09360d725ba4513933827f9796b42ff9522b0690f80b76de067143af2fc)
-
由 bors 提交于
Rework diagnostics for wrong number of generic args (fixes #66228 and #71924) This PR reworks the `wrong number of {} arguments` message, so that it provides more details and contextual hints.
-
- 13 1月, 2021 1 次提交
-
-
由 Joshua Nelson 提交于
This makes it possible to pass the `Impl` directly to functions, instead of having to pass each of the many fields one at a time. It also simplifies matches in many cases.
-
- 10 1月, 2021 2 次提交
-
-
由 Patryk Wychowaniec 提交于
-
由 Vadim Petrochenkov 提交于
-
- 08 1月, 2021 1 次提交
-
-
由 Caio 提交于
-
- 03 1月, 2021 1 次提交
-
-
由 flip1995 提交于
-
- 02 1月, 2021 1 次提交
-
-
由 flip1995 提交于
-
- 01 1月, 2021 1 次提交
-
-
由 Julian Knodt 提交于
- Adds optional default values to const generic parameters in the AST and HIR - Parses these optional default values - Adds a `const_generics_defaults` feature gate
-
- 31 12月, 2020 1 次提交
-
-
由 Mara Bos 提交于
Rename kw::Invalid -> kw::Empty See https://rust-lang.zulipchat.com/#narrow/stream/182449-t-compiler.2Fhelp/topic/Is.20there.20a.20symbol.20for.20the.20empty.20string.3F/near/220054471 for context. r? `@petrochenkov`
-
- 30 12月, 2020 2 次提交
-
-
由 Aaron Hill 提交于
- 23 12月, 2020 1 次提交
-
-
由 flip1995 提交于
-
- 21 12月, 2020 1 次提交
-
-
由 flip1995 提交于
-
- 19 12月, 2020 1 次提交
-
-
由 Jack Huey 提交于
-
- 18 12月, 2020 1 次提交
-
-
由 bors 提交于
Move binder for dyn to each list item This essentially changes `ty::Binder<&'tcx List<ExistentialTraitRef>>` to `&'tcx List<ty::Binder<ExistentialTraitRef>>`. This is a first step in moving the `dyn Trait` representation closer to Chalk, which we've talked about in `@rust-lang/wg-traits.` r? `@nikomatsakis`
-
- 17 12月, 2020 1 次提交
-
-
由 Yuki Okushi 提交于
Implement if-let match guards Implements rust-lang/rfcs#2294 (tracking issue: #51114). I probably should do a few more things before this can be merged: - [x] Add tests (added basic tests, more advanced tests could be done in the future?) - [x] Add lint for exhaustive if-let guard (comparable to normal if-let statements) - [x] Fix clippy However since this is a nightly feature maybe it's fine to land this and do those steps in follow-up PRs. Thanks a lot `@matthewjasper`
❤ for helping me with lowering to MIR! Would you be interested in reviewing this? r? `@ghost` for now
-
- 16 12月, 2020 1 次提交
-
-
由 bors 提交于
make MIR graphviz generation use gsgdt gsgdt [https://crates.io/crates/gsgdt] is a crate which provides an interface for stringly typed graphs. It also provides generation of graphviz dot format from said graph. This is the first in a series of PRs on moving graphviz code out of rustc into normal crates and then implementating graph diffing on top of these crates. r? `@oli-obk`
-
- 15 12月, 2020 2 次提交
-
-
由 Rich Kadel 提交于
This ensures consistent handling of default values for options that are None if not specified on the command line.
-
由 Rich Kadel 提交于
Adds checks for: * `no_core` attribute * explicitly-enabled `legacy` symbol mangling * mir_opt_level > 1 (which enables inlining) I removed code from the `Inline` MIR pass that forcibly disabled inlining if `-Zinstrument-coverage` was set. The default `mir_opt_level` does not enable inlining anyway. But if the level is explicitly set and is greater than 1, I issue a warning. The new warnings show up in tests, which is much better for diagnosing potential option conflicts in these cases.
-
- 12 12月, 2020 1 次提交
-
-
由 Jack Huey 提交于
-
- 07 12月, 2020 1 次提交
-
-
由 Tomasz Miąsko 提交于
-
- 06 12月, 2020 3 次提交
-
-
由 flip1995 提交于
-
由 LeSeulArtichaut 提交于
-
由 LeSeulArtichaut 提交于
-
- 05 12月, 2020 1 次提交
-
-
由 Vishnunarayan K I 提交于
-
- 30 11月, 2020 1 次提交
-
-
由 bors 提交于
Update error to reflect that integer literals can have float suffixes For example, `1` is parsed as an integer literal, but it can be turned into a float with the suffix `f32`. Now the error calls them "numeric literals" and notes that you can add a float suffix since they can be either integers or floats.
-
- 29 11月, 2020 1 次提交
-
-
由 bstrie 提交于
Part of #68490. Care has been taken to leave the old consts where appropriate, for testing backcompat regressions, module shadowing, etc. The intrinsics docs were accidentally referring to some methods on f64 as std::f64, which I changed due to being contrary with how we normally disambiguate the shadow module from the primitive. In one other place I changed std::u8 to std::ops since it was just testing path handling in macros. For places which have legitimate uses of the old consts, deprecated attributes have been optimistically inserted. Although currently unnecessary, they exist to emphasize to any future deprecation effort the necessity of these specific symbols and prevent them from being accidentally removed.
-
- 28 11月, 2020 1 次提交
-
-
由 Camelid 提交于
For example, `1` is parsed as an integer literal, but it can be turned into a float with the suffix `f32`. Now the error calls them "numeric literals" and notes that you can add a float suffix since they can be either integers or floats.
-