Merge remote-tracking branch 'upstream/master' into rustup
This commit is contained in:
commit
415fdb2d1a
522 changed files with 5251 additions and 2556 deletions
|
|
@ -80,7 +80,9 @@ impl EarlyLintPass for ModStyle {
|
|||
|
||||
let files = cx.sess().source_map().files();
|
||||
|
||||
let Some(trim_to_src) = cx.sess().opts.working_dir.local_path() else { return };
|
||||
let Some(trim_to_src) = cx.sess().opts.working_dir.local_path() else {
|
||||
return;
|
||||
};
|
||||
|
||||
// `folder_segments` is all unique folder path segments `path/to/foo.rs` gives
|
||||
// `[path, to]` but not foo
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue