summary refs log tree commit diff
path: root/src/test
AgeCommit message (Collapse)AuthorLines
2018-12-04Propagate all closure requirements to the callerMatthew Jasper-0/+42
2018-11-29rustc_codegen_llvm: don't overalign loads of pair operands.Eduard-Mihai Burtescu-0/+18
2018-11-29resolve: Fix false-positives from lint `absolute_paths_not_starting_with_crate`Vadim Petrochenkov-0/+21
2018-11-29Fix alignment of stores to scalar pairNikita Popov-0/+18
The alignment for the second element of a scalar pair is not the same as for the first element. Make sure it is computed correctly based on the element size.
2018-11-29resolve: Extern prelude is for type namespace onlyVadim Petrochenkov-0/+8
2018-11-26 Rollup merge of #56053 - petrochenkov:absedihyg, r=nikomatsakis,alexcrichtonPietro Albini-336/+488
2018-11-26fix ICEF001-0/+27
2018-11-25resolve: Suggest `crate::` for resolving ambiguities when appropriateVadim Petrochenkov-34/+80
More precise spans for ambiguities from macros
2018-11-25resolve: Fallback to extern prelude in 2015 imports used from global 2018 ↵Vadim Petrochenkov-15/+39
edition
2018-11-25resolve: Fallback to uniform paths in 2015 imports used from global 2018 editionVadim Petrochenkov-2/+88
2018-11-25resolve: Implement edition hygiene for imports and absolute pathsVadim Petrochenkov-0/+149
Use per-span hygiene in a few other places in resolve Prefer `rust_2015`/`rust_2018` helpers to comparing editions
2018-11-25Remove duplicate tests for uniform pathsVadim Petrochenkov-312/+0
2018-11-25resolve: Fix some more asserts in import validationVadim Petrochenkov-25/+61
2018-11-25resolve: Fix bad span arithmetics in import conflict diagnosticsVadim Petrochenkov-3/+20
2018-11-22add compile-pass annotationNiko Matsakis-0/+2
2018-11-22add regression testNiko Matsakis-0/+13
2018-11-22Replace the ICEing on const fn loops with an errorOliver Scherer-0/+13
2018-11-22resolve: Make "empty import canaries" invisible from other cratesVadim Petrochenkov-0/+11
2018-11-22resolve: Fix some asserts in import validationVadim Petrochenkov-0/+67
2018-11-20Add a couple more testsVadim Petrochenkov-1/+31
2018-11-20Stabilize `extern_crate_item_prelude`Vadim Petrochenkov-132/+2
2018-11-20Fix Rustdoc ICE when checking blanket implsAaron Hill-0/+31
Fixes #55001, #54744 Previously, SelectionContext would unconditionally cache the selection result for an obligation. This worked fine for most users of SelectionContext, but it caused an issue when used by Rustdoc's blanket impl finder. The issue occured when SelectionContext chose a ParamCandidate which contained inference variables. Since inference variables can change between calls to select(), it's not safe to cache the selection result - the chosen candidate might not be applicable for future results, leading to an ICE when we try to run confirmation. This commit prevents SelectionContext from caching any ParamCandidate that contains inference variables. This should always be completely safe, as trait selection should never depend on a particular result being cached. I've also added some extra debug!() statements, which I found helpful in tracking down this bug.
2018-11-20Update stderr fileOliver Scherer-2/+2
2018-11-20Fix stability hole with `static _`Oliver Scherer-0/+33
2018-11-20Adjust Ids of path segments in visibility modifiersNick Cameron-0/+25
Fixes #55376
2018-11-20squashed form of #54145Nick Cameron-152/+152
Give each PathSegment a NodeId Store a resolved def on hir::PathSegment save-analysis: remove hacky, unnecessary code now that we have spans for every ident dump data for prefix path segments dump refs for path segments in save-analysis Requires adding path segments to the hir map Fix tests and rustdoc save-analysis: handle missing field names FIxes https://github.com/rust-lang-nursery/rls/issues/1031 rebasing and reviewer changes Primarily refactoring `(Ident, Option<NodeId>)` to `Segment` Fix tests and assertions; add some comments more reviewer changes
2018-11-19don't inline `pub use some_crate` unless directly asked toQuietMisdreavus-0/+64
2018-11-19Use non-short suggestion for parenthesised ..=varkor-2/+2
2018-11-19Rewrite `...` as `..=` as a MachineApplicable 2018 idiom lintvarkor-2/+20
2018-11-19handle trait objects formed from traits with `Self::Foo: 'a` clausesNiko Matsakis-0/+17
2018-11-19remove "approx env bounds" if we already know from traitNiko Matsakis-0/+37
2018-11-19Test for cast causing static promotion failure.David Wood-0/+21
This commit adds a test that ensures that a cast in a static doesn't stop const promotion within the static.
2018-11-17Add a couple more tests + address review commentsVadim Petrochenkov-4/+154
2018-11-17resolve: Future-proof against imports referring to local variables and ↵Vadim Petrochenkov-0/+99
generic parameters
2018-11-17resolve: Avoid sentence breaks in diagnosticsVadim Petrochenkov-174/+174
2018-11-17resolve: Support resolving macros without leaving tracesVadim Petrochenkov-0/+13
2018-11-17resolve: Reintroduce feature gate for uniform paths in importsVadim Petrochenkov-52/+110
2018-11-17Fix ICEs from imports of items not defined in modulesVadim Petrochenkov-15/+163
2018-11-17resolve: Tweak some articles in ambiguity diagnosticsVadim Petrochenkov-63/+63
2018-11-17resolve: Recover "did you mean" suggestions in importsVadim Petrochenkov-12/+6
2018-11-17resolve: Check resolution consistency for import paths and multi-segment ↵Vadim Petrochenkov-63/+159
macro paths
2018-11-17resolve: Resolve single-segment imports using in-scope resolution on 2018 ↵Vadim Petrochenkov-3/+15
edition
2018-11-17resolve: More precise determinacy tracking during import/macro resolutionVadim Petrochenkov-6/+6
2018-11-17resolve: Improve diagnostics for resolution ambiguitiesVadim Petrochenkov-283/+303
2018-11-17resolve: Simplify ambiguity checking for built-in attributesVadim Petrochenkov-6/+6
2018-11-17resolve: Prohibit relative paths in visibilities on 2018 editionVadim Petrochenkov-0/+29
2018-11-15resolve: Filter away macro prelude in modules with `#[no_implicit_prelude]` ↵Vadim Petrochenkov-1/+25
on 2018 edition
2018-11-15Sidestep ICE in `type_of_def_id()` when called from `return_type_impl_trait`Esteban Küber-0/+72
2018-11-15std: Synchronize access to global env during `exec`Alex Crichton-0/+36
This commit, after reverting #55359, applies a different fix for #46775 while also fixing #55775. The basic idea was to go back to pre-#55359 libstd, and then fix #46775 in a way that doesn't expose #55775. The issue described in #46775 boils down to two problems: * First, the global environment is reset during `exec` but, but if the `exec` call fails then the global environment was a dangling pointer into free'd memory as the block of memory was deallocated when `Command` is dropped. This is fixed in this commit by installing a `Drop` stack object which ensures that the `environ` pointer is preserved on a failing `exec`. * Second, the global environment was accessed in an unsynchronized fashion during `exec`. This was fixed by ensuring that the Rust-specific environment lock is acquired for these system-level operations. Thanks to Alex Gaynor for pioneering the solution here! Closes #55775 Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com>
2018-11-15Revert "Fixes #46775 -- don't mutate the process's environment in Command::exec"Alex Crichton-12/+0
This reverts commit 36fe3b605a7a7143a14565272140ba1b43c1b041.