summary refs log tree commit diff
path: root/compiler/rustc_span/src
diff options
context:
space:
mode:
authorMartin Nordholts <enselic@gmail.com>2023-08-28 08:18:35 +0200
committerMartin Nordholts <enselic@gmail.com>2023-10-05 20:17:48 +0200
commit8a1be9942d63f0417efc1ead54dd71ff088140e3 (patch)
tree35932f601a86f767a213ebd974a285c4b02cf8ee /compiler/rustc_span/src
parenta6dfd89fa76e5dda36d07463d0e54268d6240b49 (diff)
downloadrust-8a1be9942d63f0417efc1ead54dd71ff088140e3.tar.gz
rust-8a1be9942d63f0417efc1ead54dd71ff088140e3.zip
Allow file names to end with '>'
The `rustc_span::FileName` enum already differentiates between real
files and "fake" files such as `<anon>`. We do not need to artificially
forbid real file names from ending in `>`.
Diffstat (limited to 'compiler/rustc_span/src')
-rw-r--r--compiler/rustc_span/src/lib.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/compiler/rustc_span/src/lib.rs b/compiler/rustc_span/src/lib.rs
index 772e09291a1..36d7c7653ee 100644
--- a/compiler/rustc_span/src/lib.rs
+++ b/compiler/rustc_span/src/lib.rs
@@ -305,7 +305,6 @@ pub enum FileName {
 
 impl From<PathBuf> for FileName {
     fn from(p: PathBuf) -> Self {
-        assert!(!p.to_string_lossy().ends_with('>'));
         FileName::Real(RealFileName::LocalPath(p))
     }
 }