Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename CodeMap/FileMap to SourceMap/SourceFile #52953

Merged
merged 8 commits into from
Aug 20, 2018

Conversation

dsciarra
Copy link
Contributor

@dsciarra dsciarra commented Aug 1, 2018

A first renaming for #51574

@rust-highfive
Copy link
Collaborator

r? @petrochenkov

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 1, 2018
@rust-highfive
Copy link
Collaborator

The job x86_64-gnu-llvm-5.0 of your PR failed on Travis (raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.
[00:07:26]    Compiling proc_macro v0.0.0 (file:///checkout/src/libproc_macro)
[00:07:35]    Compiling syntax_ext v0.0.0 (file:///checkout/src/libsyntax_ext)
[00:13:46]    Compiling rustc_typeck v0.0.0 (file:///checkout/src/librustc_typeck)
[00:13:46]    Compiling rustc_mir v0.0.0 (file:///checkout/src/librustc_mir)
[00:13:52] error[E0599]: no method named `codemap` found for type `&rustc::session::Session` in the current scope
[00:13:52]    --> librustc_mir/borrow_check/mutability_errors.rs:426:25
[00:13:52]     |
[00:13:52] 426 |     (sp, match tcx.sess.codemap().span_to_snippet(sp) {
[00:13:52] 
[00:13:52] 
[00:13:52] error[E0599]: no method named `codemap` found for type `&rustc::session::Session` in the current scope
[00:13:52]    --> librustc_mir/borrow_check/mutability_errors.rs:489:31
[00:13:52]     |
[00:13:52] 489 |     if let Ok(src) = tcx.sess.codemap().span_to_snippet(highlight_span) {
[00:13:52] 
[00:14:01] error: aborting due to 2 previous errors
[00:14:01] 
[00:14:01] For more information about this error, try `rustc --explain E0599`.
[00:14:01] For more information about this error, try `rustc --explain E0599`.
[00:14:01] error: Could not compile `rustc_mir`.
[00:14:01] 
[00:14:01] Caused by:
[00:14:01]   process didn't exit successfully: `/checkout/obj/build/bootstrap/debug/rustc --crate-name rustc_mir librustc_mir/lib.rs --color always --error-format json --crate-type dylib --emit=dep-info,link -C prefer-dynamic -C opt-level=2 -C metadata=5179475e4c9280ac -C extra-filename=-5179475e4c9280ac --out-dir /checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps --target x86_64-unknown-linux-gnu -L dependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps -L dependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/release/deps --extern arena=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/libarena-148fd1c1391e24b6.so --extern bitflags=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/libbitflags-1ae79b79f441d17a.rlib --extern byteorder=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/libbyteorder-9b67c77caff626b1.rlib --extern either=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/libeither-21b97ae521a4c1d8.rlib --extern graphviz=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/libgraphviz-0959eff5b195ace2.so --extern log=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/liblog-eaf85f66e467efb7.rlib --extern log_settings=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/liblog_settings-2a6ed09af6dbfac4.rlib --extern polonius_engine=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/libpolonius_engine-1027159c1712a408.rlib --extern rustc=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/librustc-427106130ab2ff56.so --extern rustc_apfloat=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_apfloat-8ccf59c5e9e172ee.rlib --extern rustc_data_structures=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_data_structures-3d8079c0b5c752f1.so --extern rustc_errors=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_errors-890d7a0f1ffe7f0b.so --extern rustc_target=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_target-1508bcc57003426f.so --extern serialize=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/libserialize-a86c1222f09eecc5.so --extern serialize=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/libserialize-a86c1222f09eecc5.rlib --extern syntax=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/libsyntax-1f3f13939c5ccaf0.so --extern syntax_pos=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/libsyntax_pos-881cb3e68ed15c2c.so -L native=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/build/backtrace-sys-523855930bbd979d/out -L native=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/build/miniz-sys-298541be0c6807b6/out` (exit code: 101)
travis_time:end:1db0f6cc:start=1533142062019238770,finish=1533143009287909404,duration=947268670634

The command "stamp sh -x -c "$RUN_SCRIPT"" exited with 2.
travis_time:start:02f5e870

I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact @TimNN. (Feature Requests)

@petrochenkov
Copy link
Contributor

It would be nice to use same case conventions for everything and consistently treat "source map" and "file map" as two words (SourceMap, source_map) or one word (Sourcemap, sourcemap). The former seems preferable.

@petrochenkov petrochenkov added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 1, 2018
@TimNN
Copy link
Contributor

TimNN commented Aug 7, 2018

Ping from triage, @dsciarra! Some changes have been requested to your PR and it also needs to be rebased. Do you think you'll be able to work on this?

@rust-highfive
Copy link
Collaborator

The job x86_64-gnu-llvm-5.0 of your PR failed on Travis (raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.
[00:12:45]    Compiling rustc_metadata_utils v0.0.0 (file:///checkout/src/librustc_metadata_utils)
[00:12:45]    Compiling rustc_typeck v0.0.0 (file:///checkout/src/librustc_typeck)
[00:12:45]    Compiling rustc_mir v0.0.0 (file:///checkout/src/librustc_mir)
[00:12:46]    Compiling rustc_allocator v0.0.0 (file:///checkout/src/librustc_allocator)
[00:12:50] error[E0599]: no method named `codemap` found for type `&rustc::session::Session` in the current scope
[00:12:50]    --> librustc_mir/borrow_check/nll/region_infer/error_reporting/region_name.rs:188:27
[00:12:50]     |
[00:12:50] 188 |         let cm = tcx.sess.codemap();
[00:12:50] 
[00:12:50] 
[00:12:50] error[E0599]: no method named `codemap` found for type `&rustc::session::Session` in the current scope
[00:12:50]    --> librustc_mir/borrow_check/nll/region_infer/error_reporting/region_name.rs:608:26
[00:12:50]     |
[00:12:50] 608 |                 tcx.sess.codemap().end_point(span),
[00:12:50] 
[00:12:56] error: aborting due to 2 previous errors
[00:12:56] 
[00:12:56] For more information about this error, try `rustc --explain E0599`.
[00:12:56] For more information about this error, try `rustc --explain E0599`.
[00:12:56] error: Could not compile `rustc_mir`.
[00:12:56] 
[00:12:56] Caused by:
[00:12:56]   process didn't exit successfully: `/checkout/obj/build/bootstrap/debug/rustc --crate-name rustc_mir librustc_mir/lib.rs --color always --error-format json --crate-type dylib --emit=dep-info,link -C prefer-dynamic -C opt-level=2 -C metadata=ff181b58e43e5a7e -C extra-filename=-ff181b58e43e5a7e --out-dir /checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps --target x86_64-unknown-linux-gnu -L dependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps -L dependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/release/deps --extern arena=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/libarena-b8f9e6fb5ae336d7.so --extern bitflags=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/libbitflags-3907cba388d41ef0.rlib --extern byteorder=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/libbyteorder-8246be02936c9b1b.rlib --extern either=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/libeither-0a515e87c8afea9e.rlib --extern graphviz=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/libgraphviz-45ae4394366d07fd.so --extern log=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/liblog-b6c566856a1e65b9.rlib --extern log_settings=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/liblog_settings-f501f9d595863bbf.rlib --extern polonius_engine=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/libpolonius_engine-c6e8cf18dad58451.rlib --extern rustc=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/librustc-b308e2da12bfc8a3.so --extern rustc_apfloat=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_apfloat-165c205e2819b15f.rlib --extern rustc_data_structures=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_data_structures-8b624a6d6082b2ff.so --extern rustc_errors=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_errors-89eed8215142aadd.so --extern rustc_target=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_target-20eb47b9c402fee3.so --extern serialize=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/libserialize-8c9bc9ee6cc9592f.so --extern serialize=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/libserialize-8c9bc9ee6cc9592f.rlib --extern syntax=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/libsyntax-64bbe8e4870170a3.so --extern syntax_pos=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/libsyntax_pos-3b51f50aecba154c.so -L native=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/build/backtrace-sys-01a673445b66da02/out -L native=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/build/miniz-sys-3c585aa15bfc4e69/out` (exit code: 1)
[00:14:04] error: build failed
[00:14:04] command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "build" "--target" "x86_64-unknown-linux-gnu" "-j" "4" "--release" "--locked" "--color" "always" "--features" " jemalloc" "--manifest-path" "/checkout/src/rustc/Cargo.toml" "--message-format" "json"
[00:14:04] expected success, got: exit code: 101
[00:14:04] expected success, got: exit code: 101
[00:14:04] thread 'main' panicked at 'cargo must succeed', bootstrap/compile.rs:1119:9
[00:14:04] travis_fold:end:stage0-rustc

[00:14:04] travis_time:end:stage0-rustc:start=1533749395482492488,finish=1533749940304970284,duration=544822477796


[00:14:04] failed to run: /checkout/obj/build/bootstrap/debug/bootstrap build
[00:14:04] Build completed unsuccessfully in 0:09:59
[00:14:04] Makefile:28: recipe for target 'all' failed
[00:14:04] make: *** [all] Error 1

The command "stamp sh -x -c "$RUN_SCRIPT"" exited with 2.
travis_time:start:1e270eac
$ date && (curl -fs --head https://google.com | grep ^Date: | sed 's/Date: //g' || true)
$ date && (curl -fs --head https://google.com | grep ^Date: | sed 's/Date: //g' || true)
Wed Aug  8 17:39:00 UTC 2018
BIOS EBDA area
Aug  8 17:23:52 travis-job-64ca96c9-fa30-4895-a2e4-a6cca39ff47b kernel: [    0.000000] Calgary: Unable to locate Rio Grande table in EBDA - bailing!
Aug  8 17:23:52 travis-job-64ca96c9-fa30-4895-a2e4-a6cca39ff47b kernel: [    0.000000] Memory: 15375492K/15728196K available (8272K kernel code, 1304K rwdata, 4004K rodata, 1496K init, 1316K bss, 352704K reserved, 0K cma-reserved)
Aug  8 17:23:52 travis-job-64ca96c9-fa30-4895-a2e4-a6cca39ff47b kernel: [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
Aug  8 17:23:52 travis-job-64ca96c9-fa30-4895-a2e4-a6cca39ff47b kernel: [    0.000000] Hierarchical RCU implementation.
Aug  8 17:23:52 travis-job-64ca96c9-fa30-4895-a2e4-a6cca39ff47b kernel: [    0.000000]  Build-time adjustment of leaf fanout to 64.
Aug  8 17:23:52 travis-job-64ca96c9-fa30-4895-a2e4-a6cca39ff47b kernel: [    0.000000]  RCU restricting CPUs from NR_CPUS=512 to nr_cpu_ids=4.
Aug  8 17:23:52 travis-job-64ca96c9-fa30-4895-a2e4-a6cca39ff47b kernel: [    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=64, nr_cpu_ids=4
Aug  8 17:23:52 travis-job-64ca96c9-fa30-4895-a2e4-a6cca39ff47b kernel: [    0.000000] NR_IRQS:33024 nr_irqs:456 16
Aug  8 17:23:52 travis-job-64ca96c9-fa30-4895-a2e4-a6cca39ff47b kernel: [    0.000000] Console: colour VGA+ 80x25
Aug  8 17:23:52 travis-job-64ca96c9-fa30-4895-a2e4-a6cca39ff47b kernel: [    0.000000] console [ttyS0] enabled
Aug  8 17:23:52 travis-job-64ca96c9-fa30-4895-a2e4-a6cca39ff47b kernel: [    0.000000] tsc: Detected 2500.000 MHz processor
Aug  8 17:23:52 travis-job-64ca96c9-fa30-4895-a2e4-a6cca39ff47b kernel: [    0.437261] Calib50] Initializing cgroup subsys memory
Aug  8 17:23:52 travis-job-64ca96c9-fa30-4895-a2e4-a6cca39ff47b kernel: [    0.483204] Initializing cgroup subsys devices
Aug  8 17:23:52 travis-job-64ca96c9-fa30-4895-a2e4-a6cca39ff47b kernel: [    0.484753] Initializing cgroup subsys freezer
Aug  8 17:23:52 travis-job-64ca96c9-fa30-4895-a2e4-a6cca39ff47b kernel: [    0.486103] Initializing cgroup subsys net_cls
Aug  8 17:23:52 travis-job-64ca96c9-fa30-4895-a2e4-a6cca39ff47b kernel: [    0.487358] Initializing cgroup subsys perf_event
Aug  8 17:23:52 travis-job-64ca96c9-fa30-4895-a2e4-a6cca39ff47b kernel: [    0.488912] Initializing cgroup subsys net_prio
Aug  8 17:23:52 travis-job-64ca96c9-fa30-4895-a2e4-a6cca39ff47b kernel: [    0.490679] Initializing cgroup subsys hugetlb
Aug  8 17:23:52 travis-job-64ca96c9-fa30-4895-a2e4-a6cca39ff47b kernel: [    0.492341] Initializing cgroup subsys pids
Aug  8 17:23:52 travis-job-64ca96c9-fa30-4895-a2e4-a6cca39ff47b kernel: [    0.493950] CPU: Physical Processor ID: 0
Aug  8 17:23:52 travis-job-64ca96c9-fa30-4895-a2e4-a6cca39ff47b kernel: [    0.495162] CPU: Processor Core ID: 0
Aug  8 17:23:52 travis-job-64ca96c9-fa30-4895-a2e4-a6cca39ff47b kernel: [    0.498255] mce: CPU supports 32 MCE banks
Aug  8 17:23:52 travis-job-64ca96c9-fa30-4895-a2e4-a6cca39ff47b kernel: [    0.500538] Last level iTLB entries: 4KB 512, 2MB 8, 4MB 8
Aug  8 17:23:52 travis-job-64ca96c9-fa30-4895-a2e4-a6cca39ff47b kernel: [    0.502454] Last level dTLB entries: 4KB 512, 2MB 0, 4MB 0, 1GB 4
Aug  8 17:23:52 travis-job-64ca96c9-fa30-4895-a2e4-a6cca39ff47b kernel: [    0.507145] Freeing SMP alternatives memory: 32K
l: [    1.049398] ACPI: bus type USB registered
Aug  8 17:23:52 travis-job-64ca96c9-fa30-4895-a2e4-a6cca39ff47b kernel: [    1.050739] usbcore: registered new interface driver usbfs
Aug  8 17:23:52 travis-job-64ca96c9-fa30-4895-a2e4-a6cca39ff47b kernel: [    1.052676] usbcore: registered new interface driver hub
Aug  8 17:23:52 travis-job-64ca96c9-fa30-4895-a2e4-a6cca39ff47b kernel: [    1.054158] usbcore: registered new device driver usb
Aug  8 17:23:52 travis-job-64ca96c9-fa30-4895-a2e4-a6cca39ff47b kernel: [    1.055790] ioremap error for 0xbfffd000-0xc0000000, requested 0x2, got 0x0
Aug  8 17:23:52 travis-job-64ca96c9-fa30-4895-a2e4-a6cca39ff47b kernel: [    1.057753] dmi: Firmware registration failed.
Aug  8 17:23:52 travis-job-64ca96c9-fa30-4895-a2e4-a6cca39ff47b kernel: [    1.059174] PCI: Using ACPI for IRQ routing
Aug  8 17:23:52 travis-job-64ca96c9-fa30-4895-a2e4-a6cca39ff47b kernel: [    1.060315] PCI: pci_cache_line_size set to 64 bytes
Aug  8 17:23:52 travis-job-64ca96c9-fa30-4895-a2e4-a6cca39ff47b kernel: [    1.060415] e820: reserve RAM buffer [mem 0x0009fc00-0x0009ffff]
Aug  8 17:23:52 travis-job-64ca96c9-fa30-4895-a2e4-a6cca39ff47b kernel: [    1.060416] e820: reserve RAM buffer [mem 0xbfff3000-0xbfffffff]
Aug  8 17:23:52 travis-job-64ca96c9-fa30-4895-a2e4-a6cca39ff47b kernel: [    1.060532] NetLabel: Initializing
Aug  8 17:23:52 travis-job-64ca96c9-fa30-4895-a2e4-a6cca39ff47b kernel: [    1.061477] NetLabel:  domain hash size = 128
Aug  8 17:23:52 travis-job-64ca96c9-fa30-4895-a2e4-a6cca39ff47b kernel: [    1.062977] NetLabel:  protocols = UNLABELED CIPSOv4

I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact @TimNN. (Feature Requests)

@dsciarra
Copy link
Contributor Author

dsciarra commented Aug 8, 2018

@TimNN I hope your definition of "ability" does not include time :)

@petrochenkov Summary of changes:

  • mv CodeMap SourceMap
  • mv codemap source_map
  • mv FileMap SourceFile
  • mv filemap to source_file
  • mv CachingCodemapView CachingSourcemapView
  • mv "mod codemap" to "mod source_map"
  • update doc
  • update tools

Anything to add?

@petrochenkov
Copy link
Contributor

@dsciarra
Thanks for the summary, the diff is long, so it's not easy to see what exactly items were renamed.
The plan looks good to me.
One nit is CachingSourcemapView -> CachingSourceMapView.

@rust-highfive
Copy link
Collaborator

The job x86_64-gnu-llvm-5.0 of your PR failed on Travis (raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.

[00:04:27] travis_fold:start:tidy
travis_time:start:tidy
tidy check
[00:04:27] tidy error: /checkout/src/libproc_macro/lib.rs:434: line longer than 100 chars
[00:04:27] tidy error: /checkout/src/librustc_errors/lib.rs:58: line longer than 100 chars
[00:04:27] tidy error: /checkout/src/librustc_metadata/decoder.rs:352: line longer than 100 chars
[00:04:27] tidy error: /checkout/src/librustc_metadata/decoder.rs:353: line longer than 100 chars
[00:04:27] tidy error: /checkout/src/librustc_lint/builtin.rs:198: line longer than 100 chars
[00:04:27] tidy error: /checkout/src/librustdoc/html/highlight.rs:36: line longer than 100 chars
[00:04:27] tidy error: /checkout/src/librustdoc/html/highlight.rs:46: line longer than 100 chars
[00:04:27] tidy error: /checkout/src/libsyntax/parse/mod.rs:243: line longer than 100 chars
[00:04:27] tidy error: /checkout/src/libsyntax/parse/lexer/mod.rs:183: line longer than 100 chars
[00:04:27] tidy error: /checkout/src/libsyntax/parse/lexer/mod.rs:224: line longer than 100 chars
[00:04:27] tidy error: /checkout/src/libsyntax/source_map.rs:244: line longer than 100 chars
[00:04:27] tidy error: /checkout/src/libsyntax/source_map.rs:300: line longer than 100 chars
[00:04:27] tidy error: /checkout/src/librustc_typeck/check/compare_method.rs:322: line longer than 100 chars
[00:04:27] tidy error: /checkout/src/librustc_typeck/check/method/suggest.rs:135: line longer than 100 chars
[00:04:28] some tidy checks failed
[00:04:28] 
[00:04:28] 
[00:04:28] command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools-bin/tidy" "/checkout/src" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "--no-vendor" "--quiet"
[00:04:28] 
[00:04:28] 
[00:04:28] failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test src/tools/tidy
[00:04:28] Build completed unsuccessfully in 0:00:50
[00:04:28] Build completed unsuccessfully in 0:00:50
[00:04:28] Makefile:79: recipe for target 'tidy' failed
[00:04:28] make: *** [tidy] Error 1

The command "stamp sh -x -c "$RUN_SCRIPT"" exited with 2.
travis_time:start:028d16fc
$ date && (curl -fs --head https://google.com | grep ^Date: | sed 's/Date: //g' || true)
---
travis_time:end:25918b7b:start=1534531497806196460,finish=1534531497814818953,duration=8622493
travis_fold:end:after_failure.3
travis_fold:start:after_failure.4
travis_time:start:136f6a35
$ ln -s . checkout && for CORE in obj/cores/core.*; do EXE=$(echo $CORE | sed 's|obj/cores/core\.[0-9]*\.!checkout!\(.*\)|\1|;y|!|/|'); if [ -f "$EXE" ]; then printf travis_fold":start:crashlog\n\033[31;1m%s\033[0m\n" "$CORE"; gdb -q -c "$CORE" "$EXE" -iex 'set auto-load off' -iex 'dir src/' -iex 'set sysroot .' -ex bt -ex q; echo travis_fold":"end:crashlog; fi; done || true
travis_fold:end:after_failure.4
travis_fold:start:after_failure.5
travis_time:start:10eefc09
travis_time:start:10eefc09
$ cat ./obj/build/x86_64-unknown-linux-gnu/native/asan/build/lib/asan/clang_rt.asan-dynamic-i386.vers || true
cat: ./obj/build/x86_64-unknown-linux-gnu/native/asan/build/lib/asan/clang_rt.asan-dynamic-i386.vers: No such file or directory
travis_fold:end:after_failure.5
travis_fold:start:after_failure.6
travis_time:start:08543352
$ dmesg | grep -i kill

I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact @TimNN. (Feature Requests)

@rust-highfive
Copy link
Collaborator

The job x86_64-gnu-llvm-5.0 of your PR failed on Travis (raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.
151200 ./src/tools/clang
149120 ./src/llvm-emscripten/test
148688 ./obj/build/bootstrap/debug/incremental
134256 ./obj/build/bootstrap/debug/incremental/bootstrap-1v3ifugz4t07z
134252 ./obj/build/bootstrap/debug/incremental/bootstrap-1v3ifugz4t07z/s-f3y67vg5tn-p1wc6e-2wgn69mh1th0x
103868 ./src/tools/lldb
98952 ./obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/codegen-backends
93756 ./src/tools/clang/test
77104 ./obj/build/x86_64-unknown-linux-gnu/stage0-rustc

I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact @TimNN. (Feature Requests)

@dsciarra dsciarra force-pushed the mv-codemap-sourcemap branch 2 times, most recently from bf31cad to 6fcdcf6 Compare August 17, 2018 21:27
@rust-highfive
Copy link
Collaborator

The job x86_64-gnu-llvm-5.0 of your PR failed on Travis (raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.

I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact @TimNN. (Feature Requests)

@rust-highfive
Copy link
Collaborator

The job x86_64-gnu-llvm-5.0 of your PR failed on Travis (raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.
[00:47:35] ....................................................................................................
[00:47:38] ...................................................................................................i
[00:47:41] ....................................................................................................
[00:47:44] ....................................................................................................
[00:47:46] ................................................iiiiiiiii...........................................
[00:47:52] ....................................................................................................
[00:47:55] ....................................................................................................
[00:47:58] .............................i......................................................................
[00:48:01] ...............................i...............................................i..i.ii..............
---
[00:58:51] ------------------------------------------
[00:58:51] error[E0433]: failed to resolve. Use of undeclared type or module `codemap`
[00:58:51]   --> /checkout/src/test/run-fail-fulldeps/qquote.rs:31:44
[00:58:51]    |
[00:58:51] 31 |     let ps = syntax::parse::ParseSess::new(codemap::FilePathMapping::empty());
[00:58:51]    |                                            ^^^^^^^ Use of undeclared type or module `codemap`
[00:58:51] warning: unused import: `syntax::ast`
[00:58:51]   --> /checkout/src/test/run-fail-fulldeps/qquote.rs:20:5
[00:58:51]    |
[00:58:51] 20 | use syntax::ast;
---
[00:58:51]    |
[00:58:51] 23 | use syntax::symbol::Symbol;
[00:58:51]    |     ^^^^^^^^^^^^^^^^^^^^^^
[00:58:51] 
[00:58:51] warning: unused import: `syntax_pos::DUMMY_SP`
[00:58:51]    |
[00:58:51] 24 | use syntax_pos::DUMMY_SP;
[00:58:51]    |     ^^^^^^^^^^^^^^^^^^^^
[00:58:51] 
---
[00:58:51] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out
[00:58:51] 
[00:58:51] 
[00:58:51] 
[00:58:51] command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools-bin/compiletest" "--compile-lib-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib" "--run-lib-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "--rustc-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "--src-base" "/checkout/src/test/run-fail-fulldeps" "--build-base" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-fail-fulldeps" "--stage-id" "stage2-x86_64-unknown-linux-gnu" "--mode" "run-fail" "--target" "x86_64-unknown-linux-gnu" "--host" "x86_64-unknown-linux-gnu" "--llvm-filecheck" "/usr/lib/llvm-5.0/bin/FileCheck" "--host-rustcflags" "-Crpath -O -Zunstable-options " "--target-rustcflags" "-Crpath -O -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/nativ

The command "stamp sh -x -c "$RUN_SCRIPT"" exited with 2.
travis_time:start:206cba79
$ date && (curl -fs --head https://google.com | grep ^Date: | sed 's/Date: //g' || true)
---
travis_time:end:259aab54:start=1534545642543049119,finish=1534545642553296370,duration=10247251
travis_fold:end:after_failure.3
travis_fold:start:after_failure.4
travis_time:start:19598955
$ ln -s . checkout && for CORE in obj/cores/core.*; do EXE=$(echo $CORE | sed 's|obj/cores/core\.[0-9]*\.!checkout

I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact @TimNN. (Feature Requests)

@dsciarra dsciarra force-pushed the mv-codemap-sourcemap branch 2 times, most recently from 1e54cce to 20bfd92 Compare August 18, 2018 10:14
@@ -306,8 +306,8 @@ impl Span {

/// The original source file into which this span points.
#[unstable(feature = "proc_macro_span", issue = "38356")]
pub fn source_file(&self) -> SourceFile {
SourceFile {
pub fn original_source_file(&self) -> OriginalSourceFile {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a public-facing standard library interface, even if it's unstable.
Let's leave it alone for now and revert this commit.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A simple revert won't work. I had to come up with another name for this second SourceFile struct. Why not changing it? It's unstable....

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can just use syntax_pos::SourceFile explicitly without importing it (you can see e.g. syntax_pos::Span being treated in the same way).

@petrochenkov
Copy link
Contributor

r=me when Travis is green and the proc_macro::OriginalSourceFile commit is reverted

@petrochenkov
Copy link
Contributor

@bors p=1
This PR is conflict-prone.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Aug 19, 2018
@bors
Copy link
Contributor

bors commented Aug 19, 2018

⌛ Testing commit 6138c82 with merge 6bf6d50...

bors added a commit that referenced this pull request Aug 19, 2018
Rename CodeMap/FileMap to SourceMap/SourceFile

A first renaming for #51574
@bors
Copy link
Contributor

bors commented Aug 20, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: petrochenkov
Pushing 6bf6d50 to master...

@bors bors merged commit 6138c82 into rust-lang:master Aug 20, 2018
@rust-highfive
Copy link
Collaborator

📣 Toolstate changed by #52953!

Tested on commit 6bf6d50.
Direct link to PR: #52953

💔 clippy-driver on windows: test-pass → build-fail (cc @Manishearth @llogiq @mcarton @oli-obk, @rust-lang/infra).
💔 clippy-driver on linux: test-pass → build-fail (cc @Manishearth @llogiq @mcarton @oli-obk, @rust-lang/infra).
💔 rls on windows: test-pass → build-fail (cc @nrc, @rust-lang/infra).
💔 rls on linux: test-pass → build-fail (cc @nrc, @rust-lang/infra).

rust-highfive added a commit to rust-lang-nursery/rust-toolstate that referenced this pull request Aug 20, 2018
Tested on commit rust-lang/rust@6bf6d50.
Direct link to PR: <rust-lang/rust#52953>

💔 clippy-driver on windows: test-pass → build-fail (cc @Manishearth @llogiq @mcarton @oli-obk, @rust-lang/infra).
💔 clippy-driver on linux: test-pass → build-fail (cc @Manishearth @llogiq @mcarton @oli-obk, @rust-lang/infra).
💔 rls on windows: test-pass → build-fail (cc @nrc, @rust-lang/infra).
💔 rls on linux: test-pass → build-fail (cc @nrc, @rust-lang/infra).
Manishearth added a commit to rust-lang/rust-clippy that referenced this pull request Aug 20, 2018
@dsciarra dsciarra deleted the mv-codemap-sourcemap branch August 20, 2018 14:15
mark-i-m pushed a commit to rust-lang/rustc-dev-guide that referenced this pull request Aug 24, 2018
matthiaskrgr added a commit to matthiaskrgr/rls that referenced this pull request Aug 24, 2018
ehuss added a commit to ehuss/cargo that referenced this pull request Aug 24, 2018
bors added a commit to rust-lang/cargo that referenced this pull request Aug 24, 2018
Fix test failure on nightly due to `codemap::Span` change.

Update due to rust-lang/rust#52953.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants