]> git.lizzy.rs Git - rust.git/commit
Adds support for immovable generators. Move checking of invalid borrows across suspen...
authorJohn Kåre Alsaker <john.kare.alsaker@gmail.com>
Sat, 7 Oct 2017 14:36:28 +0000 (16:36 +0200)
committerJohn Kåre Alsaker <john.kare.alsaker@gmail.com>
Tue, 23 Jan 2018 04:10:38 +0000 (05:10 +0100)
commitccf0d8399e1ef3ed6bf7005650ce42aa646b5cc7
tree78166bd01ee1a24b9251e6cdf16dd631d3cf65e1
parent47a8eb7c4e24b61a8a9ab4eaff60ef65291aaa56
Adds support for immovable generators. Move checking of invalid borrows across suspension points to borrowck. Fixes #44197, #45259 and #45093.
60 files changed:
src/librustc/diagnostics.rs
src/librustc/hir/lowering.rs
src/librustc/hir/mod.rs
src/librustc/ich/impls_hir.rs
src/librustc/ich/impls_ty.rs
src/librustc/infer/error_reporting/nice_region_error/outlives_closure.rs
src/librustc/infer/freshen.rs
src/librustc/middle/region.rs
src/librustc/traits/coherence.rs
src/librustc/traits/error_reporting.rs
src/librustc/traits/select.rs
src/librustc/ty/context.rs
src/librustc/ty/error.rs
src/librustc/ty/fast_reject.rs
src/librustc/ty/flags.rs
src/librustc/ty/item_path.rs
src/librustc/ty/layout.rs
src/librustc/ty/mod.rs
src/librustc/ty/outlives.rs
src/librustc/ty/relate.rs
src/librustc/ty/structural_impls.rs
src/librustc/ty/sty.rs
src/librustc/ty/util.rs
src/librustc/ty/walk.rs
src/librustc/ty/wf.rs
src/librustc/util/ppaux.rs
src/librustc_borrowck/borrowck/check_loans.rs
src/librustc_borrowck/borrowck/mod.rs
src/librustc_lint/types.rs
src/librustc_mir/interpret/const_eval.rs
src/librustc_mir/monomorphize/item.rs
src/librustc_mir/transform/generator.rs
src/librustc_mir/util/pretty.rs
src/librustc_save_analysis/dump_visitor.rs
src/librustc_trans/debuginfo/type_names.rs
src/librustc_typeck/check/cast.rs
src/librustc_typeck/check/closure.rs
src/librustc_typeck/check/generator_interior.rs
src/librustc_typeck/check/mod.rs
src/librustc_typeck/check/upvar.rs
src/librustc_typeck/collect.rs
src/librustc_typeck/diagnostics.rs
src/librustc_typeck/variance/constraints.rs
src/librustdoc/clean/mod.rs
src/libsyntax/ast.rs
src/libsyntax/ext/build.rs
src/libsyntax/fold.rs
src/libsyntax/parse/parser.rs
src/libsyntax/print/pprust.rs
src/libsyntax/visit.rs
src/test/compile-fail/static-closures.rs [new file with mode: 0644]
src/test/run-pass-fulldeps/pprust-expr-roundtrip.rs
src/test/run-pass/generator/issue-44197.rs [new file with mode: 0644]
src/test/run-pass/generator/live-upvar-across-yield.rs [new file with mode: 0644]
src/test/run-pass/generator/nested_generators.rs [new file with mode: 0644]
src/test/run-pass/generator/reborrow-mut-upvar.rs [new file with mode: 0644]
src/test/run-pass/generator/static-generators.rs [new file with mode: 0644]
src/test/ui/generator/auto-trait-regions.rs [new file with mode: 0644]
src/test/ui/generator/auto-trait-regions.stderr [new file with mode: 0644]
src/test/ui/generator/not-send-sync.stderr