rust/src/librustc
bors 361791bb5f Auto merge of #65456 - estebank:trait-bound-borrow, r=matthewjasper
Suggest borrowing when it would satisfy an unmet trait bound

When there are multiple implementors for the same trait that is present
in an unmet binding, modify the E0277 error to refer to the parent
obligation and verify whether borrowing the argument being passed in
would satisfy the unmet bound. If it would, suggest it.

Fix #56368.
2019-11-18 00:05:38 +00:00
..
benches
dep_graph Convert x.as_str().to_string() to x.to_string() where possible. 2019-11-02 09:01:00 +11:00
hir Rollup merge of #66344 - petrochenkov:noregattr, r=matthewjasper 2019-11-17 13:36:13 +09:00
ich Merge hir::ImplPolarity into ast::ImplPolarity. 2019-11-10 12:40:44 +01:00
infer Auto merge of #66384 - cjgillot:typefoldable, r=Zoxc 2019-11-17 15:25:10 +00:00
lint Update to use new librustc_error_codes library 2019-11-14 13:05:42 +01:00
middle Clean some error codes diagnostics 2019-11-14 13:05:56 +01:00
mir Auto merge of #66385 - ecstatic-morse:check-only-pass2, r=eddyb 2019-11-17 18:38:15 +00:00
query Fix nits from review 2019-11-15 10:33:52 -08:00
session Auto merge of #66385 - ecstatic-morse:check-only-pass2, r=eddyb 2019-11-17 18:38:15 +00:00
traits Auto merge of #65456 - estebank:trait-bound-borrow, r=matthewjasper 2019-11-18 00:05:38 +00:00
ty Auto merge of #66384 - cjgillot:typefoldable, r=Zoxc 2019-11-17 15:25:10 +00:00
util Move self-profile infrastructure to data structures 2019-11-12 12:48:04 -05:00
arena.rs bump smallvec to 1.0 2019-11-04 15:59:09 +01:00
build.rs
Cargo.toml Auto merge of #66255 - ehuss:update-cc, r=alexcrichton 2019-11-16 07:26:57 +00:00
lib.rs Rollup merge of #66013 - nnethercote:avoid-hashing-twice-in-get_query, r=Zoxc 2019-11-15 18:36:20 +09:00
macros.rs Retire BraceStructTypeFoldableImpl and TupleStructTypeFoldableImpl. 2019-11-13 21:48:13 +01:00
README.md
tests.rs

For more information about how rustc works, see the rustc guide.