about summary refs log tree commit diff
path: root/src/test/ui/extern-flag
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-136/+0
2022-09-23ignore test cases when checking emscriptenFlorian Bartels-0/+1
2022-09-23Restore ignore tagFlorian Bartels-1/+0
This test case actually requires std::process.
2022-07-20Use FxIndexMap instead of otherwise unused StableMap for WEAK_ITEMS_REFS.Michael Woerister-2/+2
2022-04-23Add support for `nounused` --extern flagJeremy Fitzhardinge-0/+23
This adds `nounused` to the set of extern flags: `--extern nounused:core=/path/to/core/libcore.rlib`. The effect of this flag is to suppress `unused-crate-dependencies` warnings relating to the crate.
2021-12-14Suggest to specify a target triple when eh_personality lang item is missingLucas Kent-0/+3
2021-12-01Improve suggestion for extern crate self error messageMichael-0/+2
2021-12-01Stop treating extern crate loading failures as fatal errorsMichael-1/+5
2020-12-29Remove `compile-fail` test suiteVadim Petrochenkov-0/+8
2020-09-09Rollup merge of #75984 - kornelski:typeormodule, r=matthewjasperTyler Mandry-4/+4
Improve unresolved use error message "use of undeclared type or module `foo`" doesn't mention that it could be a crate. This error can happen when users forget to add a dependency to `Cargo.toml`, so I think it's important to mention that it could be a missing crate. I've used a heuristic based on Rust's naming conventions. It complains about an unknown type if the ident starts with an upper-case letter, and crate or module otherwise. It seems to work very well. The expanded error help covers both an unknown type and a missing crate case.
2020-09-02pretty: trim paths of unique symbolsDan Aloni-1/+1
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-01Clarify message about unresolved useKornel-4/+4
2020-01-24Normalise notes with the/isvarkor-1/+1
2019-12-09compiletest: add aux-crate directiveEric Huss-0/+30
2019-12-09Add options to --extern flag.Eric Huss-0/+66