Repository navigation
Rename CodeMap/FileMap to SourceMap/SourceFile. #51574
Description
Activity
- addedC-cleanupCategory: PRs that clean code up or issues documenting cleanup.Category: PRs that clean code up or issues documenting cleanup.
on Jun 15, 2018 - addedE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
on Jun 15, 2018 I can take this up.
Reacted by Eduard-Mihai BurtescuWhat about structs like
FileMapAndLine?@abhijeetbhagat
SourceFileAndLinelooks fine to me.should the module codemap also be renamed?
Yeah, any combination of the words "code" and "map" should.
Right. Changing that too.
- added a commit that references this issue
on Aug 19, 2018 With the merge, it's unclear to me whether this is an older issue that needs closing, or if there is more work to do. A quick search seems to show the following occurences still:
MalformedForCodemapandMalformedCodemapPositionsinsrc/libsyntax_pos/lib.rsandsrc/libsyntax/source_map.rspub use self::caching_codemap_view::CachingSourceMapViewinsrc/librustc/ich/mod.rsStableFilemapIdinsrc/libsyntax/source_map.rs
If this issue is still considered open, does that reflect that that these should be renamed as well?
MalformedForCodemap->MalformedForSourceMapMalformedCodemapPositions->MalformedSourceMapPositionsself::caching_codemap_view->self::caching_source_map_viewStableFilemapId->StableSourceFileId
Reacted by dlavati- added a commit that references this issue
on Oct 30, 2018 I assume this is done after #55190?
I came across over this instance of
cmtoday:
rust/src/librustc_errors/lib.rs
Line 149 in e6ec0d1
pub fn splice_lines(&self, cm: &SourceMap) -> Vec<(String, Vec<SubstitutionPart>, bool)> { So we might need to do another pass just for easier to miss things like
cm.- addedT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
on Feb 20, 2020 Looks done after #69375
Reacted by Eduard-Mihai Burtescu
The name
FileMapalways seemed a bit jarring, and I think this would be an improvement.cc @nikomatsakis @nrc