Commit Graph

457 Commits

Author SHA1 Message Date
David Tolnay
c620b89223
Update ui test suite to nightly-2022-08-23 2022-08-22 23:04:16 -07:00
David Tolnay
6a22b1899c
Update ui test suite to nightly-2022-08-16 2022-08-15 22:14:47 -07:00
David Tolnay
e90c016afc
Add authors to Cargo.toml 2022-07-31 19:25:46 -07:00
David Tolnay
5567fdf2cf
Ignore assertions_on_result_states clippy lint
error: called `assert!` with `Result::is_err`
       --> tests/test.rs:258:5
        |
    258 |     assert!(unique_ptr.pin_mut().get_fail().is_err());
        |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `unique_ptr.pin_mut().get_fail().unwrap_err()`
        |
        = note: `-D clippy::assertions-on-result-states` implied by `-D clippy::all`
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_result_states
2022-07-29 22:12:07 -07:00
David Tolnay
85f0b88f87
Update ui test suite to nightly-2022-07-26 2022-07-25 21:11:12 -07:00
David Tolnay
1862c5dad5
Update ui test suite to nightly-2022-07-07 2022-07-06 21:06:56 -07:00
David Tolnay
65d50f275f
Update ui test suite to nightly-2022-07-02 2022-07-01 19:35:47 -07:00
David Tolnay
f1d7bff5ba
Require explicit edition on all Buck targets 2022-06-17 23:25:32 -07:00
David Tolnay
fb6db7d11e
Delete unpin_impl.rs UI test temporarily
This test is affected by an ICE in nightly-2022-06-04.
https://github.com/rust-lang/rust/issues/97698

Minimized repro:

    trait Ambiguous<A> {
        fn method() {}
    }

    struct One;
    struct Two;
    struct Struct;

    impl Ambiguous<One> for Struct {}
    impl Ambiguous<Two> for Struct {}

    fn main() {
        <Struct as Ambiguous<_>>::method();
    }

Correct error in nightly-2022-06-03:

    error[E0282]: type annotations needed
      --> src/main.rs:13:26
       |
    13 |     <Struct as Ambiguous<_>>::method();
       |                          ^ cannot infer type

    error[E0283]: type annotations needed
      --> src/main.rs:13:5
       |
    13 |     <Struct as Ambiguous<_>>::method();
       |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type
       |
    note: multiple `impl`s satisfying `Struct: Ambiguous<_>` found
      --> src/main.rs:9:1
       |
    9  | impl Ambiguous<One> for Struct {}
       | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    10 | impl Ambiguous<Two> for Struct {}
       | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

