1. 08 3月, 2016 1 次提交
  2. 04 3月, 2016 12 次提交
    • B
      Auto merge of #32032 - arielb1:load-const, r=eddyb · c97524be
      bors 提交于
      Fixes #30891
      
      r? @EddyB
      c97524be
    • B
      Auto merge of #32022 - gohyda:master, r=alexcrichton · 85ad61c5
      bors 提交于
      - Empty `.sidebar .location` caused "grey line" on top of the documentation page (under 700px) fixed.
      - `.sidebar .location` appearance improvement in responsive mode.
      85ad61c5
    • B
      Auto merge of #32006 - jseyfried:fix_expanded_mod_path, r=nikomatsakis · 5b5e5218
      bors 提交于
      This PR changes the search paths for macro-expanded non-inline modules so that they match ordinary non-inline modules (fixes #31624). This is a [breaking-change].
      
      Right now, the search paths for a macro-expanded non-inline module are computed as if the module were declared in the top level of the file in which the macro was defined.
      For example, consider `./foo/mod.rs`:
      ```rust
      mod inconsequential { // moving the macro outside this module wouldn't change anything
          macro_rules! mod_decl {
              ($i:ident) => { mod $i; }
          }
      }
      ```
      and `./lib.rs`:
      ```rust
      mod foo;
      
      mod bar {
          mod_decl!(baz);
          //^ Now, rustc expects `./foo/baz.rs` (or `./foo/baz/mod.rs`)
          //| After this PR, rustc will expect `./bar/baz.rs` (or `./bar/baz/mod.rs`)
      }
      ```
      r? @alexcrichton
      5b5e5218
    • B
      Auto merge of #31945 - sfackler:net2, r=alexcrichton · 8e261d12
      bors 提交于
      I have these tagged as stable in 1.9, so this shouldn't merge until the 1.8 beta's cut.
      8e261d12
    • A
      truncate i8-s to i1-s when loading constants · cf29344c
      Ariel Ben-Yehuda 提交于
      Fixes #30891
      cf29344c
    • B
      Auto merge of #31671 - ranma42:printcfg, r=alexcrichton · e91f889e
      bors 提交于
      Show `cfg` as possible argument to `--print` and make it so that `--print cfg` also outputs the `target_feature`s.
      
      Should I also extend `src/test/run-make/print-cfg/Makefile` to check that `target_feature`s are actually printed?
      e91f889e
    • B
      Auto merge of #31797 - apasel422:issue-28950, r=alexcrichton · 809b14ac
      bors 提交于
      Closes #28950.
      
      r? @EddyB
      809b14ac
    • S
      Fix netbsd · e4aa5131
      Steven Fackler 提交于
      e4aa5131
    • B
      Auto merge of #32007 - nikomatsakis:compiletest-incremental, r=alexcrichton · 493d999f
      bors 提交于
      This PR extends compiletest to support **test revisions** and with a preliminary **incremental testing harness**. run-pass, compile-fail, and run-fail tests may be tagged with
      
      ```
      // revisions: a b c d
      ```
      
      This will cause the test to be re-run four times with `--cfg {a,b,c,d}` in turn. This means you can write very closely related things using `cfg`. You can also configure the headers/expected-errors by writing `//[foo] header: value` or `//[foo]~ ERROR bar`, where `foo` is the name of your revision. See the changes to `coherence-cow.rs` as a proof of concept.
      
      The main point of this work is to support the incremental testing harness. This PR contains an initial, unused version. The code that uses it will land later. The incremental testing harness compiles each revision in turn, and requires that the revisions have particular names (e.g., `rpass2`, `cfail3`), which tell it whether a particular revision is expected to compile or not.
      
      Two questions:
      
      - Is there compiletest documentation anywhere I can update?
      - Should I hold off on landing the incremental testing harness until I have the code to exercise it? (That will come in a separate PR, still fixing a few details)
      
      r? @alexcrichton
      cc @rust-lang/compiler <-- new testing capabilities
      493d999f
    • S
      Fix android build · ee62aab2
      Steven Fackler 提交于
      ee62aab2
    • N
      mention caveat about should-fail in docs · fc4d0ecf
      Niko Matsakis 提交于
      fc4d0ecf
    • N
      make pretty printer tests understand revisions, and make them ignore the · aa19b41f
      Niko Matsakis 提交于
      should-fail annotation
      aa19b41f
  3. 03 3月, 2016 24 次提交
  4. 02 3月, 2016 3 次提交
    • B
      Auto merge of #32000 - xaocon:master, r=steveklabnik · 675723e2
      bors 提交于
      Vectors come up in sections dedicated to ownership with the assumption that we know something about it but we haven't seen it yet. On the other hand, you need not know anything about ownership or lifetimes to understand the basics of vectors covered in the vector section of the book. Additionally, by moving it where it is there is a natural progression from loops to an iterative type which discusses for loops. This kind of interaction is generally better for learning.
      
      I would like to have moved the struct section as well but I'm less confident about how to handle it since the ownership sections discuss structs and the structs section talks about mutable borrow.
      675723e2
    • N
      thread revision identifier around in test output · 3fb80e33
      Niko Matsakis 提交于
      3fb80e33
    • N
      convert coherence-cow to use revisions · 4cffa9b4
      Niko Matsakis 提交于
      4cffa9b4