about summary refs log tree commit diff
path: root/src/test/ui-fulldeps
AgeCommit message (Collapse)AuthorLines
2020-09-02pretty: trim paths of unique symbolsDan Aloni-2/+2
If a symbol name can only be imported from one place for a type, and as long as it was not glob-imported anywhere in the current crate, we can trim its printed path and print only the name. This has wide implications on error messages with types, for example, shortening `std::vec::Vec` to just `Vec`, as long as there is no other `Vec` importable anywhere. This adds a new '-Z trim-diagnostic-paths=false' option to control this feature. On the good path, with no diagnosis printed, we should try to avoid issuing this query, so we need to prevent trimmed_def_paths query on several cases. This change also relies on a previous commit that differentiates between `Debug` and `Display` on various rustc types, where the latter is trimmed and presented to the user and the former is not.
2020-09-01Add SessionDiagnostic derive macro.jumbatm-0/+395
Co-authored-by: Oliver Scherer <github35764891676564198441@oli-obk.de>
2020-08-20Capture tokens for Pat used in macro_rules! argumentAaron Hill-0/+1
This extends PR #73293 to handle patterns (Pat). Unlike expressions, patterns do not support custom attributes, so we only need to capture tokens during macro_rules! argument parsing.
2020-08-17rust_ast::ast => rustc_astUjjwal Sharma-3/+3
2020-08-14Fix ui fulldeps testsMatthew Jasper-88/+75
2020-08-08Eliminate the `SessionGlobals` from `librustc_ast`.Nicholas Nethercote-4/+4
By moving `{known,used}_attrs` from `SessionGlobals` to `Session`. This means they are accessed via the `Session`, rather than via TLS. A few `Attr` methods and `librustc_ast` functions are now methods of `Session`. All of this required passing a `Session` to lots of functions that didn't already have one. Some of these functions also had arguments removed, because those arguments could be accessed directly via the `Session` argument. `contains_feature_attr()` was dead, and is removed. Some functions were moved from `librustc_ast` elsewhere because they now need to access `Session`, which isn't available in that crate. - `entry_point_type()` --> `librustc_builtin_macros` - `global_allocator_spans()` --> `librustc_metadata` - `is_proc_macro_attr()` --> `Session`
2020-07-18rustc_metadata: Make crate loading fully speculativeVadim Petrochenkov-13/+3
2020-07-10Avoid "whitelist"Tamir Duberstein-11/+11
Other terms are more inclusive and precise.
2020-07-09Eliminate confusing "globals" terminology.Nicholas Nethercote-2/+2
There are some structures that are called "globals", but are they global to a compilation session, and not truly global. I have always found this highly confusing, so this commit renames them as "session globals" and adds a comment explaining things. Also, the commit fixes an unnecessary nesting of `set()` calls `src/librustc_errors/json/tests.rs`
2020-07-03Use 'tcx for references to AccessLevels wherever possible.Eduard-Mihai Burtescu-5/+5
2020-06-15make all uses of ty::Error or ConstKind::Error delay a span bugmark-2/+2
2020-06-10Fix pprust-expr-roundtripAaron Hill-2/+2
2020-06-06Auto merge of #72927 - petrochenkov:rustc, r=Mark-Simulacrumbors-35/+34
Rename all remaining compiler crates to use the `rustc_foo` pattern libarena -> librustc_arena libfmt_macros -> librustc_parse_format libgraphviz -> librustc_graphviz libserialize -> librustc_serialize Closes https://github.com/rust-lang/rust/issues/71177 in particular.
2020-06-03Update fulldeps tests and clippyVadim Petrochenkov-27/+26
2020-06-02Rename the crates in source codeVadim Petrochenkov-8/+8
2020-06-02compiletest: Add name directive for remote runnersTom Eccles-0/+2
Allow tests to use // ignore-remote to ignore the test when using remote-test-{client,server}. In most situations this would be covered by // ignore-cross-compile but I see no reason that a non-cross compiled remote test runner shouldn't work.
2020-05-27Add test for {impl,declare}_lint_pass macrosflip1995-0/+26
2020-05-24Collect tokens for `ast::Expr`Aaron Hill-0/+2
2020-05-12Remove ty::UnnormalizedProjectionJack Huey-15/+8
2020-05-09Rollup merge of #71555 - cjgillot:nameless, r=matthewjasperRalf Jung-0/+1
Remove ast::{Ident, Name} reexports. The reexport of `Symbol` into `Name` confused me.
2020-05-08Fix testsCamille GILLOT-0/+1
2020-05-07Renamed "undef" stuff to "uninit"Hanif Bin Ariffin-2/+2
1. InvalidUndefBytes -> InvalidUninitBytes 2. ScalarMaybeUndef -> ScalarMaybeUninit 3. UndefMask -> InitMask Related issue #71193
2020-04-25Remove support for self-openingMark Rousskov-48/+0
This was only used for linkage test cases, which is already covered by the run-make-fulldeps/symbol-visibility test -- which fairly extensively makes sure we're correctly exporting the right symbols at the right visibility (for various Rust crate types).
2020-04-11rustc: Add a warning count upon completionRoccoDev-11/+29
2020-04-07rustc_session: forbid lints override regardless of positionTobias Thiel-0/+17
2020-04-02fix fulldeps test falloutMazdak Farrokhzad-1/+2
2020-03-30rustc -> rustc_middle part 5 -- fix testsMazdak Farrokhzad-18/+18
2020-03-30rustc -> rustc_middle part 2Mazdak Farrokhzad-3/+3
2020-03-24resolve: Remove `rustc_attrs` as a standalone feature gateVadim Petrochenkov-95/+18
Now it only gates specific built-in attributes
2020-03-22parse: nix new_sub_parser_from_fileMazdak Farrokhzad-1/+1
2020-03-18fix pre-expansion linting infraMazdak Farrokhzad-7/+5
2020-03-14Update testsJohn Kåre Alsaker-4/+4
2020-02-29Rename `syntax` to `rustc_ast` in source codeVadim Petrochenkov-17/+17
2020-02-29Make it build againVadim Petrochenkov-2/+2
2020-02-17Rename `FunctionRetTy` to `FnRetTy`Yuki Okushi-1/+1
2020-02-16Auto merge of #67885 - tobithiel:fix_group_lint_allow_override, ↵bors-0/+7
r=Mark-Simulacrum rustc_session: allow overriding lint level of individual lints from a group Fixes #58211 and fixes rust-lang/rust-clippy#4778 and fixes rust-lang/rust-clippy#4091 Instead of hard-coding the lint level preferences (from lowest to highest precedence: `lint::Allow -> lint::Warn -> lint::Deny -> lint::Forbid`), the position of the argument in the command line gets taken into account. Examples: 1. Passing `-D unused -A unused-variables` denies everything in the lint group `unused` **except** `unused-variables` which is explicitly allowed. 1. Passing `-A unused-variables -D unused` denies everything in the lint group `unused` **including** `unused-variables` since the allow is specified before the deny (and therefore overridden by the deny). This matches the behavior that is already being used when specifying `allow`/`deny` in the source code.
2020-02-13IsAsync -> enum Async { Yes { span: Span, .. }, No }Mazdak Farrokhzad-1/+1
use new span for better diagnostics.
2020-02-11Fix stage2 test failures from call to span_lint.jumbatm-43/+80
span_lint was removed. Callers should use the `lint` method now, and call `set_span` within the closure passed to this method.
2020-02-09--bless --compare-mode=nllMatthias Prechtl-8/+8
2020-02-06rustc_macros: don't limit the -Zmacro-backtrace suggestion to extern macros.Eduard-Mihai Burtescu-0/+2
2020-02-01fix fallout in testsMazdak Farrokhzad-4/+8
2020-01-24Normalise notes with the/isvarkor-9/+9
2020-01-11fix ui-fulldeps & tests falloutMazdak Farrokhzad-18/+18
2020-01-11fix fallout in ui-fulldepsMazdak Farrokhzad-5/+4
2020-01-09Update testsVadim Petrochenkov-10/+95
2020-01-08normalize rustc::hir::intravisit importsMazdak Farrokhzad-1/+1
2020-01-06Improve hygiene of `newtype_index`Matthew Jasper-22/+0
Also add unit tests
2020-01-05fix ui-fulldeps falloutMazdak Farrokhzad-7/+10
2020-01-04rustc_session: allow overriding lint level of individual lints from a groupTobias Thiel-0/+7
2020-01-02fix src/test falloutMazdak Farrokhzad-9/+14