about summary refs log tree commit diff
path: root/src/test/codegen/remap_path_prefix
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-77/+0
2022-12-06Fix failing codegen tests on s390xUlrich Weigand-1/+1
Several codegen tests are currently failing due to making assumptions that are not valid for the s390x architecture: - catch-unwind.rs: fails due to inlining differences. Already ignored on another platform for the same reason. Solution: Ignore on s390x. - remap_path_prefix/main.rs: fails due to different alignment requirement for string constants. Solution: Do not test for the alignment requirement. - repr-transparent-aggregates-1.rs: many ABI assumptions. Already ignored on many platforms for the same reason. Solution: Ignore on s390x. - repr-transparent.rs: no vector ABI by default on s390x. Already ignored on another platform for a similar reason. Solution: Ignore on s390x. - uninit-consts.rs: hard-coded little-endian constant. Solution: Match both little- and big-endian versions. Fixes part of https://github.com/rust-lang/rust/issues/105383.
2022-07-01Amend codegen test.Camille GILLOT-1/+1
2022-05-18Properly apply path prefix remapping paths emitted into debuginfo.Michael Woerister-1/+1
2022-04-29Fix duplicate directory separator in --remap-path-prefix.Michael Woerister-1/+1
2021-07-14bless mir-opt, codegen, and remaining ui testsRalf Jung-1/+1
2021-05-05Add -Z simulate-remapped-rust-src-base option to simulate path ↵Andy Wang-3/+6
virutalisation during bootstrapping
2021-05-04Add test for --remap-path-prefix on std importsAndy Wang-0/+12
2021-04-03Remove redundant `ignore-tidy-linelength` annotationsSimon Jakobi-3/+3
This is step 2 towards fixing #77548. In the codegen and codegen-units test suites, the `//` comment markers were kept in order not to affect any source locations. This is because these tests cannot be automatically `--bless`ed.
2020-04-02Add hash of source files in debug infoArlo Siemsen-3/+3
* Adds either an MD5 or SHA1 hash to the debug info. * Adds new unstable option `-Z src-hash-algorithm` to control the hashing algorithm.
2020-03-12support LLVM globals corresponding to miri allocationsChris Simpkins-1/+1
2019-04-23Remove unnecessary ignore-tidy-linelengthvarkor-1/+0
2018-12-25Remove licensesMark Rousskov-50/+0
2018-09-27rustc: Tweak filenames encoded into metadataAlex Crichton-0/+41
This commit is a fix for #54408 where on nightly right now whenever generics are inlined the path name listed for the inlined function's debuginfo is a relative path to the cwd, which surely doesn't exist! Previously on beta/stable the debuginfo mentioned an absolute path which still didn't exist, but more predictably didn't exist. The change between stable/nightly is that nightly is now compiled with `--remap-path-prefix` to give a deterministic prefix to all rustc-generated paths in debuginfo. By using `--remap-path-prefix` the previous logic would recognize that the cwd was remapped, causing the original relative path name of the standard library to get emitted. If `--remap-path-prefix` *wasn't* passed in then the logic would create an absolute path name and then create a new source file entry. The fix in this commit is to apply the "recreate the source file entry with an absolute path" logic a bit more aggresively. If the source file's name was remapped then we don't touch it, but otherwise we always take the working dir (which may have been remapped) and then join it to the file to ensure that we process all relative file names as well. The end result is that the standard library should have an absolute path for all file names in debuginfo (using our `--remap-path-prefix` argument) as it does on stable after this patch. Closes #54408
2018-07-31Make globals with private linkage unnamed. Fixes #50862.Colin Pronovost-1/+1
2018-03-08Codegen testsOliver Schneider-1/+1
2018-02-22Implement --remap-path-prefixJeremy Fitzhardinge-2/+2
Remove experimental -Zremap-path-prefix-from/to, and replace it with the stabilized --remap-path-prefix=from=to variant. This is an implementation for issue of #41555.
2017-12-14Use PathBuf instead of String where applicableOliver Schneider-1/+1
2017-09-30Don't use remapped path when loading modules and include filesPhilip Craig-0/+23
2017-04-28Disable path remapping test on Windows.Michael Woerister-0/+1
2017-04-26Make codegen test for remap-path-prefix more thorough.Michael Woerister-0/+48