rage: rename reporter to stream
commit1894be4219fab02ce48d266c18b5c87d74a14061
authorZeyi (Rice) Fan <zeyi@fb.com>
Sat, 8 Oct 2022 02:00:25 +0000 (7 19:00 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Sat, 8 Oct 2022 02:00:25 +0000 (7 19:00 -0700)
tree80a1c57b91ba00d5673be0da9c795340d3ab7f40
parent7d5b739e0c5f006c2f05dda55a3af23dcd020c6d
rage: rename reporter to stream

Summary:
My original plan was to expand reporter to take on the responsibility of reporting progress, but it turned out Rust borrow checker is not happy about this deign since I need `write!(stream)` to work, which requires a mutable reference while keeping an immutable reference in `StepGuard` I added later.

As a result I have to add the progress reporting struct directly to `WatchmanRage`. This diff just rename `Reporter` to `Stream` to better reflect what it does.

Reviewed By: MichaelCuevas

Differential Revision: D39187638

fbshipit-source-id: 1e7a0d624978f5a5e5c52f435cf15745db8e3721
third-party/watchman/src/watchman/cli/src/rage/mod.rs
third-party/watchman/src/watchman/cli/src/rage/stream.rs [moved from third-party/watchman/src/watchman/cli/src/rage/reporter.rs with 88% similarity]