rust/src/librustc
bors 259e4a6784 Auto merge of #48592 - spastorino:borrowed_value_error, r=nikomatsakis
[NLL] Avoid borrowed value must be valid for lifetime '_#2r..." in errors

Closes #48428

- [x] If NLL is enabled, [do not invoke `note_and_explain_region`](https://github.com/rust-lang/rust/issues/48428#issuecomment-367691123)
- [x] Modify `-Zdump-nll-cause` to not print [the overwhelming debug output here](https://github.com/rust-lang/rust/blob/master/src/librustc_mir/borrow_check/nll/region_infer/mod.rs#L1288-L1299). This way we should I believe at least get nice-ish output for [our original example](https://github.com/rust-lang/rust/issues/48428#issue-299364536).
- [x] Extend `explain_why_borrow_contains_point` to also work for "universal lifetimes" like the `'a` in [the example at the end of this comment](https://github.com/rust-lang/rust/issues/48428#issuecomment-367691123).
- [ ] Figure out how to enable causal information all the time (but that is https://github.com/rust-lang/rust/issues/46590).
2018-03-04 18:16:43 +00:00
..
benches Update miri to rustc changes 2017-12-06 09:25:29 +01:00
cfg
dep_graph Run Rustfix on librustc 2018-03-02 21:02:34 -08:00
hir Perform manual fixups 2018-03-02 21:02:36 -08:00
ich Run Rustfix on librustc 2018-03-02 21:02:34 -08:00
infer Auto merge of #48592 - spastorino:borrowed_value_error, r=nikomatsakis 2018-03-04 18:16:43 +00:00
lint Run Rustfix on librustc 2018-03-02 21:02:34 -08:00
middle Run Rustfix on librustc 2018-03-02 21:02:34 -08:00
mir Run Rustfix on librustc 2018-03-02 21:02:34 -08:00
session Rollup merge of #48641 - alexcrichton:no-hash-l-paths, r=michaelwoerister 2018-03-02 22:01:31 -08:00
traits Run Rustfix on librustc 2018-03-02 21:02:34 -08:00
ty Run Rustfix on librustc 2018-03-02 21:02:34 -08:00
util Run Rustfix on librustc 2018-03-02 21:02:34 -08:00
build.rs
Cargo.toml Do not run the default panic hook inside procedural macros. Fixes #47812 2018-02-20 19:16:49 +01:00
diagnostics.rs fix more typos found by codespell. 2018-02-17 17:38:49 +01:00
lib.rs Remove allow(bare_trait_object) from librustc 2018-03-02 21:02:36 -08:00
macros.rs
README.md Change links to readmes 2018-02-25 15:24:14 -06:00

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