419ac4a1b8
Major changes: - Define temporary scopes in a syntax-based way that basically defaults to the innermost statement or conditional block, except for in a `let` initializer, where we default to the innermost block. Rules are documented in the code, but not in the manual (yet). See new test run-pass/cleanup-value-scopes.rs for examples. - Refactors Datum to better define cleanup roles. - Refactor cleanup scopes to not be tied to basic blocks, permitting us to have a very large number of scopes (one per AST node). - Introduce nascent documentation in trans/doc.rs covering datums and cleanup in a more comprehensive way.
49 lines
1.1 KiB
Rust
49 lines
1.1 KiB
Rust
// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
|
|
// file at the top-level directory of this distribution and at
|
|
// http://rust-lang.org/COPYRIGHT.
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
|
// option. This file may not be copied, modified, or distributed
|
|
// except according to those terms.
|
|
|
|
pub mod doc;
|
|
pub mod macros;
|
|
pub mod inline;
|
|
pub mod monomorphize;
|
|
pub mod controlflow;
|
|
pub mod glue;
|
|
pub mod datum;
|
|
pub mod write_guard;
|
|
pub mod callee;
|
|
pub mod expr;
|
|
pub mod common;
|
|
pub mod context;
|
|
pub mod consts;
|
|
pub mod type_of;
|
|
pub mod build;
|
|
pub mod builder;
|
|
pub mod base;
|
|
pub mod _match;
|
|
pub mod closure;
|
|
pub mod tvec;
|
|
pub mod meth;
|
|
pub mod cabi;
|
|
pub mod cabi_x86;
|
|
pub mod cabi_x86_64;
|
|
pub mod cabi_arm;
|
|
pub mod cabi_mips;
|
|
pub mod foreign;
|
|
pub mod intrinsic;
|
|
pub mod reflect;
|
|
pub mod debuginfo;
|
|
pub mod machine;
|
|
pub mod adt;
|
|
pub mod asm;
|
|
pub mod type_;
|
|
pub mod value;
|
|
pub mod basic_block;
|
|
pub mod llrepr;
|
|
pub mod cleanup;
|