about summary refs log tree commit diff
path: root/src/test
AgeCommit message (Collapse)AuthorLines
2019-03-17Use a valid name for graphviz graphsMatthew Jasper-0/+23
2019-03-16parse full visibility when recoveringEsteban Küber-2/+10
2019-03-16Recover from incorrect `pub` kw in "reasonable" placesEsteban Küber-39/+13
2019-03-16Recover from missing comma between enum variantsEsteban Küber-20/+43
2019-03-16Merge remote-tracking branch 'upstream/master' into asm-compile-testsDenys Zariaiev-318/+596
2019-03-16Don't report deprecation lints in derive expansionsOliver Scherer-0/+18
2019-03-16syntax: Introduce `Ident::can_be_raw`Vadim Petrochenkov-13/+15
2019-03-16syntax_ext: Validate `#[proc_macro_derive]` input betterVadim Petrochenkov-5/+17
Tweak some error wording
2019-03-16syntax: Do not accidentally treat multi-segment meta-items as single-segmentVadim Petrochenkov-3/+15
2019-03-16Add tests for malformed input in `#[proc_macro_derive]`Vadim Petrochenkov-84/+118
2019-03-16use the identifier span for missing struct fieldAndy Russell-7/+7
2019-03-16Rollup merge of #59206 - sntdevco:master, r=dtolnaykennytm-4/+4
Improved test output
2019-03-16Rollup merge of #59201 - lambda:remove-repr-simd-isize-usize-restriction, ↵kennytm-11/+34
r=alexcrichton Remove restriction on isize/usize in repr(simd) As discussed in #55078, there's no known reason for this restriction. It's unlikely that repr(simd) will be stabilized in its current form, but might as well remove some restrictions on it. This removes the branch in `is_machine` which returns false for these types. `is_machine` is only used for the repr(simd) type validation check.
2019-03-16Rollup merge of #59169 - tmandry:allow-features-flag, r=cramertjkennytm-0/+50
Add `-Z allow_features=...` flag Adds a compiler option to allow only whitelisted features. For projects on nightly that want to prevent feature-creep (and maybe, someday, move off of nightly). Not being able to enforce this has been a problem on Fuchsia and at other big companies. This doesn't support filtering edition feature flags, but someone is welcome to add that if they need it.
2019-03-16Rollup merge of #59156 - davidtwco:issue-55809, r=nikomatsakiskennytm-0/+30
[wg-async-await] Add regression test for #55809. Fixes #55809. This PR adds a regression test for #55809 which checks that a overflow does not occur when evaluating a requirement for async functions and `&mut` arguments in some specific circumstances.
2019-03-16Rollup merge of #59146 - estebank:suggest-return-lt, r=varkorkennytm-0/+35
Suggest return lifetime when there's only one named lifetime Fix #29094.
2019-03-16Rollup merge of #59139 - oli-obk:unions_are_a_good_thing, r=RalfJungkennytm-0/+11
Unregress using scalar unions in constants. fixes https://github.com/rust-lang/rust/issues/59126 r? @RalfJung I also made a bunch of these invariants panic instead of report an error.
2019-03-16Rollup merge of #59118 - seanmonstar:alias-where-self-ice, r=alexregkennytm-0/+25
rustc: fix ICE when trait alias has bare Self Fixes https://github.com/rust-lang/rust/issues/59029
2019-03-16Rollup merge of #59079 - euclio:macro-semi, r=estebankkennytm-4/+60
add suggestions to invalid macro item error r? @estebank
2019-03-16Rollup merge of #59036 - dlrobertson:fix_59021, r=estebankkennytm-0/+18
Fix ICE in MIR pretty printing A `Def::Variant` should be considered as a function in mir pretty printing. Each variant has a constructor that we must print. Given the following enum definition: ```rust pub enum TestMe { X(usize), } ``` We will need to generate a constructor for the variant `X` with a signature that looks something like the following: ``` fn TestMe::X(_1: usize) -> TestMe; ``` Fixes: #59021
2019-03-16Rollup merge of #59025 - aoikonomopoulos:issue-57924, r=varkorkennytm-0/+9
Fix generic argument lookup for Self Rewrite the SelfCtor early and use the replacement Def when calculating the path_segs. Note that this also changes which def is seen by the code that computes user_self_ty and is_alias_variant_ctor; I don't see a immediate issue with that, but I'm not 100% clear on the implications. Fixes #57924 r? @eddyb
2019-03-16resolve: Account for new importable entitiesVadim Petrochenkov-0/+42
2019-03-16Fix testbjorn3-7/+34
2019-03-16fix testsGrigorii Kargin-6/+6
2019-03-15Elide object safety errors on non-existent trait functionEsteban Küber-0/+33
Fix #58734.
2019-03-15Auto merge of #58556 - oli-obk:imperative_recursion, r=pnkfelixbors-0/+26
Optimize copying large ranges of undefmask blocks Hopefully fixes #58523
2019-03-15use `!` in macro disambiguation suggestionAndy Russell-3/+3
2019-03-15replace ad-hoc namespace enumsAndy Russell-5/+5
2019-03-15overhaul intra-doc-link ambiguity warningAndy Russell-1/+120
- Makes the warning part of the `intra_doc_link_resolution_failure` lint. - Tightens the span to just the ambiguous link. - Reports ambiguities across all three namespaces. - Uses structured suggestions for disambiguation. - Adds a test for the warnings.
2019-03-15Remove copyright noticesDouglas Creager-42/+1
2019-03-15Remove restriction on isize/usize in repr(simd)Brian Campbell-11/+34
As discussed in #55078, there's no known reason for this restriction. It's unlikely that repr(simd) will be stabilized in its current form, but might as well remove some restrictions on it. This removes the branch in `is_machine` which returns false for these types. `is_machine` is only used for the repr(simd) type validation check.
2019-03-15rustc: print ExistentialProjection with spaces around `=`, e.g. `dyn Foo<A = ↵Eduard-Mihai Burtescu-20/+20
X>`.
2019-03-15rustc: provide DisambiguatedDefPathData in ty::print.Eduard-Mihai Burtescu-27/+27
2019-03-15rustc: slice substs in ty::print instead of passing the full ones.Eduard-Mihai Burtescu-2/+2
2019-03-15rustc: print elided regions as '_ instead of nothing, and use a separate ↵Eduard-Mihai Burtescu-4/+4
check when optional.
2019-03-15rustc: always hide defaulted generic args, even in verbose mode.Eduard-Mihai Burtescu-2/+2
2019-03-15rustc: merge PrintCx::parameterized and def_path printing.Eduard-Mihai Burtescu-2/+2
2019-03-15rustc: rename item_path to def_path (except the module in ty).Eduard-Mihai Burtescu-13/+13
2019-03-15rustc_mir: adjust the type_length_limit diagnostic to be more useful.Eduard-Mihai Burtescu-5/+11
2019-03-15rustc: pass Option<&Substs> and Namespace around in ty::item_path.Eduard-Mihai Burtescu-43/+43
2019-03-15Improved test output for estr-slicesntdevco-4/+4
2019-03-15rustc: explicitly pass the namespace to PrintCx::parameterized.Eduard-Mihai Burtescu-5/+5
2019-03-15rustc: always rely on '_ to be not printed by ty::Region itself.Eduard-Mihai Burtescu-9/+9
2019-03-15rustc: support impl's in PrintCx::parameterized.Eduard-Mihai Burtescu-16/+16
2019-03-14Do not complain about unmentioned fields in recovered patternsEsteban Küber-27/+4
When the parser has to recover from malformed code in a pattern, do not complain about missing fields.
2019-03-14Add `-Z allow_features=...` flagTyler Mandry-0/+50
2019-03-14Add default keyword handling in rustdocGuillaume Gomez-0/+15
2019-03-14Auto merge of #59120 - alexreg:move-issue-tests-1, r=varkorbors-188/+177
Moved issue tests to subdirs and normalised names Consistency, decluttering, ease of navigation :-) r? @Centril
2019-03-14Moved issue tests to subdirs and normalised names.Alexander Regueiro-188/+177
2019-03-13test that wildcard type `_` is not duplicated by `type Foo<X> = (X, X);` and ↵Felix S. Klock II-0/+99
potentially instantiated at different types. (Updated to reflect changes in diagnostic output and compiletest infrastructure.)