ICE in nightly-2022-06-04:

    thread 'rustc' panicked at 'range end index 2 out of range for slice of length 1', library/core/src/slice/index.rs:73:5
    stack backtrace:
      16:     0x7f4cccefd816 - core::slice::index::slice_end_index_len_fail_rt::h04ca4b0b6ddf070e
      17:     0x7f4ccceef707 - core::ops::function::FnOnce::call_once::hb4cbec441e0e0d97
      18:     0x7f4cccef6516 - core::intrinsics::const_eval_select::h2fab5eaa67d7a905
      19:     0x7f4ccce67556 - core::slice::index::slice_end_index_len_fail::ha1557d304be1c61e
      20:     0x7f4cce5ea20f - <rustc_infer[9b42245fee805938]::infer::error_reporting::need_type_info::FindInferSourceVisitor as rustc_hir[5dbb21eaf9590c92]::intravisit::Visitor>::visit_expr
      21:     0x7f4cce5e8edc - <rustc_infer[9b42245fee805938]::infer::error_reporting::need_type_info::FindInferSourceVisitor as rustc_hir[5dbb21eaf9590c92]::intravisit::Visitor>::visit_expr
      22:     0x7f4cce5fbe37 - rustc_hir[5dbb21eaf9590c92]::intravisit::walk_block::<rustc_infer[9b42245fee805938]::infer::error_reporting::need_type_info::FindInferSourceVisitor>
      23:     0x7f4cce5e8eee - <rustc_infer[9b42245fee805938]::infer::error_reporting::need_type_info::FindInferSourceVisitor as rustc_hir[5dbb21eaf9590c92]::intravisit::Visitor>::visit_expr
      24:     0x7f4cce5a1714 - <rustc_infer[9b42245fee805938]::infer::InferCtxt>::emit_inference_failure_err
      25:     0x7f4cce4f32bb - <rustc_infer[9b42245fee805938]::infer::InferCtxt as rustc_trait_selection[af2ed82902f8af73]::traits::error_reporting::InferCtxtPrivExt>::maybe_report_ambiguity
      26:     0x7f4cce4e6f87 - <rustc_infer[9b42245fee805938]::infer::InferCtxt as rustc_trait_selection[af2ed82902f8af73]::traits::error_reporting::InferCtxtExt>::report_fulfillment_errors
      27:     0x7f4ccec3fcb4 - <rustc_infer[9b42245fee805938]::infer::InferCtxtBuilder>::enter::<&rustc_middle[c4bb946b42085c78]::ty::context::TypeckResults, <rustc_typeck[4b1a1a7c06e44333]::check::inherited::InheritedBuilder>::enter<rustc_typeck[4b1a1a7c06e44333]::check::typeck_with_fallback<rustc_typeck[4b1a1a7c06e44333]::check::typeck::{closure#0}>::{closure#1}, &rustc_middle[c4bb946b42085c78]::ty::context::TypeckResults>::{closure#0}>
      28:     0x7f4ccebd170a - rustc_typeck[4b1a1a7c06e44333]::check::typeck
      29:     0x7f4ccfccf5f0 - <rustc_query_system[a1cbf340ec6d6f93]::dep_graph::graph::DepGraph<rustc_middle[c4bb946b42085c78]::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle[c4bb946b42085c78]::ty::context::TyCtxt, rustc_span[c774ced8c61a5d44]::def_id::LocalDefId, &rustc_middle[c4bb946b42085c78]::ty::context::TypeckResults>
      30:     0x7f4ccf1f8380 - rustc_query_system[a1cbf340ec6d6f93]::query::plumbing::try_execute_query::<rustc_query_impl[f03dd36fb3d62396]::plumbing::QueryCtxt, rustc_query_system[a1cbf340ec6d6f93]::query::caches::DefaultCache<rustc_span[c774ced8c61a5d44]::def_id::LocalDefId, &rustc_middle[c4bb946b42085c78]::ty::context::TypeckResults>>
      31:     0x7f4ccf123c0e - <rustc_query_impl[f03dd36fb3d62396]::Queries as rustc_middle[c4bb946b42085c78]::ty::query::QueryEngine>::typeck
      32:     0x7f4ccec91708 - <rustc_middle[c4bb946b42085c78]::hir::map::Map>::par_body_owners::<rustc_typeck[4b1a1a7c06e44333]::check::typeck_item_bodies::{closure#0}>
      33:     0x7f4ccfa8e18c - rustc_typeck[4b1a1a7c06e44333]::check::typeck_item_bodies
      34:     0x7f4ccfcee823 - <rustc_query_system[a1cbf340ec6d6f93]::dep_graph::graph::DepGraph<rustc_middle[c4bb946b42085c78]::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle[c4bb946b42085c78]::ty::context::TyCtxt, (), ()>
      35:     0x7f4ccfd991d5 - rustc_query_system[a1cbf340ec6d6f93]::query::plumbing::try_execute_query::<rustc_query_impl[f03dd36fb3d62396]::plumbing::QueryCtxt, rustc_query_system[a1cbf340ec6d6f93]::query::caches::DefaultCache<(), ()>>
      36:     0x7f4ccfdc3331 - rustc_query_system[a1cbf340ec6d6f93]::query::plumbing::get_query::<rustc_query_impl[f03dd36fb3d62396]::queries::typeck_item_bodies, rustc_query_impl[f03dd36fb3d62396]::plumbing::QueryCtxt>
      37:     0x7f4ccfac4473 - <rustc_session[d1b76e352c1a3b5b]::session::Session>::time::<(), rustc_typeck[4b1a1a7c06e44333]::check_crate::{closure#7}>
      38:     0x7f4ccfab109b - rustc_typeck[4b1a1a7c06e44333]::check_crate
      39:     0x7f4ccf86b017 - rustc_interface[94703aee012e7483]::passes::analysis
      40:     0x7f4ccfcea595 - <rustc_query_system[a1cbf340ec6d6f93]::dep_graph::graph::DepGraph<rustc_middle[c4bb946b42085c78]::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle[c4bb946b42085c78]::ty::context::TyCtxt, (), core[c8091fc9dea0c6cf]::result::Result<(), rustc_errors[ae611370a546922c]::ErrorGuaranteed>>
      41:     0x7f4ccfd8f1fd - rustc_query_system[a1cbf340ec6d6f93]::query::plumbing::try_execute_query::<rustc_query_impl[f03dd36fb3d62396]::plumbing::QueryCtxt, rustc_query_system[a1cbf340ec6d6f93]::query::caches::DefaultCache<(), core[c8091fc9dea0c6cf]::result::Result<(), rustc_errors[ae611370a546922c]::ErrorGuaranteed>>>
      42:     0x7f4ccfdd58ee - rustc_query_system[a1cbf340ec6d6f93]::query::plumbing::get_query::<rustc_query_impl[f03dd36fb3d62396]::queries::analysis, rustc_query_impl[f03dd36fb3d62396]::plumbing::QueryCtxt>
      43:     0x7f4ccf8282a7 - <rustc_interface[94703aee012e7483]::passes::QueryContext>::enter::<rustc_driver[7b89ea061d8aedc7]::run_compiler::{closure#1}::{closure#2}::{closure#3}, core[c8091fc9dea0c6cf]::result::Result<(), rustc_errors[ae611370a546922c]::ErrorGuaranteed>>
      44:     0x7f4ccf81234f - <rustc_interface[94703aee012e7483]::interface::Compiler>::enter::<rustc_driver[7b89ea061d8aedc7]::run_compiler::{closure#1}::{closure#2}, core[c8091fc9dea0c6cf]::result::Result<core[c8091fc9dea0c6cf]::option::Option<rustc_interface[94703aee012e7483]::queries::Linker>, rustc_errors[ae611370a546922c]::ErrorGuaranteed>>
      45:     0x7f4ccf83bd3f - rustc_span[c774ced8c61a5d44]::with_source_map::<core[c8091fc9dea0c6cf]::result::Result<(), rustc_errors[ae611370a546922c]::ErrorGuaranteed>, rustc_interface[94703aee012e7483]::interface::create_compiler_and_run<core[c8091fc9dea0c6cf]::result::Result<(), rustc_errors[ae611370a546922c]::ErrorGuaranteed>, rustc_driver[7b89ea061d8aedc7]::run_compiler::{closure#1}>::{closure#1}>
      46:     0x7f4ccf8131e2 - <scoped_tls[a35f89285f520bf3]::ScopedKey<rustc_span[c774ced8c61a5d44]::SessionGlobals>>::set::<rustc_interface[94703aee012e7483]::interface::run_compiler<core[c8091fc9dea0c6cf]::result::Result<(), rustc_errors[ae611370a546922c]::ErrorGuaranteed>, rustc_driver[7b89ea061d8aedc7]::run_compiler::{closure#1}>::{closure#0}, core[c8091fc9dea0c6cf]::result::Result<(), rustc_errors[ae611370a546922c]::ErrorGuaranteed>>
      47:     0x7f4ccf82893f - std[f19dd7bb03296d5c]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[94703aee012e7483]::util::run_in_thread_pool_with_globals<rustc_interface[94703aee012e7483]::interface::run_compiler<core[c8091fc9dea0c6cf]::result::Result<(), rustc_errors[ae611370a546922c]::ErrorGuaranteed>, rustc_driver[7b89ea061d8aedc7]::run_compiler::{closure#1}>::{closure#0}, core[c8091fc9dea0c6cf]::result::Result<(), rustc_errors[ae611370a546922c]::ErrorGuaranteed>>::{closure#0}, core[c8091fc9dea0c6cf]::result::Result<(), rustc_errors[ae611370a546922c]::ErrorGuaranteed>>
      48:     0x7f4ccf828a99 - <<std[f19dd7bb03296d5c]:🧵:Builder>::spawn_unchecked_<rustc_interface[94703aee012e7483]::util::run_in_thread_pool_with_globals<rustc_interface[94703aee012e7483]::interface::run_compiler<core[c8091fc9dea0c6cf]::result::Result<(), rustc_errors[ae611370a546922c]::ErrorGuaranteed>, rustc_driver[7b89ea061d8aedc7]::run_compiler::{closure#1}>::{closure#0}, core[c8091fc9dea0c6cf]::result::Result<(), rustc_errors[ae611370a546922c]::ErrorGuaranteed>>::{closure#0}, core[c8091fc9dea0c6cf]::result::Result<(), rustc_errors[ae611370a546922c]::ErrorGuaranteed>>::{closure#1} as core[c8091fc9dea0c6cf]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}

    error: internal compiler error: unexpected panic

    note: the compiler unexpectedly panicked. this is a bug.

    note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md

    note: rustc 1.63.0-nightly (a6b8c6954 2022-06-03) running on x86_64-unknown-linux-gnu

    note: compiler flags: --crate-type bin -C embed-bitcode=no -C debuginfo=2 -C incremental

    note: some of the compiler flags provided by cargo are hidden

    query stack during panic:
    #0 [typeck] type-checking `main`
    #1 [typeck_item_bodies] type-checking all item bodies
    #2 [analysis] running analysis passes on this crate
    end of query stack
2022-06-04 00:46:02 -07:00
David Tolnay
b305ae7741
Ignore derive_partial_eq_without_eq clippy lint
error: you are deriving `PartialEq` and can implement `Eq`
     --> gen/lib/src/gen/block.rs:3:23
      |
    3 | #[derive(Copy, Clone, PartialEq, Debug)]
      |                       ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
      |
      = note: `-D clippy::derive-partial-eq-without-eq` implied by `-D clippy::all`
      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq

    error: you are deriving `PartialEq` and can implement `Eq`
     --> gen/cmd/src/gen/block.rs:3:23
      |
    3 | #[derive(Copy, Clone, PartialEq, Debug)]
      |                       ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
      |
      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq

    error: you are deriving `PartialEq` and can implement `Eq`
     --> gen/build/src/gen/block.rs:3:23
      |
    3 | #[derive(Copy, Clone, PartialEq, Debug)]
      |                       ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
      |
      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq

    error: you are deriving `PartialEq` and can implement `Eq`
     --> gen/lib/src/syntax/atom.rs:5:23
      |
    5 | #[derive(Copy, Clone, PartialEq)]
      |                       ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
      |
      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq

    error: you are deriving `PartialEq` and can implement `Eq`
      --> gen/lib/src/syntax/derive.rs:10:23
       |
    10 | #[derive(Copy, Clone, PartialEq)]
       |                       ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq

    error: you are deriving `PartialEq` and can implement `Eq`
     --> gen/cmd/src/syntax/atom.rs:5:23
      |
    5 | #[derive(Copy, Clone, PartialEq)]
      |                       ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
      |
      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq

    error: you are deriving `PartialEq` and can implement `Eq`
     --> gen/build/src/syntax/atom.rs:5:23
      |
    5 | #[derive(Copy, Clone, PartialEq)]
      |                       ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
      |
      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq

    error: you are deriving `PartialEq` and can implement `Eq`
      --> gen/cmd/src/syntax/derive.rs:10:23
       |
    10 | #[derive(Copy, Clone, PartialEq)]
       |                       ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq

    error: you are deriving `PartialEq` and can implement `Eq`
      --> gen/build/src/syntax/derive.rs:10:23
       |
    10 | #[derive(Copy, Clone, PartialEq)]
       |                       ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq

    error: you are deriving `PartialEq` and can implement `Eq`
      --> gen/lib/src/syntax/mod.rs:72:23
       |
    72 | #[derive(Copy, Clone, PartialEq, Debug)]
       |                       ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq

    error: you are deriving `PartialEq` and can implement `Eq`
       --> gen/lib/src/syntax/mod.rs:285:23
        |
    285 | #[derive(Copy, Clone, PartialEq)]
        |                       ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq

    error: you are deriving `PartialEq` and can implement `Eq`
      --> gen/cmd/src/syntax/mod.rs:72:23
       |
    72 | #[derive(Copy, Clone, PartialEq, Debug)]
       |                       ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq

    error: you are deriving `PartialEq` and can implement `Eq`
       --> gen/cmd/src/syntax/mod.rs:285:23
        |
    285 | #[derive(Copy, Clone, PartialEq)]
        |                       ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq

    error: you are deriving `PartialEq` and can implement `Eq`
      --> gen/build/src/syntax/mod.rs:72:23
       |
    72 | #[derive(Copy, Clone, PartialEq, Debug)]
       |                       ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq

    error: you are deriving `PartialEq` and can implement `Eq`
       --> gen/build/src/syntax/mod.rs:285:23
        |
    285 | #[derive(Copy, Clone, PartialEq)]
        |                       ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq

    error: you are deriving `PartialEq` and can implement `Eq`
     --> macro/src/syntax/atom.rs:5:23
      |
    5 | #[derive(Copy, Clone, PartialEq)]
      |                       ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
      |
      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq

    error: you are deriving `PartialEq` and can implement `Eq`
      --> macro/src/syntax/derive.rs:10:23
       |
    10 | #[derive(Copy, Clone, PartialEq)]
       |                       ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq

    error: you are deriving `PartialEq` and can implement `Eq`
      --> macro/src/syntax/mod.rs:72:23
       |
    72 | #[derive(Copy, Clone, PartialEq, Debug)]
       |                       ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq

    error: you are deriving `PartialEq` and can implement `Eq`
       --> macro/src/syntax/mod.rs:285:23
        |
    285 | #[derive(Copy, Clone, PartialEq)]
        |                       ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
2022-05-21 19:58:53 -07:00
David Tolnay
44762a6470
Update ui test suite to nightly-2022-04-30 2022-04-29 19:53:28 -07:00
David Tolnay
21e66f64f9
Update ui test suite to nightly-2022-04-28 2022-04-27 20:02:52 -07:00
David Tolnay
0be969daa5
Update ui test suite to nightly-2022-04-27 2022-04-26 21:28:49 -07:00
David Tolnay
36737e42d6
Ignore unused ignore attribute warning in some configurations 2022-04-24 15:59:25 -07:00
David Tolnay
2ec5f2b839
Disable ui test on miri 2022-04-24 15:17:52 -07:00
David Tolnay
a2be2f03da
Update ui test suite to nightly-2022-04-23 2022-04-22 19:54:44 -07:00
David Tolnay
d89e36260f
Update ui test suite to nightly-2022-04-18 2022-04-17 20:48:18 -07:00
David Tolnay
e09caa6a1f
Enforce edition on all Bazel targets 2022-04-10 18:07:47 -07:00
David Tolnay
3f3705978e
Update ui test suite to nightly-2022-03-31 2022-03-30 19:31:36 -07:00
David Tolnay
4f3cd190e6
Update ui test suite to nightly-2022-03-09 2022-03-08 18:32:27 -08:00
David Tolnay
033294e893
Add test of struct containing C array 2022-03-08 12:03:03 -08:00
David Tolnay
883ed7783f
Update ui test suite to nightly-2022-02-12 2022-02-11 18:59:37 -08:00
David Tolnay
3df4cc84a1
Update ui test suite to nightly-2022-02-09 2022-02-08 18:34:22 -08:00
David Tolnay
47465d2bf1
Touch up PR 984 2021-12-31 13:36:34 -08:00
David Tolnay
a4bc81f48a
Merge pull request #984 from benesch/lossy
Add String::lossy constructors to C++ API
2021-12-31 13:19:37 -08:00
Nikhil Benesch
3724105cea
Add String::lossy constructors to C++ API
This constructor maps to `String::from_utf8_lossy` or
`String::from_utf16_lossy`. It's useful in situations where producing a
slightly garbled string on invalid Unicode data is preferable to
crashing the process, e.g. when passing error messages from C++ to Rust.
2021-12-27 13:26:09 -05:00
Nikhil Benesch
e3918b5422
Add Vec<T>::truncate to C++ API
Based on the model of #951, which added `Vec<T>::clear`. The `truncate`
method is the more general form of clear.

(If we wanted to, we could delete the binding for `clear` and implement
`clear` as a call to `truncate(0)` on the C++ side, but seemed worth
leaving in in case the Rust `clear` implementation one day gets
smarter.)
2021-12-26 15:18:50 -05:00
David Tolnay
def09ab798
Add link to cxx-async repo in async error message 2021-12-12 20:25:28 -08:00
David Tolnay
8e309b2f2d
Add an async extern C++ function to the ui test 2021-12-12 20:22:58 -08:00
David Tolnay
c756a7405d
Update ui test suite to nightly-2021-12-13 2021-12-12 19:09:16 -08:00
David Tolnay
5e076627a7
Add ui test with denied elided lifetime 2021-12-10 13:24:42 -08:00
David Tolnay
aa3e828402
Merge pull request #951 from rookboom/vector_clear
Add Vec clear
2021-12-08 17:11:50 -08:00
David Tolnay
b0b6fd8788
Add CI builds on no_std and no_alloc 2021-12-07 15:44:13 -08:00
David Tolnay
d2a3315eb5
Update ui test suite to nightly-2021-12-02 2021-12-01 18:52:35 -08:00
David Tolnay
9e55768c03
Update ui test suite to nightly-2021-11-22 2021-11-21 18:48:05 -08:00
David Tolnay
6d6a93d79c
Merge pull request #954 from hlopko/use_defs_bzl
Migrate cxx for bazelbuild/rules_rust#591
2021-10-26 19:40:45 -07:00
David Tolnay
6fec63d89d
Update ui tests to most recent trybuild normalization 2021-10-26 13:02:25 -07:00
Marcel Hlopko
0ad4fe5543 Migrate cxx for bazelbuild/rules_rust#591 2021-10-26 08:16:00 +02:00
David Tolnay
10173e5499
Update ui test suite to nightly-2021-10-26 2021-10-25 19:34:49 -07:00
David Tolnay
d8ef03b0da
Work around distracting guidance from rustc on types needed 2021-10-25 19:33:41 -07:00
Johan Verwey
54187c9e82
Added 'clear' method to rust::Vec 2021-10-20 08:10:32 -07:00
David Tolnay
9f83380038
Ui test changes for trybuild 1.0.49 2021-10-08 02:44:10 -04:00
David Tolnay
fff869fcda
Update ui test files 2021-10-07 00:40:08 -04:00
David Tolnay
36d9ac1fab
Update ui test suite to nightly-2021-09-14 2021-09-14 19:14:18 -07:00
David Tolnay
8f56cbbace
Expose capacity and reserve on rust::String 2021-08-27 13:14:05 -07:00
David Tolnay
f1e2af8472
Update ui test suite to nightly-2021-08-20 2021-08-19 20:38:47 -07:00
David Tolnay
4d45418b75
Update ui test suite to nightly-2021-08-18 2021-08-17 19:29:23 -07:00
David Tolnay
4309c43a5b
Remove rules that override rules_rust's default edition 2021-08-14 13:09:16 -07:00
David Tolnay
a104fd6b67
Tweak extern Rust Result spans to work with nightly-2021-08-12 2021-08-11 19:26:00 -07:00
David Tolnay
5369efd9bc
Update ui test suite to nightly-2021-08-12 2021-08-11 19:18:46 -07:00